다음을 통해 공유


RestorePointSourceVmosDisk Class

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

Implements

public final class RestorePointSourceVmosDisk
implements JsonSerializable<RestorePointSourceVmosDisk>

Describes an Operating System disk.

Constructor Summary

Constructor Description
RestorePointSourceVmosDisk()

Creates an instance of RestorePointSourceVmosDisk 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 disk size in GB.

DiskEncryptionSettings encryptionSettings()

Get the encryptionSettings property: Gets the disk encryption settings.

static RestorePointSourceVmosDisk fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVmosDisk from the JsonReader.

ManagedDiskParameters managedDisk()

Get the managedDisk property: Gets the managed disk details.

String name()

Get the name property: Gets the disk name.

OperatingSystemType osType()

Get the osType property: Gets the Operating System type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorePointSourceVmosDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint)

Set the diskRestorePoint property: Contains Disk Restore Point properties.

RestorePointSourceVmosDisk withManagedDisk(ManagedDiskParameters managedDisk)

Set the managedDisk property: Gets 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

RestorePointSourceVmosDisk

public RestorePointSourceVmosDisk()

Creates an instance of RestorePointSourceVmosDisk 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 disk size in GB.

Returns:

the diskSizeGB value.

encryptionSettings

public DiskEncryptionSettings encryptionSettings()

Get the encryptionSettings property: Gets the disk encryption settings.

Returns:

the encryptionSettings value.

fromJson

public static RestorePointSourceVmosDisk fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVmosDisk from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

managedDisk

public ManagedDiskParameters managedDisk()

Get the managedDisk property: Gets the managed disk details.

Returns:

the managedDisk value.

name

public String name()

Get the name property: Gets the disk name.

Returns:

the name value.

osType

public OperatingSystemType osType()

Get the osType property: Gets the Operating System type.

Returns:

the osType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiskRestorePoint

public RestorePointSourceVmosDisk withDiskRestorePoint(DiskRestorePointAttributes diskRestorePoint)

Set the diskRestorePoint property: Contains Disk Restore Point properties.

Parameters:

diskRestorePoint - the diskRestorePoint value to set.

Returns:

the RestorePointSourceVmosDisk object itself.

withManagedDisk

public RestorePointSourceVmosDisk withManagedDisk(ManagedDiskParameters managedDisk)

Set the managedDisk property: Gets the managed disk details.

Parameters:

managedDisk - the managedDisk value to set.

Returns:

the RestorePointSourceVmosDisk 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