EnvironmentVariable Class

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

Implements

public final class EnvironmentVariable
implements JsonSerializable<EnvironmentVariable>

Environment Variables for the container.

Constructor Summary

Constructor Description
EnvironmentVariable()

Creates an instance of EnvironmentVariable class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Environment Variables for the container.

static EnvironmentVariable fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentVariable from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
EnvironmentVariableType type()

Get the type property: Type of the Environment Variable.

void validate()

Validates the instance.

String value()

Get the value property: Value of the Environment variable.

EnvironmentVariable withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Environment Variables for the container.

EnvironmentVariable withType(EnvironmentVariableType type)

Set the type property: Type of the Environment Variable.

EnvironmentVariable withValue(String value)

Set the value property: Value of the Environment variable.

Methods inherited from java.lang.Object

Constructor Details

EnvironmentVariable

public EnvironmentVariable()

Creates an instance of EnvironmentVariable class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: Environment Variables for the container.

Returns:

the additionalProperties value.

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 an error occurs while reading the EnvironmentVariable.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public EnvironmentVariableType type()

Get the type property: Type of the Environment Variable. Possible values are: local - For local variable.

Returns:

the type value.

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value of the Environment variable.

Returns:

the value value.

withAdditionalProperties

public EnvironmentVariable withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Environment Variables for the container.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the EnvironmentVariable object itself.

withType

public EnvironmentVariable withType(EnvironmentVariableType type)

Set the type property: Type of the Environment Variable. Possible values are: local - For local variable.

Parameters:

type - the type value to set.

Returns:

the EnvironmentVariable object itself.

withValue

public EnvironmentVariable withValue(String value)

Set the value property: Value of the Environment variable.

Parameters:

value - the value value to set.

Returns:

the EnvironmentVariable object itself.

Applies to