VirtualMachineImageInner Class

public final class VirtualMachineImageInner
extends VirtualMachineImageResourceInner

Describes a Virtual Machine Image.

Method Summary

Modifier and Type Method and Description
ArchitectureTypes architecture()

Get the architecture property: Specifies the Architecture Type.

AutomaticOSUpgradeProperties automaticOSUpgradeProperties()

Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.

List<DataDiskImage> dataDiskImages()

Get the dataDiskImages property: The list of data disk images information.

DisallowedConfiguration disallowed()

Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

List<VirtualMachineImageFeature> features()

Get the features property: The features property.

static VirtualMachineImageInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineImageInner from the JsonReader.

HyperVGenerationTypes hyperVGeneration()

Get the hyperVGeneration property: Specifies the HyperVGeneration Type.

ImageDeprecationStatus imageDeprecationStatus()

Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.

String location()

Get the location property: The supported Azure location of the resource.

String name()

Get the name property: The name of the resource.

OSDiskImage osDiskImage()

Get the osDiskImage property: Contains the os disk image information.

PurchasePlan plan()

Get the plan property: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

Map<String,String> tags()

Get the tags property: Specifies the tags that are assigned to the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from SubResource

Methods inherited from VirtualMachineImageResourceInner

Methods inherited from java.lang.Object

Method Details

architecture

public ArchitectureTypes architecture()

Get the architecture property: Specifies the Architecture Type.

Returns:

the architecture value.

automaticOSUpgradeProperties

public AutomaticOSUpgradeProperties automaticOSUpgradeProperties()

Get the automaticOSUpgradeProperties property: Describes automatic OS upgrade properties on the image.

Returns:

the automaticOSUpgradeProperties value.

dataDiskImages

public List<DataDiskImage> dataDiskImages()

Get the dataDiskImages property: The list of data disk images information.

Returns:

the dataDiskImages value.

disallowed

public DisallowedConfiguration disallowed()

Get the disallowed property: Specifies disallowed configuration for the VirtualMachine created from the image.

Returns:

the disallowed value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the Virtual Machine.

Overrides:

VirtualMachineImageInner.extendedLocation()

Returns:

the extendedLocation value.

features

public List<VirtualMachineImageFeature> features()

Get the features property: The features property.

Returns:

the features value.

fromJson

public static VirtualMachineImageInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineImageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hyperVGeneration

public HyperVGenerationTypes hyperVGeneration()

Get the hyperVGeneration property: Specifies the HyperVGeneration Type.

Returns:

the hyperVGeneration value.

imageDeprecationStatus

public ImageDeprecationStatus imageDeprecationStatus()

Get the imageDeprecationStatus property: Describes image deprecation status properties on the image.

Returns:

the imageDeprecationStatus value.

location

public String location()

Get the location property: The supported Azure location of the resource.

Overrides:

VirtualMachineImageInner.location()

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualMachineImageInner.name()

Returns:

the name value.

osDiskImage

public OSDiskImage osDiskImage()

Get the osDiskImage property: Contains the os disk image information.

Returns:

the osDiskImage value.

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.

tags

public Map<String,String> tags()

Get 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:

VirtualMachineImageInner.tags()

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

VirtualMachineImageInner.validate()

Applies to