Class VirtualMachineImageProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineImageProperties>
public final class VirtualMachineImageProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineImageProperties>
Describes the properties of a Virtual Machine Image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineImageProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the architecture property: Specifies the Architecture Type.Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.Get the dataDiskImages property: The dataDiskImages property.Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.features()Get the features property: The features property.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineImageProperties from the JsonReader.Get the hyperVGeneration property: Specifies the HyperVGeneration Type.Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.Get the osDiskImage property: Contains the os disk image information.plan()Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withArchitecture(ArchitectureTypes architecture) Set the architecture property: Specifies the Architecture Type.withAutomaticOSUpgradeProperties(AutomaticOSUpgradeProperties automaticOSUpgradeProperties) Set the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.withDataDiskImages(List<DataDiskImage> dataDiskImages) Set the dataDiskImages property: The dataDiskImages property.withDisallowed(DisallowedConfiguration disallowed) Set the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.withFeatures(List<VirtualMachineImageFeature> features) Set the features property: The features property.withHyperVGeneration(HyperVGenerationTypes hyperVGeneration) Set the hyperVGeneration property: Specifies the HyperVGeneration Type.withImageDeprecationStatus(ImageDeprecationStatus imageDeprecationStatus) Set the imageDeprecationStatus property: Describes image deprecation status properties on the image.withOsDiskImage(OSDiskImage osDiskImage) Set the osDiskImage property: Contains the os disk image information.withPlan(PurchasePlan plan) Set the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineImageProperties
public VirtualMachineImageProperties()Creates an instance of VirtualMachineImageProperties class.
-
-
Method Details
-
plan
Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.- Returns:
- the plan value.
-
withPlan
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
Get the osDiskImage property: Contains the os disk image information.- Returns:
- the osDiskImage value.
-
withOsDiskImage
Set the osDiskImage property: Contains the os disk image information.- Parameters:
osDiskImage- the osDiskImage value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
dataDiskImages
Get the dataDiskImages property: The dataDiskImages property.- Returns:
- the dataDiskImages value.
-
withDataDiskImages
Set the dataDiskImages property: The dataDiskImages property.- Parameters:
dataDiskImages- the dataDiskImages value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
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
Get the hyperVGeneration property: Specifies the HyperVGeneration Type.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
Set the hyperVGeneration property: Specifies the HyperVGeneration Type.- Parameters:
hyperVGeneration- the hyperVGeneration value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
disallowed
Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.- Returns:
- the disallowed value.
-
withDisallowed
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
Get the features property: The features property.- Returns:
- the features value.
-
withFeatures
Set the features property: The features property.- Parameters:
features- the features value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
architecture
Get the architecture property: Specifies the Architecture Type.- Returns:
- the architecture value.
-
withArchitecture
Set the architecture property: Specifies the Architecture Type.- Parameters:
architecture- the architecture value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
imageDeprecationStatus
Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.- Returns:
- the imageDeprecationStatus value.
-
withImageDeprecationStatus
public VirtualMachineImageProperties withImageDeprecationStatus(ImageDeprecationStatus imageDeprecationStatus) Set the imageDeprecationStatus property: Describes image deprecation status properties on the image.- Parameters:
imageDeprecationStatus- the imageDeprecationStatus value to set.- Returns:
- the VirtualMachineImageProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineImageProperties>- Throws:
IOException
-
fromJson
public static VirtualMachineImageProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineImageProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineImageProperties 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 VirtualMachineImageProperties.
-