Class EnvironmentVariableWithSecretValue

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

public class EnvironmentVariableWithSecretValue extends Object
An environment variable with secret value definition.
  • Constructor Details

    • EnvironmentVariableWithSecretValue

      public EnvironmentVariableWithSecretValue()
  • Method Details

    • name

      public String 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

      public String value()
      Get the value of the environment variable. This value will never be reported back by Batch AI.
      Returns:
      the value value
    • 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.
    • 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
    • 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.