Class VirtualMachineImageProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageProperties
-
public final class VirtualMachineImageProperties extends Object
Describes the properties of a Virtual Machine Image.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineImageProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchitectureTypesarchitecture()Get the architecture property: Specifies the Architecture Type.AutomaticOSUpgradePropertiesautomaticOSUpgradeProperties()Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.List<DataDiskImage>dataDiskImages()Get the dataDiskImages property: The dataDiskImages property.DisallowedConfigurationdisallowed()Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.List<VirtualMachineImageFeature>features()Get the features property: The features property.HyperVGenerationTypeshyperVGeneration()Get the hyperVGeneration property: Specifies the HyperVGeneration Type.OSDiskImageosDiskImage()Get the osDiskImage property: Contains the os disk image information.PurchasePlanplan()Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.voidvalidate()Validates the instance.VirtualMachineImagePropertieswithArchitecture(ArchitectureTypes architecture)Set the architecture property: Specifies the Architecture Type.VirtualMachineImagePropertieswithAutomaticOSUpgradeProperties(AutomaticOSUpgradeProperties automaticOSUpgradeProperties)Set the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.VirtualMachineImagePropertieswithDataDiskImages(List<DataDiskImage> dataDiskImages)Set the dataDiskImages property: The dataDiskImages property.VirtualMachineImagePropertieswithDisallowed(DisallowedConfiguration disallowed)Set the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.VirtualMachineImagePropertieswithFeatures(List<VirtualMachineImageFeature> features)Set the features property: The features property.VirtualMachineImagePropertieswithHyperVGeneration(HyperVGenerationTypes hyperVGeneration)Set the hyperVGeneration property: Specifies the HyperVGeneration Type.VirtualMachineImagePropertieswithOsDiskImage(OSDiskImage osDiskImage)Set the osDiskImage property: Contains the os disk image information.VirtualMachineImagePropertieswithPlan(PurchasePlan plan)Set the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
-
-
-
Method Detail
-
plan
public PurchasePlan plan()
Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.- Returns:
- the plan value.
-
withPlan
public VirtualMachineImageProperties withPlan(PurchasePlan plan)
Set the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.- Parameters:
plan- the plan value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
osDiskImage
public OSDiskImage osDiskImage()
Get the osDiskImage property: Contains the os disk image information.- Returns:
- the osDiskImage value.
-
withOsDiskImage
public VirtualMachineImageProperties withOsDiskImage(OSDiskImage osDiskImage)
Set the osDiskImage property: Contains the os disk image information.- Parameters:
osDiskImage- the osDiskImage value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
dataDiskImages
public List<DataDiskImage> dataDiskImages()
Get the dataDiskImages property: The dataDiskImages property.- Returns:
- the dataDiskImages value.
-
withDataDiskImages
public VirtualMachineImageProperties withDataDiskImages(List<DataDiskImage> dataDiskImages)
Set the dataDiskImages property: The dataDiskImages property.- Parameters:
dataDiskImages- the dataDiskImages value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
automaticOSUpgradeProperties
public AutomaticOSUpgradeProperties automaticOSUpgradeProperties()
Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.- Returns:
- the automaticOSUpgradeProperties value.
-
withAutomaticOSUpgradeProperties
public VirtualMachineImageProperties withAutomaticOSUpgradeProperties(AutomaticOSUpgradeProperties automaticOSUpgradeProperties)
Set the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.- Parameters:
automaticOSUpgradeProperties- the automaticOSUpgradeProperties value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
hyperVGeneration
public HyperVGenerationTypes hyperVGeneration()
Get the hyperVGeneration property: Specifies the HyperVGeneration Type.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
public VirtualMachineImageProperties withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)
Set the hyperVGeneration property: Specifies the HyperVGeneration Type.- Parameters:
hyperVGeneration- the hyperVGeneration value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
disallowed
public DisallowedConfiguration disallowed()
Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.- Returns:
- the disallowed value.
-
withDisallowed
public VirtualMachineImageProperties withDisallowed(DisallowedConfiguration disallowed)
Set the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.- Parameters:
disallowed- the disallowed value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
features
public List<VirtualMachineImageFeature> features()
Get the features property: The features property.- Returns:
- the features value.
-
withFeatures
public VirtualMachineImageProperties withFeatures(List<VirtualMachineImageFeature> features)
Set the features property: The features property.- Parameters:
features- the features value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
architecture
public ArchitectureTypes architecture()
Get the architecture property: Specifies the Architecture Type.- Returns:
- the architecture value.
-
withArchitecture
public VirtualMachineImageProperties withArchitecture(ArchitectureTypes architecture)
Set the architecture property: Specifies the Architecture Type.- Parameters:
architecture- the architecture value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-