Class EnvironmentVariableWithSecretValue
java.lang.Object
com.microsoft.azure.management.batchai.EnvironmentVariableWithSecretValue
An environment variable with secret value definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name of the environment variable to store the secret value.value()
Get the value of the environment variable.Get keyVault store and secret which contains the value for the environment variable.Set the name of the environment variable to store the secret value.Set the value of the environment variable.withValueSecretReference
(KeyVaultSecretReference valueSecretReference) Set keyVault store and secret which contains the value for the environment variable.
-
Constructor Details
-
EnvironmentVariableWithSecretValue
public EnvironmentVariableWithSecretValue()
-
-
Method Details
-
name
Get the name of the environment variable to store the secret value.- Returns:
- the name value
-
withName
Set the name of the environment variable to store the secret value.- Parameters:
name
- the name value to set- Returns:
- the EnvironmentVariableWithSecretValue object itself.
-
value
Get the value of the environment variable. This value will never be reported back by Batch AI.- Returns:
- the value value
-
withValue
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.
-
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
-
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.
-