Class TagsPatchResource

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

public final class TagsPatchResource extends Object implements com.azure.json.JsonSerializable<TagsPatchResource>
Wrapper resource for tags patch API request only.
  • Constructor Details

    • TagsPatchResource

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

    • operation

      public TagsPatchOperation operation()
      Get the operation property: The operation type for the patch API.
      Returns:
      the operation value.
    • withOperation

      public TagsPatchResource withOperation(TagsPatchOperation operation)
      Set the operation property: The operation type for the patch API.
      Parameters:
      operation - the operation value to set.
      Returns:
      the TagsPatchResource object itself.
    • properties

      public Tags properties()
      Get the properties property: The set of tags.
      Returns:
      the properties value.
    • withProperties

      public TagsPatchResource withProperties(Tags properties)
      Set the properties property: The set of tags.
      Parameters:
      properties - the properties value to set.
      Returns:
      the TagsPatchResource 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<TagsPatchResource>
      Throws:
      IOException
    • fromJson

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