共用方式為


CommunityGalleryImageInner Class

public final class CommunityGalleryImageInner
extends PirCommunityGalleryResource

Specifies information about the gallery image definition that you want to create or update.

Constructor Summary

Constructor Description
CommunityGalleryImageInner()

Creates an instance of CommunityGalleryImageInner class.

Method Summary

Modifier and Type Method and Description
Architecture architecture()

Get the architecture property: CPU architecture supported by an OS disk.

Map<String,String> artifactTags()

Get the artifactTags property: The artifact tags of a community gallery resource.

Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

String disclaimer()

Get the disclaimer property: The disclaimer for a community gallery resource.

OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition.

String eula()

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

List<GalleryImageFeature> features()

Get the features property: A list of gallery image features.

static CommunityGalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryImageInner from the JsonReader.

HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

CommunityGalleryImageIdentifier identifier()

Get the identifier property: This is the community gallery image definition identifier.

String location()

Get the location property: Resource location.

String name()

Get the name property: Resource name.

OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

String privacyStatementUri()

Get the privacyStatementUri property: Privacy statement URI for the current community gallery image.

ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan.

RecommendedMachineConfiguration recommended()

Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

String uniqueId()

Get the uniqueId property: The unique id of this community gallery.

void validate()

Validates the instance.

CommunityGalleryImageInner withArchitecture(Architecture architecture)

Set the architecture property: CPU architecture supported by an OS disk.

CommunityGalleryImageInner withArtifactTags(Map<String,String> artifactTags)

Set the artifactTags property: The artifact tags of a community gallery resource.

CommunityGalleryImageInner withDisallowed(Disallowed disallowed)

Set the disallowed property: Describes the disallowed disk types.

CommunityGalleryImageInner withDisclaimer(String disclaimer)

Set the disclaimer property: The disclaimer for a community gallery resource.

CommunityGalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery image definition.

CommunityGalleryImageInner withEula(String eula)

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

CommunityGalleryImageInner withFeatures(List<GalleryImageFeature> features)

Set the features property: A list of gallery image features.

CommunityGalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

CommunityGalleryImageInner withIdentifier(CommunityGalleryImageIdentifier identifier)

Set the identifier property: This is the community gallery image definition identifier.

CommunityGalleryImageInner withOsState(OperatingSystemStateTypes osState)

Set the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

CommunityGalleryImageInner withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

CommunityGalleryImageInner withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: Privacy statement URI for the current community gallery image.

CommunityGalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)

Set the purchasePlan property: Describes the gallery image definition purchase plan.

CommunityGalleryImageInner withRecommended(RecommendedMachineConfiguration recommended)

Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.

CommunityGalleryImageInner withUniqueId(String uniqueId)

Set the uniqueId property: The unique id of this community gallery.

Methods inherited from PirCommunityGalleryResource

Methods inherited from java.lang.Object

Constructor Details

CommunityGalleryImageInner

public CommunityGalleryImageInner()

Creates an instance of CommunityGalleryImageInner class.

Method Details

architecture

public Architecture architecture()

Get the architecture property: CPU architecture supported by an OS disk.

Returns:

the architecture value.

artifactTags

public Map artifactTags()

Get the artifactTags property: The artifact tags of a community gallery resource.

Returns:

the artifactTags value.

disallowed

public Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

Returns:

the disallowed value.

disclaimer

public String disclaimer()

Get the disclaimer property: The disclaimer for a community gallery resource.

Returns:

the disclaimer value.

endOfLifeDate

public OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

the endOfLifeDate value.

eula

public String eula()

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

Returns:

the eula value.

features

public List features()

Get the features property: A list of gallery image features.

Returns:

the features value.

fromJson

public static CommunityGalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of CommunityGalleryImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hyperVGeneration

public HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Returns:

the hyperVGeneration value.

identifier

public CommunityGalleryImageIdentifier identifier()

Get the identifier property: This is the community gallery image definition identifier.

Returns:

the identifier value.

location

public String location()

Get the location property: Resource location.

Overrides:

CommunityGalleryImageInner.location()

Returns:

the location value.

name

public String name()

Get the name property: Resource name.

Overrides:

CommunityGalleryImageInner.name()

Returns:

the name value.

osState

public OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Returns:

