EnvironmentVariable Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. EnvironmentVariable
- com.
Implements
public final class EnvironmentVariable
implements JsonSerializable<EnvironmentVariable>
The environment variable to set within the container instance.
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: The name of the environment variable. |
String |
secureValue()
Get the secure |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The value of the environment variable. |
Environment |
withName(String name)
Set the name property: The name of the environment variable. |
Environment |
withSecureValue(String secureValue)
Set the secure |
Environment |
withValue(String value)
Set the value property: The value of the environment variable. |
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: The name of the environment variable.
Returns:
secureValue
public String secureValue()
Get the secureValue property: The value of the secure environment variable.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The value of the environment variable.
Returns:
withName
public EnvironmentVariable withName(String name)
Set the name property: The name of the environment variable.
Parameters:
Returns:
withSecureValue
public EnvironmentVariable withSecureValue(String secureValue)
Set the secureValue property: The value of the secure environment variable.
Parameters:
Returns:
withValue
public EnvironmentVariable withValue(String value)
Set the value property: The value of the environment variable.
Parameters:
Returns:
Applies to
Azure SDK for Java