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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagsPatchResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagsPatchResource from the JsonReader.Get the operation property: The operation type for the patch API.Get the properties property: The set of tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOperation(TagsPatchOperation operation) Set the operation property: The operation type for the patch API.withProperties(Tags properties) Set the properties property: The set of tags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TagsPatchResource
public TagsPatchResource()Creates an instance of TagsPatchResource class.
-
-
Method Details
-
operation
Get the operation property: The operation type for the patch API.- Returns:
- the operation value.
-
withOperation
Set the operation property: The operation type for the patch API.- Parameters:
operation- the operation value to set.- Returns:
- the TagsPatchResource object itself.
-
properties
Get the properties property: The set of tags.- Returns:
- the properties value.
-
withProperties
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TagsPatchResource>- Throws:
IOException
-
fromJson
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.
-