Class VirtualMachineImageInner
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageResourceInner
com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageInner
Describes a Virtual Machine Image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineImageInner 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.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.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.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the Virtual Machine.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.withLocation(String location) Set the location property: The supported Azure location of the resource.Set the name property: The name of the resource.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.Set the tags property: Specifies the tags that are assigned to the virtual machine.Methods inherited from class com.azure.resourcemanager.compute.fluent.models.VirtualMachineImageResourceInner
extendedLocation, location, name, tagsMethods inherited from class com.azure.core.management.SubResource
id
-
Constructor Details
-
VirtualMachineImageInner
public VirtualMachineImageInner()Creates an instance of VirtualMachineImageInner class.
-
-
Method Details
-
withName
Set the name property: The name of the resource.- Overrides:
withNamein classVirtualMachineImageResourceInner- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineImageResourceInner object itself.
-
withLocation
Set the location property: The supported Azure location of the resource.- Overrides:
withLocationin classVirtualMachineImageResourceInner- Parameters:
location- the location value to set.- Returns:
- the VirtualMachineImageResourceInner object itself.
-
withTags
Set the tags property: Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).- Overrides:
withTagsin classVirtualMachineImageResourceInner- Parameters:
tags- the tags value to set.- Returns:
- the VirtualMachineImageResourceInner object itself.
-
withExtendedLocation
Set the extendedLocation property: The extended location of the Virtual Machine.- Overrides:
withExtendedLocationin classVirtualMachineImageResourceInner- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the VirtualMachineImageResourceInner object itself.
-
withId
- Overrides:
withIdin classVirtualMachineImageResourceInner
-
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 VirtualMachineImageInner 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 VirtualMachineImageInner 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 VirtualMachineImageInner object itself.
-
automaticOSUpgradeProperties
Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.- Returns:
- the automaticOSUpgradeProperties value.
-
withAutomaticOSUpgradeProperties
public VirtualMachineImageInner withAutomaticOSUpgradeProperties(AutomaticOSUpgradeProperties automaticOSUpgradeProperties) Set the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.- Parameters:
automaticOSUpgradeProperties- the automaticOSUpgradeProperties value to set.- Returns:
- the VirtualMachineImageInner 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 VirtualMachineImageInner 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 VirtualMachineImageInner 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 VirtualMachineImageInner 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 VirtualMachineImageInner object itself.
-
imageDeprecationStatus
Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.- Returns:
- the imageDeprecationStatus value.
-
withImageDeprecationStatus
public VirtualMachineImageInner withImageDeprecationStatus(ImageDeprecationStatus imageDeprecationStatus) Set the imageDeprecationStatus property: Describes image deprecation status properties on the image.- Parameters:
imageDeprecationStatus- the imageDeprecationStatus value to set.- Returns:
- the VirtualMachineImageInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classVirtualMachineImageResourceInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-