Class TagResourceContractInner
java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.TagResourceContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TagResourceContractInner>
public final class TagResourceContractInner
extends Object
implements com.azure.json.JsonSerializable<TagResourceContractInner>
TagResource contract properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TagResourceContractInner class. -
Method Summary
Modifier and TypeMethodDescriptionapi()Get the api property: API associated with the tag.static TagResourceContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagResourceContractInner from the JsonReader.Get the operation property: Operation associated with the tag.product()Get the product property: Product associated with the tag.tag()Get the tag property: Tag associated with the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the api property: API associated with the tag.Set the operation property: Operation associated with the tag.Set the product property: Product associated with the tag.Set the tag property: Tag associated with the resource.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
-
TagResourceContractInner
public TagResourceContractInner()Creates an instance of TagResourceContractInner class.
-
-
Method Details
-
tag
Get the tag property: Tag associated with the resource.- Returns:
- the tag value.
-
withTag
Set the tag property: Tag associated with the resource.- Parameters:
tag- the tag value to set.- Returns:
- the TagResourceContractInner object itself.
-
api
Get the api property: API associated with the tag.- Returns:
- the api value.
-
withApi
Set the api property: API associated with the tag.- Parameters:
api- the api value to set.- Returns:
- the TagResourceContractInner object itself.
-
operation
Get the operation property: Operation associated with the tag.- Returns:
- the operation value.
-
withOperation
Set the operation property: Operation associated with the tag.- Parameters:
operation- the operation value to set.- Returns:
- the TagResourceContractInner object itself.
-
product
Get the product property: Product associated with the tag.- Returns:
- the product value.
-
withProduct
Set the product property: Product associated with the tag.- Parameters:
product- the product value to set.- Returns:
- the TagResourceContractInner 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<TagResourceContractInner>- Throws:
IOException
-
fromJson
public static TagResourceContractInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TagResourceContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TagResourceContractInner 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 TagResourceContractInner.
-