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

public final class SetValue extends Object implements com.azure.json.JsonSerializable<SetValue>
The properties of a overridable value that can be passed to a task template.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of SetValue class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SetValue
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SetValue from the JsonReader.
    Get the isSecret property: Flag to indicate whether the value represents a secret or not.
    Get the name property: The name of the overridable value.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the value property: The overridable value.
    Set the isSecret property: Flag to indicate whether the value represents a secret or not.
    Set the name property: The name of the overridable value.
    Set the value property: The overridable value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • SetValue

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

    • name

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

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

      public String value()
      Get the value property: The overridable value.
      Returns:
      the value value.
    • withValue

      public SetValue withValue(String value)
      Set the value property: The overridable value.
      Parameters:
      value - the value value to set.
      Returns:
      the SetValue object itself.
    • isSecret

      public Boolean isSecret()
      Get the isSecret property: Flag to indicate whether the value represents a secret or not.
      Returns:
      the isSecret value.
    • withIsSecret

      public SetValue withIsSecret(Boolean isSecret)
      Set the isSecret property: Flag to indicate whether the value represents a secret or not.
      Parameters:
      isSecret - the isSecret value to set.
      Returns:
      the SetValue 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<SetValue>
      Throws:
      IOException
    • fromJson

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