Class VariableUpdateParameters

java.lang.Object
com.azure.resourcemanager.automation.models.VariableUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<VariableUpdateParameters>

public final class VariableUpdateParameters extends Object implements com.azure.json.JsonSerializable<VariableUpdateParameters>
The parameters supplied to the update variable operation.
  • Constructor Details

    • VariableUpdateParameters

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

    • name

      public String name()
      Get the name property: Gets or sets the name of the variable.
      Returns:
      the name value.
    • withName

      public VariableUpdateParameters withName(String name)
      Set the name property: Gets or sets the name of the variable.
      Parameters:
      name - the name value to set.
      Returns:
      the VariableUpdateParameters object itself.
    • value

      public String value()
      Get the value property: Gets or sets the value of the variable.
      Returns:
      the value value.
    • withValue

      public VariableUpdateParameters withValue(String value)
      Set the value property: Gets or sets the value of the variable.
      Parameters:
      value - the value value to set.
      Returns:
      the VariableUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Gets or sets the description of the variable.
      Returns:
      the description value.
    • withDescription

      public VariableUpdateParameters withDescription(String description)
      Set the description property: Gets or sets the description of the variable.
      Parameters:
      description - the description value to set.
      Returns:
      the VariableUpdateParameters object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VariableUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static VariableUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VariableUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VariableUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the VariableUpdateParameters.