CommunityGalleryInfo Class

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

Implements

public final class CommunityGalleryInfo
implements JsonSerializable<CommunityGalleryInfo>

Information of community gallery if current gallery is shared to community.

Constructor Summary

Constructor Description
CommunityGalleryInfo()

Creates an instance of CommunityGalleryInfo class.

Method Summary

Modifier and Type Method and Description
Boolean communityGalleryEnabled()

Get the communityGalleryEnabled property: Contains info about whether community gallery sharing is enabled.

String eula()

Get the eula property: End-user license agreement for community gallery image.

static CommunityGalleryInfo fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryInfo from the JsonReader.

String publicNamePrefix()

Get the publicNamePrefix property: The prefix of the gallery name that will be displayed publicly.

List<String> publicNames()

Get the publicNames property: Community gallery public name list.

String publisherContact()

Get the publisherContact property: Community gallery publisher support email.

String publisherUri()

Get the publisherUri property: The link to the publisher website.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CommunityGalleryInfo withEula(String eula)

Set the eula property: End-user license agreement for community gallery image.

CommunityGalleryInfo withPublicNamePrefix(String publicNamePrefix)

Set the publicNamePrefix property: The prefix of the gallery name that will be displayed publicly.

CommunityGalleryInfo withPublisherContact(String publisherContact)

Set the publisherContact property: Community gallery publisher support email.

CommunityGalleryInfo withPublisherUri(String publisherUri)

Set the publisherUri property: The link to the publisher website.

Methods inherited from java.lang.Object

Constructor Details

CommunityGalleryInfo

public CommunityGalleryInfo()

Creates an instance of CommunityGalleryInfo class.

Method Details

communityGalleryEnabled

public Boolean communityGalleryEnabled()

Get the communityGalleryEnabled property: Contains info about whether community gallery sharing is enabled.

Returns:

the communityGalleryEnabled value.

eula

public String eula()

Get the eula property: End-user license agreement for community gallery image.

Returns:

the eula value.

fromJson

public static CommunityGalleryInfo fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CommunityGalleryInfo 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 CommunityGalleryInfo.

publicNamePrefix

public String publicNamePrefix()

Get the publicNamePrefix property: The prefix of the gallery name that will be displayed publicly. Visible to all users.

Returns:

the publicNamePrefix value.

publicNames

public List publicNames()

Get the publicNames property: Community gallery public name list.

Returns:

the publicNames value.

publisherContact

public String publisherContact()

Get the publisherContact property: Community gallery publisher support email. The email address of the publisher. Visible to all users.

Returns:

the publisherContact value.

publisherUri

public String publisherUri()

Get the publisherUri property: The link to the publisher website. Visible to all users.

Returns:

the publisherUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEula

public CommunityGalleryInfo withEula(String eula)

Set the eula property: End-user license agreement for community gallery image.

Parameters:

eula - the eula value to set.

Returns:

the CommunityGalleryInfo object itself.

withPublicNamePrefix

public CommunityGalleryInfo withPublicNamePrefix(String publicNamePrefix)

Set the publicNamePrefix property: The prefix of the gallery name that will be displayed publicly. Visible to all users.

Parameters:

publicNamePrefix - the publicNamePrefix value to set.

Returns:

the CommunityGalleryInfo object itself.

withPublisherContact

public CommunityGalleryInfo withPublisherContact(String publisherContact)

Set the publisherContact property: Community gallery publisher support email. The email address of the publisher. Visible to all users.

Parameters:

publisherContact - the publisherContact value to set.

Returns:

the CommunityGalleryInfo object itself.

withPublisherUri

public CommunityGalleryInfo withPublisherUri(String publisherUri)

Set the publisherUri property: The link to the publisher website. Visible to all users.

Parameters:

publisherUri - the publisherUri value to set.

Returns:

the CommunityGalleryInfo object itself.

Applies to