Class TagProperty
java.lang.Object
com.azure.resourcemanager.storage.models.TagProperty
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TagProperty>
public final class TagProperty
extends Object
implements com.azure.json.JsonSerializable<TagProperty>
A tag of the LegalHold of a blob container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagPropertyfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TagProperty from the JsonReader.Get the objectIdentifier property: Returns the Object ID of the user who added the tag.tag()Get the tag property: The tag value.tenantId()Get the tenantId property: Returns the Tenant ID that issued the token for the user who added the tag.Get the timestamp property: Returns the date and time the tag was added.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) upn()Get the upn property: Returns the User Principal Name of the user who added the tag.voidvalidate()Validates the instance.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
-
TagProperty
public TagProperty()Creates an instance of TagProperty class.
-
-
Method Details
-
tag
Get the tag property: The tag value.- Returns:
- the tag value.
-
timestamp
Get the timestamp property: Returns the date and time the tag was added.- Returns:
- the timestamp value.
-
objectIdentifier
Get the objectIdentifier property: Returns the Object ID of the user who added the tag.- Returns:
- the objectIdentifier value.
-
tenantId
Get the tenantId property: Returns the Tenant ID that issued the token for the user who added the tag.- Returns:
- the tenantId value.
-
upn
Get the upn property: Returns the User Principal Name of the user who added the tag.- Returns:
- the upn value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TagProperty>- Throws:
IOException
-
fromJson
Reads an instance of TagProperty from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TagProperty 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 TagProperty.
-