Class VariableUpdateProperties

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

public final class VariableUpdateProperties extends Object implements com.azure.json.JsonSerializable<VariableUpdateProperties>
The properties of the update variable.
  • Constructor Details

    • VariableUpdateProperties

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

    • value

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

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

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

      public VariableUpdateProperties withDescription(String description)
      Set the description property: Gets or sets the description of the variable.
      Parameters:
      description - the description value to set.
      Returns:
      the VariableUpdateProperties 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<VariableUpdateProperties>
      Throws:
      IOException
    • fromJson

      public static VariableUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VariableUpdateProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VariableUpdateProperties 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 VariableUpdateProperties.