EnvironmentVariable Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. EnvironmentVariable
- com.
Implements
public final class EnvironmentVariable
implements JsonSerializable<EnvironmentVariable>
The EnvironmentVariable model.
Constructor Summary
| Constructor | Description |
|---|---|
| EnvironmentVariable() |
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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: The value of this environment variable must be the name of an App |
|
Environment |
withName(String name)
Set the name property: Environment variable name. |
|
Environment |
withValue(String value)
Set the value property: The value of this environment variable must be the name of an App |
Methods inherited from java.lang.Object
Constructor Details
EnvironmentVariable
public EnvironmentVariable()
Creates an instance of EnvironmentVariable class.
Method Details
fromJson
public static EnvironmentVariable fromJson(JsonReader jsonReader)
Reads an instance of EnvironmentVariable from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Environment variable name.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of this environment variable must be the name of an AppSetting. The actual value of the environment variable in container will be retrieved from the specified AppSetting at runtime. If the AppSetting is not found, the value will be set to an empty string in the container at runtime.
Returns:
withName
public EnvironmentVariable withName(String name)
Set the name property: Environment variable name.
Parameters:
Returns:
withValue
public EnvironmentVariable withValue(String value)
Set the value property: The value of this environment variable must be the name of an AppSetting. The actual value of the environment variable in container will be retrieved from the specified AppSetting at runtime. If the AppSetting is not found, the value will be set to an empty string in the container at runtime.
Parameters:
Returns: