Class VariableCreateOrUpdateProperties

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

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

    • VariableCreateOrUpdateProperties

      public VariableCreateOrUpdateProperties()
      Creates an instance of VariableCreateOrUpdateProperties 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 VariableCreateOrUpdateProperties withValue(String value)
      Set the value property: Gets or sets the value of the variable.
      Parameters:
      value - the value value to set.
      Returns:
      the VariableCreateOrUpdateProperties object itself.
    • description

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

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

      public Boolean isEncrypted()
      Get the isEncrypted property: Gets or sets the encrypted flag of the variable.
      Returns:
      the isEncrypted value.
    • withIsEncrypted

      public VariableCreateOrUpdateProperties withIsEncrypted(Boolean isEncrypted)
      Set the isEncrypted property: Gets or sets the encrypted flag of the variable.
      Parameters:
      isEncrypted - the isEncrypted value to set.
      Returns:
      the VariableCreateOrUpdateProperties 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<VariableCreateOrUpdateProperties>
      Throws:
      IOException
    • fromJson

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