EnvironmentVariable Class

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

Implements

public final class EnvironmentVariable
implements JsonSerializable<EnvironmentVariable>

The EnvironmentVariable model.

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: Environment variable name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Environment variable value.

EnvironmentVariable withName(String name)

Set the name property: Environment variable name.

EnvironmentVariable withValue(String value)

Set the value property: Environment variable value.

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: Environment variable name.

Returns:

the name 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: Environment variable value.

Returns:

the value value.

withName

public EnvironmentVariable withName(String name)

Set the name property: Environment variable name.

Parameters:

name - the name value to set.

Returns:

the EnvironmentVariable object itself.

withValue

public EnvironmentVariable withValue(String value)

Set the value property: Environment variable value.

Parameters:

value - the value value to set.

Returns:

the EnvironmentVariable object itself.

Applies to