Class EnvironmentSetting

java.lang.Object
com.azure.resourcemanager.batch.models.EnvironmentSetting

public final class EnvironmentSetting extends Object
An environment variable to be set on a task process.
  • Constructor Details

    • EnvironmentSetting

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

    • name

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

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

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

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

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