Class EnvironmentVariable
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.EnvironmentVariable
-
public final class EnvironmentVariable extends Object
The environment variable to set within the container instance.
-
-
Constructor Summary
Constructors Constructor Description EnvironmentVariable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Get the name property: The name of the environment variable.StringsecureValue()Get the secureValue property: The value of the secure environment variable.voidvalidate()Validates the instance.Stringvalue()Get the value property: The value of the environment variable.EnvironmentVariablewithName(String name)Set the name property: The name of the environment variable.EnvironmentVariablewithSecureValue(String secureValue)Set the secureValue property: The value of the secure environment variable.EnvironmentVariablewithValue(String value)Set the value property: The value of the environment variable.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the environment variable.- Returns:
- the name value.
-
withName
public EnvironmentVariable withName(String name)
Set the name property: The name of the environment variable.- Parameters:
name- the name value to set.- Returns:
- the EnvironmentVariable object itself.
-
value
public String value()
Get the value property: The value of the environment variable.- Returns:
- the value value.
-
withValue
public EnvironmentVariable withValue(String value)
Set the value property: The value of the environment variable.- Parameters:
value- the value value to set.- Returns:
- the EnvironmentVariable object itself.
-
secureValue
public String secureValue()
Get the secureValue property: The value of the secure environment variable.- Returns:
- the secureValue value.
-
withSecureValue
public EnvironmentVariable withSecureValue(String secureValue)
Set the secureValue property: The value of the secure environment variable.- Parameters:
secureValue- the secureValue value to set.- Returns:
- the EnvironmentVariable object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-