Module com.azure.runtime.host
Class ConnectionStringReference<T extends ResourceWithConnectionString<?>>
java.lang.Object
com.azure.runtime.host.resources.references.ConnectionStringReference<T>
- All Implemented Interfaces:
- ManifestExpressionProvider,- ValueProvider,- ValueWithReferences
public class ConnectionStringReference<T extends ResourceWithConnectionString<?>>
extends Object
implements ManifestExpressionProvider, ValueProvider, ValueWithReferences
Represents a reference to a connection string.
- 
Constructor SummaryConstructorsConstructorDescriptionConnectionStringReference(T resource, boolean optional) Initializes a new instance of the ConnectionStringReference class.
- 
Method SummaryModifier and TypeMethodDescriptionA read-only list of the referenced objects of the value.Gets the resource that the connection string is referencing.getValue()Gets the expression that represents a value in manifest.booleanGets a flag indicating whether the connection string is optional.
- 
Constructor Details- 
ConnectionStringReferenceInitializes a new instance of the ConnectionStringReference class.- Parameters:
- resource- The resource that the connection string is referencing.
- optional- A flag indicating whether the connection string is optional.
 
 
- 
- 
Method Details- 
getResourceGets the resource that the connection string is referencing.- Returns:
- The resource.
 
- 
isOptionalpublic boolean isOptional()Gets a flag indicating whether the connection string is optional.- Returns:
- True if optional, false otherwise.
 
- 
getValueExpressionDescription copied from interface:ManifestExpressionProviderGets the expression that represents a value in manifest.- Specified by:
- getValueExpressionin interface- ManifestExpressionProvider
- Returns:
- The expression that represents a value in manifest.
 
- 
getReferencesDescription copied from interface:ValueWithReferencesA read-only list of the referenced objects of the value.- Specified by:
- getReferencesin interface- ValueWithReferences
- Returns:
- A read-only list of the referenced objects.
 
- 
getValue- Specified by:
- getValuein interface- ValueProvider
 
 
-