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 Summary
ConstructorsConstructorDescriptionCreates an instance of CommunityGalleryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the artifactTags property: The artifact tags of a community gallery resource.Get the communityMetadata property: The metadata of community gallery.Get the disclaimer property: The disclaimer for a community gallery resource.static CommunityGalleryPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommunityGalleryProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withArtifactTags(Map<String, String> artifactTags) Set the artifactTags property: The artifact tags of a community gallery resource.withCommunityMetadata(CommunityGalleryMetadata communityMetadata) Set the communityMetadata property: The metadata of community gallery.withDisclaimer(String disclaimer) Set the disclaimer property: The disclaimer for a community gallery resource.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
-
CommunityGalleryProperties
public CommunityGalleryProperties()Creates an instance of CommunityGalleryProperties class.
-
-
Method Details
-
disclaimer
Get the disclaimer property: The disclaimer for a community gallery resource.- Returns:
- the disclaimer value.
-
withDisclaimer
Set the disclaimer property: The disclaimer for a community gallery resource.- Parameters:
disclaimer- the disclaimer value to set.- Returns:
- the CommunityGalleryProperties object itself.
-
artifactTags
Get the artifactTags property: The artifact tags of a community gallery resource.- Returns:
- the artifactTags value.
-
withArtifactTags
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
Get the communityMetadata property: The metadata of community gallery.- Returns:
- the communityMetadata value.
-
withCommunityMetadata
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
- Specified by:
toJsonin interfacecom.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.
-