Partager via


EnvironmentVar Class

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

Implements

public final class EnvironmentVar
implements JsonSerializable<EnvironmentVar>

Container App container environment variable.

Constructor Summary

Constructor Description
EnvironmentVar()

Creates an instance of EnvironmentVar class.

Method Summary

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

Reads an instance of EnvironmentVar from the JsonReader.

String name()

Get the name property: Environment variable name.

String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the environment variable value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Non-secret environment variable value.

EnvironmentVar withName(String name)

Set the name property: Environment variable name.

EnvironmentVar withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the environment variable value.

EnvironmentVar withValue(String value)

Set the value property: Non-secret environment variable value.

Methods inherited from java.lang.Object

Constructor Details

EnvironmentVar

public EnvironmentVar()

Creates an instance of EnvironmentVar class.

Method Details

fromJson

public static EnvironmentVar fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentVar from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Environment variable name.

Returns:

the name value.

secretRef

public String secretRef()

Get the secretRef property: Name of the Container App secret from which to pull the environment variable value.

Returns:

the secretRef 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: Non-secret environment variable value.

Returns:

the value value.

withName

public EnvironmentVar withName(String name)

Set the name property: Environment variable name.

Parameters:

name - the name value to set.

Returns:

the EnvironmentVar object itself.

withSecretRef

public EnvironmentVar withSecretRef(String secretRef)

Set the secretRef property: Name of the Container App secret from which to pull the environment variable value.

Parameters:

secretRef - the secretRef value to set.

Returns:

the EnvironmentVar object itself.

withValue

public EnvironmentVar withValue(String value)

Set the value property: Non-secret environment variable value.

Parameters:

value - the value value to set.

Returns:

the EnvironmentVar object itself.

Applies to