다음을 통해 공유


RestorePointSourceVMDataDisk Class

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

Implements

public final class RestorePointSourceVMDataDisk
implements JsonSerializable<RestorePointSourceVMDataDisk>

Describes a data disk.

Constructor Summary

Constructor Description
RestorePointSourceVMDataDisk()

Creates an instance of RestorePointSourceVMDataDisk class.

Method Summary

Modifier and Type Method and Description
CachingTypes caching()

Get the caching property: Gets the caching type.

DiskRestorePointAttributes diskRestorePoint()

Get the diskRestorePoint property: Contains Disk Restore Point properties.

Integer diskSizeGB()

Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.

static RestorePointSourceVMDataDisk fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVMDataDisk from the JsonReader.

Integer lun()

Get the lun property: Gets the logical unit number.

ManagedDiskParameters managedDisk()

Get the managedDisk property: Contains the managed disk details.

String name()

Get the name property: Gets the disk name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorePointSourceVMDataDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint)

Set the diskRestorePoint property: Contains Disk Restore Point properties.

RestorePointSourceVMDataDisk withManagedDisk(ManagedDiskParameters managedDisk)

Set the managedDisk property: Contains the managed disk details.

Boolean writeAcceleratorEnabled()

Get the writeAcceleratorEnabled property: Shows true if the disk is write-accelerator enabled.

Methods inherited from java.lang.Object

Constructor Details

RestorePointSourceVMDataDisk

public RestorePointSourceVMDataDisk()

Creates an instance of RestorePointSourceVMDataDisk class.

Method Details

caching

public CachingTypes caching()

Get the caching property: Gets the caching type.

Returns:

the caching value.

diskRestorePoint

public DiskRestorePointAttributes diskRestorePoint()

Get the diskRestorePoint property: Contains Disk Restore Point properties.

Returns:

the diskRestorePoint value.

diskSizeGB

public Integer diskSizeGB()

Get the diskSizeGB property: Gets the initial disk size in GB for blank data disks, and the new desired size for existing OS and Data disks.

Returns:

the diskSizeGB value.

fromJson

public static RestorePointSourceVMDataDisk fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVMDataDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

lun

public Integer lun()

Get the lun property: Gets the logical unit number.

Returns:

the lun value.

managedDisk

public ManagedDiskParameters managedDisk()

Get the managedDisk property: Contains the managed disk details.

Returns:

the managedDisk value.

name

public String name()

Get the name property: Gets the disk name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskRestorePoint

public RestorePointSourceVMDataDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint)

Set the diskRestorePoint property: Contains Disk Restore Point properties.

Parameters:

diskRestorePoint - the diskRestorePoint value to set.

Returns:

the RestorePointSourceVMDataDisk object itself.

withManagedDisk

public RestorePointSourceVMDataDisk withManagedDisk(ManagedDiskParameters managedDisk)

Set the managedDisk property: Contains the managed disk details.

Parameters:

managedDisk - the managedDisk value to set.

Returns:

the RestorePointSourceVMDataDisk object itself.

writeAcceleratorEnabled

public Boolean writeAcceleratorEnabled()

Get the writeAcceleratorEnabled property: Shows true if the disk is write-accelerator enabled.

Returns:

the writeAcceleratorEnabled value.

Applies to