EnvironmentVar Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. EnvironmentVar
- com.
Implements
public final class EnvironmentVar
implements JsonSerializable<EnvironmentVar>
Container App container environment variable.
Constructor Summary
Constructor | Description |
---|---|
EnvironmentVar() |
Creates an instance of Environment |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Environment |
fromJson(JsonReader jsonReader)
Reads an instance of Environment |
String |
name()
Get the name property: Environment variable name. |
String |
secretRef()
Get the secret |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: Non-secret environment variable value. |
Environment |
withName(String name)
Set the name property: Environment variable name. |
Environment |
withSecretRef(String secretRef)
Set the secret |
Environment |
withValue(String value)
Set the value property: Non-secret environment variable value. |
Methods inherited from java.lang.Object
Constructor Details
EnvironmentVar
public EnvironmentVar()
Creates an instance of EnvironmentVar class.
Method Details
fromJson
public static EnvironmentVar fromJson(JsonReader jsonReader)
Reads an instance of EnvironmentVar from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Environment variable name.
Returns:
secretRef
public String secretRef()
Get the secretRef property: Name of the Container App secret from which to pull the environment variable value.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: Non-secret environment variable value.
Returns:
withName
public EnvironmentVar withName(String name)
Set the name property: Environment variable name.
Parameters:
Returns:
withSecretRef
public EnvironmentVar withSecretRef(String secretRef)
Set the secretRef property: Name of the Container App secret from which to pull the environment variable value.
Parameters:
Returns:
withValue
public EnvironmentVar withValue(String value)
Set the value property: Non-secret environment variable value.
Parameters:
Returns:
Applies to
Azure SDK for Java