EnvironmentVariable Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.EnvironmentVariable

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 EnvironmentVariable class.

Method Summary

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

Reads an instance of EnvironmentVariable from the JsonReader.

String name()

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

String secureValue()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

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

EnvironmentVariable withName(String name)

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

EnvironmentVariable withSecureValue(String secureValue)

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

EnvironmentVariable 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:

jsonReader - The JsonReader being read.

Returns:

An instance of EnvironmentVariable 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.

name

public String name()

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

Returns:

the name value.

secureValue

public String secureValue()

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

Returns:

the secureValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

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

Returns:

the value 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.

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.

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.

Applies to