Share via


EnvironmentSetting Class

  • java.lang.Object
    • com.azure.compute.batch.models.EnvironmentSetting

Implements

public final class EnvironmentSetting
implements JsonSerializable<EnvironmentSetting>

An environment variable to be set on a Task process.

Constructor Summary

Constructor Description
EnvironmentSetting(String name)

Creates an instance of EnvironmentSetting class.

Method Summary

Modifier and Type Method and Description
static EnvironmentSetting fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentSetting from the JsonReader.

String getName()

Get the name property: The name of the environment variable.

String getValue()

Get the value property: The value of the environment variable.

EnvironmentSetting setValue(String value)

Set the value property: The value of the environment variable.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

EnvironmentSetting

public EnvironmentSetting(String name)

Creates an instance of EnvironmentSetting class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static EnvironmentSetting fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentSetting from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EnvironmentSetting if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: The name of the environment variable.

Returns:

the name value.

getValue

public String getValue()

Get the value property: The value of the environment variable.

Returns:

the value value.

setValue

public EnvironmentSetting setValue(String value)

Set the value property: The value of the environment variable.

Parameters:

value - the value value to set.

Returns:

the EnvironmentSetting object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to