Class CommunityGalleryIdentifier
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.CommunityGalleryIdentifier
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CommunityGalleryIdentifier>
public final class CommunityGalleryIdentifier
extends Object
implements com.azure.json.JsonSerializable<CommunityGalleryIdentifier>
The identifier information of community gallery.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommunityGalleryIdentifierfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommunityGalleryIdentifier from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) uniqueId()Get the uniqueId property: The unique id of this community gallery.voidvalidate()Validates the instance.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
-
Method Details
-
uniqueId
Get the uniqueId property: The unique id of this community gallery.- Returns:
- the uniqueId 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<CommunityGalleryIdentifier>- Throws:
IOException
-
fromJson
public static CommunityGalleryIdentifier fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CommunityGalleryIdentifier from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CommunityGalleryIdentifier 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 CommunityGalleryIdentifier.
-