Class SharedGalleryImageProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.SharedGalleryImageProperties
-
public final class SharedGalleryImageProperties extends Object
Describes the properties of a gallery image definition.
-
-
Constructor Summary
Constructors Constructor Description SharedGalleryImageProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.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.voidvalidate()Validates the instance.SharedGalleryImagePropertieswithDisallowed(Disallowed disallowed)Set the disallowed property: Describes the disallowed disk types.SharedGalleryImagePropertieswithEndOfLifeDate(OffsetDateTime endOfLifeDate)Set the endOfLifeDate property: The end of life date of the gallery image definition.SharedGalleryImagePropertieswithFeatures(List<GalleryImageFeature> features)Set the features property: A list of gallery image features.SharedGalleryImagePropertieswithHyperVGeneration(HyperVGeneration hyperVGeneration)Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.SharedGalleryImagePropertieswithIdentifier(GalleryImageIdentifier identifier)Set the identifier property: This is the gallery image definition identifier.SharedGalleryImagePropertieswithOsState(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'.SharedGalleryImagePropertieswithOsType(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.SharedGalleryImagePropertieswithPurchasePlan(ImagePurchasePlan purchasePlan)Set the purchasePlan property: Describes the gallery image definition purchase plan.SharedGalleryImagePropertieswithRecommended(RecommendedMachineConfiguration recommended)Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.
-
-
-
Method Detail
-
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 SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties object itself.
-
identifier
public GalleryImageIdentifier identifier()
Get the identifier property: This is the gallery image definition identifier.- Returns:
- the identifier value.
-
withIdentifier
public SharedGalleryImageProperties withIdentifier(GalleryImageIdentifier identifier)
Set the identifier property: This is the gallery image definition identifier.- Parameters:
identifier- the identifier value to set.- Returns:
- the SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties object itself.
-
disallowed
public Disallowed disallowed()
Get the disallowed property: Describes the disallowed disk types.- Returns:
- the disallowed value.
-
withDisallowed
public SharedGalleryImageProperties withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types.- Parameters:
disallowed- the disallowed value to set.- Returns:
- the SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties object itself.
-
features
public List<GalleryImageFeature> features()
Get the features property: A list of gallery image features.- Returns:
- the features value.
-
withFeatures
public SharedGalleryImageProperties withFeatures(List<GalleryImageFeature> features)
Set the features property: A list of gallery image features.- Parameters:
features- the features value to set.- Returns:
- the SharedGalleryImageProperties 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 SharedGalleryImageProperties 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 SharedGalleryImageProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-