Class SharedGalleryImageInner
java.lang.Object
com.azure.resourcemanager.compute.models.PirResource
com.azure.resourcemanager.compute.models.PirSharedGalleryResource
com.azure.resourcemanager.compute.fluent.models.SharedGalleryImageInner
Specifies information about the gallery image definition that you want to create or update.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the architecture property: The architecture of the image.Get the disallowed property: Describes the disallowed disk types.Get the endOfLifeDate property: The end of life date of the gallery image definition.features()Get the features property: A list of gallery image features.Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.Get the identifier property: This is the gallery image definition identifier.osState()Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.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.Get the purchasePlan property: Describes the gallery image definition purchase plan.Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.voidvalidate()Validates the instance.withArchitecture(Architecture architecture) Set the architecture property: The architecture of the image.withDisallowed(Disallowed disallowed) Set the disallowed property: Describes the disallowed disk types.withEndOfLifeDate(OffsetDateTime endOfLifeDate) Set the endOfLifeDate property: The end of life date of the gallery image definition.withFeatures(List<GalleryImageFeature> features) Set the features property: A list of gallery image features.withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.withIdentifier(GalleryImageIdentifier identifier) Set the identifier property: This is the gallery image definition identifier.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'.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.withPurchasePlan(ImagePurchasePlan purchasePlan) Set the purchasePlan property: Describes the gallery image definition purchase plan.withRecommended(RecommendedMachineConfiguration recommended) Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.withUniqueId(String uniqueId) Set the uniqueId property: The unique id of this shared gallery.Methods inherited from class com.azure.resourcemanager.compute.models.PirSharedGalleryResource
uniqueIdMethods inherited from class com.azure.resourcemanager.compute.models.PirResource
location, name
-
Constructor Details
-
SharedGalleryImageInner
public SharedGalleryImageInner()
-
-
Method Details
-
withUniqueId
Set the uniqueId property: The unique id of this shared gallery.- Overrides:
withUniqueIdin classPirSharedGalleryResource- Parameters:
uniqueId- the uniqueId value to set.- Returns:
- the PirSharedGalleryResource object itself.
-
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
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 SharedGalleryImageInner object itself.
-
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
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 SharedGalleryImageInner object itself.
-
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
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 SharedGalleryImageInner object itself.
-
identifier
Get the identifier property: This is the gallery image definition identifier.- Returns:
- the identifier value.
-
withIdentifier
Set the identifier property: This is the gallery image definition identifier.- Parameters:
identifier- the identifier value to set.- Returns:
- the SharedGalleryImageInner object itself.
-
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
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 SharedGalleryImageInner object itself.
-
disallowed
Get the disallowed property: Describes the disallowed disk types.- Returns:
- the disallowed value.
-
withDisallowed
Set the disallowed property: Describes the disallowed disk types.- Parameters:
disallowed- the disallowed value to set.- Returns:
- the SharedGalleryImageInner object itself.
-
hyperVGeneration
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
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 SharedGalleryImageInner object itself.
-
features
Get the features property: A list of gallery image features.- Returns:
- the features value.
-
withFeatures
Set the features property: A list of gallery image features.- Parameters:
features- the features value to set.- Returns:
- the SharedGalleryImageInner object itself.
-
purchasePlan
Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.- Returns:
- the purchasePlan value.
-
withPurchasePlan
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 SharedGalleryImageInner object itself.
-
architecture
Get the architecture property: The architecture of the image. Applicable to OS disks only.- Returns:
- the architecture value.
-
withArchitecture
Set the architecture property: The architecture of the image. Applicable to OS disks only.- Parameters:
architecture- the architecture value to set.- Returns:
- the SharedGalleryImageInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classPirSharedGalleryResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-