EnvironmentSetting Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. EnvironmentSetting
- com.
Implements
public final class EnvironmentSetting
implements JsonSerializable<EnvironmentSetting>
An environment variable to be set on a task process.
Constructor Summary
| Constructor | Description |
|---|---|
| EnvironmentSetting() |
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. |
|
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 |
withValue(String value)
Set the value property: The value of the environment variable. |
Methods inherited from java.lang.Object
Constructor Details
EnvironmentSetting
public EnvironmentSetting()
Creates an instance of EnvironmentSetting class.
Method Details
fromJson
public static EnvironmentSetting fromJson(JsonReader jsonReader)
Reads an instance of EnvironmentSetting from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the 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 EnvironmentSetting withName(String name)
Set the name property: The name of the environment variable.
Parameters:
Returns:
withValue
public EnvironmentSetting withValue(String value)
Set the value property: The value of the environment variable.
Parameters:
Returns: