Class EnvironmentVariable

java.lang.Object
com.azure.resourcemanager.containerinstance.models.EnvironmentVariable

public final class EnvironmentVariable extends Object
The environment variable to set within the container instance.
  • Constructor Details

    • EnvironmentVariable

      public EnvironmentVariable()
      Creates an instance of EnvironmentVariable class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the environment variable.
      Returns:
      the name value.
    • withName

      public EnvironmentVariable withName(String name)
      Set the name property: The name of the environment variable.
      Parameters:
      name - the name value to set.
      Returns:
      the EnvironmentVariable object itself.
    • value

      public String value()
      Get the value property: The value of the environment variable.
      Returns:
      the value value.
    • withValue

      public EnvironmentVariable withValue(String value)
      Set the value property: The value of the environment variable.
      Parameters:
      value - the value value to set.
      Returns:
      the EnvironmentVariable object itself.
    • secureValue

      public String secureValue()
      Get the secureValue property: The value of the secure environment variable.
      Returns:
      the secureValue value.
    • withSecureValue

      public EnvironmentVariable withSecureValue(String secureValue)
      Set the secureValue property: The value of the secure environment variable.
      Parameters:
      secureValue - the secureValue value to set.
      Returns:
      the EnvironmentVariable object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.