Partilhar via


VirtualMachineImageInner Class

public final class VirtualMachineImageInner
extends VirtualMachineImageResourceInner

Describes a Virtual Machine Image.

Constructor Summary

Constructor Description
VirtualMachineImageInner()

Creates an instance of VirtualMachineImageInner class.

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 dataDiskImages property.

DisallowedConfiguration disallowed()

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

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.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineImageInner withArchitecture(ArchitectureTypes architecture)

Set the architecture property: Specifies the Architecture Type.

VirtualMachineImageInner withAutomaticOSUpgradeProperties(AutomaticOSUpgradeProperties automaticOSUpgradeProperties)

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

VirtualMachineImageInner withDataDiskImages(List<DataDiskImage> dataDiskImages)

Set the dataDiskImages property: The dataDiskImages property.

VirtualMachineImageInner withDisallowed(DisallowedConfiguration disallowed)

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

VirtualMachineImageInner withExtendedLocation(ExtendedLocation extendedLocation)

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

VirtualMachineImageInner withFeatures(List<VirtualMachineImageFeature> features)

Set the features property: The features property.

VirtualMachineImageInner withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)

Set the hyperVGeneration property: Specifies the HyperVGeneration Type.

VirtualMachineImageInner withId(String id)
VirtualMachineImageInner withImageDeprecationStatus(ImageDeprecationStatus imageDeprecationStatus)

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

VirtualMachineImageInner withLocation(String location)

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

VirtualMachineImageInner withName(String name)

Set the name property: The name of the resource.

VirtualMachineImageInner withOsDiskImage(OSDiskImage osDiskImage)

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

VirtualMachineImageInner withPlan(PurchasePlan plan)

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

VirtualMachineImageInner withTags(Map<String,String> tags)

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

Methods inherited from SubResource

id

Methods inherited from VirtualMachineImageResourceInner

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineImageInner

public VirtualMachineImageInner()

Creates an instance of VirtualMachineImageInner class.

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 dataDiskImages()

Get the dataDiskImages property: The dataDiskImages property.

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.

features

public List 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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualMachineImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

VirtualMachineImageInner.validate()

withArchitecture

public VirtualMachineImageInner withArchitecture(ArchitectureTypes architecture)

Set the architecture property: Specifies the Architecture Type.

Parameters:

architecture - the architecture value to set.

Returns:

the VirtualMachineImageInner object itself.

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.

withDataDiskImages

public VirtualMachineImageInner withDataDiskImages(List dataDiskImages)

Set the dataDiskImages property: The dataDiskImages property.

Parameters:

dataDiskImages - the dataDiskImages value to set.

Returns:

the VirtualMachineImageInner object itself.

withDisallowed

public VirtualMachineImageInner 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 VirtualMachineImageInner object itself.

withExtendedLocation

public VirtualMachineImageInner withExtendedLocation(ExtendedLocation extendedLocation)

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

Overrides:

VirtualMachineImageInner.withExtendedLocation(ExtendedLocation extendedLocation)

Parameters:

extendedLocation

withFeatures

public VirtualMachineImageInner withFeatures(List features)

Set the features property: The features property.

Parameters:

features - the features value to set.

Returns:

the VirtualMachineImageInner object itself.

withHyperVGeneration

public VirtualMachineImageInner withHyperVGeneration(HyperVGenerationTypes hyperVGeneration)

Set the hyperVGeneration property: Specifies the HyperVGeneration Type.

Parameters:

hyperVGeneration - the hyperVGeneration value to set.

Returns:

the VirtualMachineImageInner object itself.

withId

public VirtualMachineImageInner withId(String id)

Overrides:

VirtualMachineImageInner.withId(String id)

Parameters:

id

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.

withLocation

public VirtualMachineImageInner withLocation(String location)

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

Overrides:

VirtualMachineImageInner.withLocation(String location)

Parameters:

location

withName

public VirtualMachineImageInner withName(String name)

Set the name property: The name of the resource.

Overrides:

VirtualMachineImageInner.withName(String name)

Parameters:

name

withOsDiskImage

public VirtualMachineImageInner withOsDiskImage(OSDiskImage osDiskImage)

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

Parameters:

osDiskImage - the osDiskImage value to set.

Returns:

the VirtualMachineImageInner object itself.

withPlan

public VirtualMachineImageInner 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 VirtualMachineImageInner object itself.

withTags

public VirtualMachineImageInner withTags(Map tags)

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:

VirtualMachineImageInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to