Freigeben über


ImageStorageProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ImageStorageProfile

Implements

public final class ImageStorageProfile
implements JsonSerializable<ImageStorageProfile>

Describes a storage profile.

Constructor Summary

Constructor Description
ImageStorageProfile()

Creates an instance of ImageStorageProfile class.

Method Summary

Modifier and Type Method and Description
List<ImageDataDisk> dataDisks()

Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.

static ImageStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of ImageStorageProfile from the JsonReader.

ImageOSDisk osDisk()

Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ImageStorageProfile withDataDisks(List<ImageDataDisk> dataDisks)

Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.

ImageStorageProfile withOsDisk(ImageOSDisk osDisk)

Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.

ImageStorageProfile withZoneResilient(Boolean zoneResilient)

Set the zoneResilient property: Specifies whether an image is zone resilient or not.

Boolean zoneResilient()

Get the zoneResilient property: Specifies whether an image is zone resilient or not.

Methods inherited from java.lang.Object

Constructor Details

ImageStorageProfile

public ImageStorageProfile()

Creates an instance of ImageStorageProfile class.

Method Details

dataDisks

public List<ImageDataDisk> dataDisks()

Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).

Returns:

the dataDisks value.

fromJson

public static ImageStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of ImageStorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageStorageProfile 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 ImageStorageProfile.

osDisk

public ImageOSDisk osDisk()

Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).

Returns:

the osDisk value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDisks

public ImageStorageProfile withDataDisks(List<ImageDataDisk> dataDisks)

Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).

Parameters:

dataDisks - the dataDisks value to set.

Returns:

the ImageStorageProfile object itself.

withOsDisk

public ImageStorageProfile withOsDisk(ImageOSDisk osDisk)

Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).

Parameters:

osDisk - the osDisk value to set.

Returns:

the ImageStorageProfile object itself.

withZoneResilient

public ImageStorageProfile withZoneResilient(Boolean zoneResilient)

Set the zoneResilient property: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).

Parameters:

zoneResilient - the zoneResilient value to set.

Returns:

the ImageStorageProfile object itself.

zoneResilient

public Boolean zoneResilient()

Get the zoneResilient property: Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).

Returns:

the zoneResilient value.

Applies to