Class Tag
java.lang.Object
com.azure.resourcemanager.loganalytics.models.Tag
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Tag>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Tag from the JsonReader.name()Get the name property: The tag name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) value()Get the value property: The tag value.Set the name property: The tag name.Set the value property: The tag value.Methods inherited from class 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
-
Tag
public Tag()Creates an instance of Tag class.
-
-
Method Details
-
name
-
withName
-
value
-
withValue
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Tag>- Throws:
IOException
-
fromJson
Reads an instance of Tag from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Tag 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 Tag.
-