EnvironmentVariableWithSecretValue Class

  • java.lang.Object
    • com.microsoft.azure.management.batchai.EnvironmentVariableWithSecretValue

public class EnvironmentVariableWithSecretValue

An environment variable with secret value definition.

Method Summary

Modifier and Type Method and Description
String name()

Get the name of the environment variable to store the secret value.

String value()

Get the value of the environment variable. This value will never be reported back by Batch AI.

KeyVaultSecretReference valueSecretReference()

Get keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

EnvironmentVariableWithSecretValue withName(String name)

Set the name of the environment variable to store the secret value.

EnvironmentVariableWithSecretValue withValue(String value)

Set the value of the environment variable. This value will never be reported back by Batch AI.

EnvironmentVariableWithSecretValue withValueSecretReference(KeyVaultSecretReference valueSecretReference)

Set keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

Method Details

name

public String name()

Get the name of the environment variable to store the secret value.

Returns:

the name value

value

public String value()

Get the value of the environment variable. This value will never be reported back by Batch AI.

Returns:

the value value

valueSecretReference

public KeyVaultSecretReference valueSecretReference()

Get keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

Returns:

the valueSecretReference value

withName

public EnvironmentVariableWithSecretValue withName(String name)

Set the name of the environment variable to store the secret value.

Parameters:

name - the name value to set

Returns:

the EnvironmentVariableWithSecretValue object itself.

withValue

public EnvironmentVariableWithSecretValue withValue(String value)

Set the value of the environment variable. This value will never be reported back by Batch AI.

Parameters:

value - the value value to set

Returns:

the EnvironmentVariableWithSecretValue object itself.

withValueSecretReference

public EnvironmentVariableWithSecretValue withValueSecretReference(KeyVaultSecretReference valueSecretReference)

Set keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

Parameters:

valueSecretReference - the valueSecretReference value to set

Returns:

the EnvironmentVariableWithSecretValue object itself.

Applies to