ImageStorageProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ImageStorageProfile
- com.
Implements
public final class ImageStorageProfile
implements JsonSerializable<ImageStorageProfile>
Describes a storage profile.
Constructor Summary
Constructor | Description |
---|---|
ImageStorageProfile() |
Creates an instance of Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Image |
dataDisks()
Get the data |
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
Image |
osDisk()
Get the os |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Image |
withDataDisks(List<ImageDataDisk> dataDisks)
Set the data |
Image |
withOsDisk(ImageOSDisk osDisk)
Set the os |
Image |
withZoneResilient(Boolean zoneResilient)
Set the zone |
Boolean |
zoneResilient()
Get the zone |
Methods inherited from java.lang.Object
Constructor Details
ImageStorageProfile
public ImageStorageProfile()
Creates an instance of ImageStorageProfile class.
Method Details
dataDisks
public List
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:
fromJson
public static ImageStorageProfile fromJson(JsonReader jsonReader)
Reads an instance of ImageStorageProfile from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withDataDisks
public ImageStorageProfile withDataDisks(List
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:
Returns:
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:
Returns:
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:
Returns:
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:
Applies to
Azure SDK for Java