Class CommunityGalleryProperties

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

public final class CommunityGalleryProperties extends Object implements com.azure.json.JsonSerializable<CommunityGalleryProperties>
Describes the properties of a community gallery.
  • Constructor Details

    • CommunityGalleryProperties

      public CommunityGalleryProperties()
      Creates an instance of CommunityGalleryProperties class.
  • Method Details

    • disclaimer

      public String disclaimer()
      Get the disclaimer property: The disclaimer for a community gallery resource.
      Returns:
      the disclaimer value.
    • withDisclaimer

      public CommunityGalleryProperties withDisclaimer(String disclaimer)
      Set the disclaimer property: The disclaimer for a community gallery resource.
      Parameters:
      disclaimer - the disclaimer value to set.
      Returns:
      the CommunityGalleryProperties object itself.
    • artifactTags

      public Map<String,String> artifactTags()
      Get the artifactTags property: The artifact tags of a community gallery resource.
      Returns:
      the artifactTags value.
    • withArtifactTags

      public CommunityGalleryProperties withArtifactTags(Map<String,String> artifactTags)
      Set the artifactTags property: The artifact tags of a community gallery resource.
      Parameters:
      artifactTags - the artifactTags value to set.
      Returns:
      the CommunityGalleryProperties object itself.
    • communityMetadata

      public CommunityGalleryMetadata communityMetadata()
      Get the communityMetadata property: The metadata of community gallery.
      Returns:
      the communityMetadata value.
    • withCommunityMetadata

      public CommunityGalleryProperties withCommunityMetadata(CommunityGalleryMetadata communityMetadata)
      Set the communityMetadata property: The metadata of community gallery.
      Parameters:
      communityMetadata - the communityMetadata value to set.
      Returns:
      the CommunityGalleryProperties object itself.
    • 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<CommunityGalleryProperties>
      Throws:
      IOException
    • fromJson

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