Class GalleryImageProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.GalleryImageProperties
-
public final class GalleryImageProperties extends Object
Describes the properties of a gallery image definition.
-
-
Constructor Summary
Constructors Constructor Description GalleryImageProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Architecturearchitecture()Get the architecture property: The architecture of the image.Stringdescription()Get the description property: The description of this gallery image definition resource.Disalloweddisallowed()Get the disallowed property: Describes the disallowed disk types.OffsetDateTimeendOfLifeDate()Get the endOfLifeDate property: The end of life date of the gallery image definition.Stringeula()Get the eula property: The Eula agreement for the gallery image definition.List<GalleryImageFeature>features()Get the features property: A list of gallery image features.HyperVGenerationhyperVGeneration()Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.GalleryImageIdentifieridentifier()Get the identifier property: This is the gallery image definition identifier.OperatingSystemStateTypesosState()Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.OperatingSystemTypesosType()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.StringprivacyStatementUri()Get the privacyStatementUri property: The privacy statement uri.GalleryImagePropertiesProvisioningStateprovisioningState()Get the provisioningState property: The current state of the gallery image definition.ImagePurchasePlanpurchasePlan()Get the purchasePlan property: Describes the gallery image definition purchase plan.RecommendedMachineConfigurationrecommended()Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.StringreleaseNoteUri()Get the releaseNoteUri property: The release note uri.voidvalidate()Validates the instance.GalleryImagePropertieswithArchitecture(Architecture architecture)Set the architecture property: The architecture of the image.GalleryImagePropertieswithDescription(String description)Set the description property: The description of this gallery image definition resource.GalleryImagePropertieswithDisallowed(Disallowed disallowed)Set the disallowed property: Describes the disallowed disk types.GalleryImagePropertieswithEndOfLifeDate(OffsetDateTime endOfLifeDate)Set the endOfLifeDate property: The end of life date of the gallery image definition.GalleryImagePropertieswithEula(String eula)Set the eula property: The Eula agreement for the gallery image definition.GalleryImagePropertieswithFeatures(List<GalleryImageFeature> features)Set the features property: A list of gallery image features.GalleryImagePropertieswithHyperVGeneration(HyperVGeneration hyperVGeneration)Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.GalleryImagePropertieswithIdentifier(GalleryImageIdentifier identifier)Set the identifier property: This is the gallery image definition identifier.GalleryImagePropertieswithOsState(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'.GalleryImagePropertieswithOsType(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.GalleryImagePropertieswithPrivacyStatementUri(String privacyStatementUri)Set the privacyStatementUri property: The privacy statement uri.GalleryImagePropertieswithPurchasePlan(ImagePurchasePlan purchasePlan)Set the purchasePlan property: Describes the gallery image definition purchase plan.GalleryImagePropertieswithRecommended(RecommendedMachineConfiguration recommended)Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.GalleryImagePropertieswithReleaseNoteUri(String releaseNoteUri)Set the releaseNoteUri property: The release note uri.
-
-
-
Method Detail
-
description
public String description()
Get the description property: The description of this gallery image definition resource. This property is updatable.- Returns:
- the description value.
-
withDescription
public GalleryImageProperties withDescription(String description)
Set the description property: The description of this gallery image definition resource. This property is updatable.- Parameters:
description- the description value to set.- Returns:
- the GalleryImageProperties object itself.
-
eula
public String eula()
Get the eula property: The Eula agreement for the gallery image definition.- Returns:
- the eula value.
-
withEula
public GalleryImageProperties withEula(String eula)
Set the eula property: The Eula agreement for the gallery image definition.- Parameters:
eula- the eula value to set.- Returns:
- the GalleryImageProperties object itself.
-
privacyStatementUri
public String privacyStatementUri()
Get the privacyStatementUri property: The privacy statement uri.- Returns:
- the privacyStatementUri value.
-
withPrivacyStatementUri
public GalleryImageProperties withPrivacyStatementUri(String privacyStatementUri)
Set the privacyStatementUri property: The privacy statement uri.- Parameters:
privacyStatementUri- the privacyStatementUri value to set.- Returns:
- the GalleryImageProperties object itself.
-
releaseNoteUri
public String releaseNoteUri()
Get the releaseNoteUri property: The release note uri.- Returns:
- the releaseNoteUri value.
-
withReleaseNoteUri
public GalleryImageProperties withReleaseNoteUri(String releaseNoteUri)
Set the releaseNoteUri property: The release note uri.- Parameters:
releaseNoteUri- the releaseNoteUri value to set.- Returns:
- the GalleryImageProperties object itself.
-
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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**.- Returns:
- the osType value.
-
withOsType
public GalleryImageProperties 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. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**.- Parameters:
osType- the osType value to set.- Returns:
- the GalleryImageProperties object itself.
-
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.
-
withOsState
public GalleryImageProperties 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 GalleryImageProperties object itself.
-
hyperVGeneration
public HyperVGeneration hyperVGeneration()
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
public GalleryImageProperties 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 GalleryImageProperties object itself.
-
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.
-
withEndOfLifeDate
public GalleryImageProperties 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 GalleryImageProperties object itself.
-
identifier
public GalleryImageIdentifier identifier()
Get the identifier property: This is the gallery image definition identifier.- Returns:
- the identifier value.
-
withIdentifier
public GalleryImageProperties withIdentifier(GalleryImageIdentifier identifier)
Set the identifier property: This is the gallery image definition identifier.- Parameters:
identifier- the identifier value to set.- Returns:
- the GalleryImageProperties object itself.
-
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.
-
withRecommended
public GalleryImageProperties 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 GalleryImageProperties object itself.
-
disallowed
public Disallowed disallowed()
Get the disallowed property: Describes the disallowed disk types.- Returns:
- the disallowed value.
-
withDisallowed
public GalleryImageProperties withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types.- Parameters:
disallowed- the disallowed value to set.- Returns:
- the GalleryImageProperties object itself.
-
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.
-
withPurchasePlan
public GalleryImageProperties 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 GalleryImageProperties object itself.
-
provisioningState
public GalleryImagePropertiesProvisioningState provisioningState()
Get the provisioningState property: The current state of the gallery image definition. The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
features
public List<GalleryImageFeature> features()
Get the features property: A list of gallery image features.- Returns:
- the features value.
-
withFeatures
public GalleryImageProperties withFeatures(List<GalleryImageFeature> features)
Set the features property: A list of gallery image features.- Parameters:
features- the features value to set.- Returns:
- the GalleryImageProperties object itself.
-
architecture
public Architecture architecture()
Get the architecture property: The architecture of the image. Applicable to OS disks only.- Returns:
- the architecture value.
-
withArchitecture
public GalleryImageProperties withArchitecture(Architecture architecture)
Set the architecture property: The architecture of the image. Applicable to OS disks only.- Parameters:
architecture- the architecture value to set.- Returns:
- the GalleryImageProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-