the osState value.

osType

public OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.

Returns:

the osType value.

privacyStatementUri

public String privacyStatementUri()

Get the privacyStatementUri property: Privacy statement URI for the current community gallery image.

Returns:

the privacyStatementUri value.

purchasePlan

public ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.

Returns:

the purchasePlan value.

recommended

public RecommendedMachineConfiguration recommended()

Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

Returns:

the recommended value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CommunityGalleryImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

CommunityGalleryImageInner.type()

Returns:

the type value.

uniqueId

public String uniqueId()

Get the uniqueId property: The unique id of this community gallery.

Overrides:

CommunityGalleryImageInner.uniqueId()

Returns:

the uniqueId value.

validate

public void validate()

Validates the instance.

Overrides:

CommunityGalleryImageInner.validate()

withArchitecture

public CommunityGalleryImageInner withArchitecture(Architecture architecture)

Set the architecture property: CPU architecture supported by an OS disk.

Parameters:

architecture - the architecture value to set.

Returns:

the CommunityGalleryImageInner object itself.

withArtifactTags

public CommunityGalleryImageInner withArtifactTags(Map artifactTags)

Set the artifactTags property: The artifact tags of a community gallery resource.

Parameters:

artifactTags - the artifactTags value to set.

Returns:

the CommunityGalleryImageInner object itself.

withDisallowed

public CommunityGalleryImageInner withDisallowed(Disallowed disallowed)

Set the disallowed property: Describes the disallowed disk types.

Parameters:

disallowed - the disallowed value to set.

Returns:

the CommunityGalleryImageInner object itself.

withDisclaimer

public CommunityGalleryImageInner withDisclaimer(String disclaimer)

Set the disclaimer property: The disclaimer for a community gallery resource.

Parameters:

disclaimer - the disclaimer value to set.

Returns:

the CommunityGalleryImageInner object itself.

withEndOfLifeDate

public CommunityGalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Parameters:

endOfLifeDate - the endOfLifeDate value to set.

Returns:

the CommunityGalleryImageInner object itself.

withEula

public CommunityGalleryImageInner withEula(String eula)

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

Parameters:

eula - the eula value to set.

Returns:

the CommunityGalleryImageInner object itself.

withFeatures

public CommunityGalleryImageInner withFeatures(List features)

Set the features property: A list of gallery image features.

Parameters:

features - the features value to set.

Returns:

the CommunityGalleryImageInner object itself.

withHyperVGeneration

public CommunityGalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Parameters:

hyperVGeneration - the hyperVGeneration value to set.

Returns:

the CommunityGalleryImageInner object itself.

withIdentifier

public CommunityGalleryImageInner withIdentifier(CommunityGalleryImageIdentifier identifier)

Set the identifier property: This is the community gallery image definition identifier.

Parameters:

identifier - the identifier value to set.

Returns:

the CommunityGalleryImageInner object itself.

withOsState

public CommunityGalleryImageInner withOsState(OperatingSystemStateTypes osState)

Set the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Parameters:

osState - the osState value to set.

Returns:

the CommunityGalleryImageInner object itself.

withOsType

public CommunityGalleryImageInner withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.

Parameters:

osType - the osType value to set.

Returns:

the CommunityGalleryImageInner object itself.

withPrivacyStatementUri

public CommunityGalleryImageInner withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: Privacy statement URI for the current community gallery image.

Parameters:

privacyStatementUri - the privacyStatementUri value to set.

Returns:

the CommunityGalleryImageInner object itself.

withPurchasePlan

public CommunityGalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)

Set the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.

Parameters:

purchasePlan - the purchasePlan value to set.

Returns:

the CommunityGalleryImageInner object itself.

withRecommended

public CommunityGalleryImageInner withRecommended(RecommendedMachineConfiguration recommended)

Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

Parameters:

recommended - the recommended value to set.

Returns:

the CommunityGalleryImageInner object itself.

withUniqueId

public CommunityGalleryImageInner withUniqueId(String uniqueId)

Set the uniqueId property: The unique id of this community gallery.

Overrides:

CommunityGalleryImageInner.withUniqueId(String uniqueId)

Parameters:

uniqueId - the uniqueId value to set.

Returns:

the CommunityGalleryImageInner object itself.

Applies to