다음을 통해 공유


CommunityGalleryMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.CommunityGalleryMetadata

Implements

public final class CommunityGalleryMetadata
implements JsonSerializable<CommunityGalleryMetadata>

The metadata of community gallery.

Constructor Summary

Constructor Description
CommunityGalleryMetadata()

Creates an instance of CommunityGalleryMetadata class.

Method Summary

Modifier and Type Method and Description
String eula()

Get the eula property: The end-user license agreement for this community gallery.

static CommunityGalleryMetadata fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryMetadata from the JsonReader.

String privacyStatementUri()

Get the privacyStatementUri property: The link for the privacy statement of this community gallery from the gallery publisher.

List<String> publicNames()

Get the publicNames property: A list of public names the gallery has.

String publisherContact()

Get the publisherContact property: The publisher email id of this community gallery.

String publisherUri()

Get the publisherUri property: The publisher URI of this community gallery.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CommunityGalleryMetadata withEula(String eula)

Set the eula property: The end-user license agreement for this community gallery.

CommunityGalleryMetadata withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The link for the privacy statement of this community gallery from the gallery publisher.

CommunityGalleryMetadata withPublicNames(List<String> publicNames)

Set the publicNames property: A list of public names the gallery has.

CommunityGalleryMetadata withPublisherContact(String publisherContact)

Set the publisherContact property: The publisher email id of this community gallery.

CommunityGalleryMetadata withPublisherUri(String publisherUri)

Set the publisherUri property: The publisher URI of this community gallery.

Methods inherited from java.lang.Object

Constructor Details

CommunityGalleryMetadata

public CommunityGalleryMetadata()

Creates an instance of CommunityGalleryMetadata class.

Method Details

eula

public String eula()

Get the eula property: The end-user license agreement for this community gallery.

Returns:

the eula value.

fromJson

public static CommunityGalleryMetadata fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

publicNames

public List publicNames()

Get the publicNames property: A list of public names the gallery has.

Returns:

the publicNames value.

publisherContact

public String publisherContact()

Get the publisherContact property: The publisher email id of this community gallery.

Returns:

the publisherContact value.

publisherUri

public String publisherUri()

Get the publisherUri property: The publisher URI of this community gallery.

Returns:

the publisherUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEula

public CommunityGalleryMetadata withEula(String eula)

Set the eula property: The end-user license agreement for this community gallery.

Parameters:

eula - the eula value to set.

Returns:

the CommunityGalleryMetadata object itself.

withPrivacyStatementUri

public CommunityGalleryMetadata withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The link for the privacy statement of this community gallery from the gallery publisher.

Parameters:

privacyStatementUri - the privacyStatementUri value to set.

Returns:

the CommunityGalleryMetadata object itself.

withPublicNames

public CommunityGalleryMetadata withPublicNames(List publicNames)

Set the publicNames property: A list of public names the gallery has.

Parameters:

publicNames - the publicNames value to set.

Returns:

the CommunityGalleryMetadata object itself.

withPublisherContact

public CommunityGalleryMetadata withPublisherContact(String publisherContact)

Set the publisherContact property: The publisher email id of this community gallery.

Parameters:

publisherContact - the publisherContact value to set.

Returns:

the CommunityGalleryMetadata object itself.

withPublisherUri

public CommunityGalleryMetadata withPublisherUri(String publisherUri)

Set the publisherUri property: The publisher URI of this community gallery.

Parameters:

publisherUri - the publisherUri value to set.

Returns:

the CommunityGalleryMetadata object itself.

Applies to