EnvironmentVariableWithSecretValue Class
- java.
lang. Object - com.
microsoft. azure. management. batchai. EnvironmentVariableWithSecretValue
- com.
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. |
Key |
valueSecretReference()
Get keyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided. |
Environment |
withName(String name)
Set the name of the environment variable to store the secret value. |
Environment |
withValue(String value)
Set the value of the environment variable. This value will never be reported back by Batch AI. |
Environment |
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:
value
public String value()
Get the value of the environment variable. This value will never be reported back by Batch AI.
Returns:
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:
withName
public EnvironmentVariableWithSecretValue withName(String name)
Set the name of the environment variable to store the secret value.
Parameters:
Returns:
withValue
public EnvironmentVariableWithSecretValue withValue(String value)
Set the value of the environment variable. This value will never be reported back by Batch AI.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java