Class CommunityGalleryMetadata

java.lang.Object
com.azure.resourcemanager.compute.models.CommunityGalleryMetadata
All Implemented Interfaces:
com.azure.json.JsonSerializable<CommunityGalleryMetadata>

public final class CommunityGalleryMetadata extends Object implements com.azure.json.JsonSerializable<CommunityGalleryMetadata>
The metadata of community gallery.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the eula property: The end-user license agreement for this community gallery.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CommunityGalleryMetadata from the JsonReader.
    Get the privacyStatementUri property: The link for the privacy statement of this community gallery from the gallery publisher.
    Get the publicNames property: A list of public names the gallery has.
    Get the publisherContact property: The publisher email id of this community gallery.
    Get the publisherUri property: The publisher URI of this community gallery.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • publisherUri

      public String publisherUri()
      Get the publisherUri property: The publisher URI of this community gallery.
      Returns:
      the publisherUri value.
    • publisherContact

      public String publisherContact()
      Get the publisherContact property: The publisher email id of this community gallery.
      Returns:
      the publisherContact value.
    • eula

      public String eula()
      Get the eula property: The end-user license agreement for this community gallery.
      Returns:
      the eula value.
    • publicNames

      public List<String> publicNames()
      Get the publicNames property: A list of public names the gallery has.
      Returns:
      the publicNames value.
    • privacyStatementUri

      public String privacyStatementUri()
      Get the privacyStatementUri property: The link for the privacy statement of this community gallery from the gallery publisher.
      Returns:
      the privacyStatementUri value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CommunityGalleryMetadata>
      Throws:
      IOException
    • fromJson

      public static CommunityGalleryMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CommunityGalleryMetadata from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CommunityGalleryMetadata 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 CommunityGalleryMetadata.