RestorePointSourceVMStorageProfile Class

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

Implements

public final class RestorePointSourceVMStorageProfile
implements JsonSerializable<RestorePointSourceVMStorageProfile>

Describes the storage profile.

Constructor Summary

Constructor Description
RestorePointSourceVMStorageProfile()

Creates an instance of RestorePointSourceVMStorageProfile class.

Method Summary

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

Get the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.

DiskControllerTypes diskControllerType()

Get the diskControllerType property: Gets the disk controller type of the VM captured at the time of the restore point creation.

static RestorePointSourceVMStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVMStorageProfile from the JsonReader.

RestorePointSourceVmosDisk osDisk()

Get the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorePointSourceVMStorageProfile withDataDisks(List<RestorePointSourceVMDataDisk> dataDisks)

Set the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.

RestorePointSourceVMStorageProfile withOsDisk(RestorePointSourceVmosDisk osDisk)

Set the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.

Methods inherited from java.lang.Object

Constructor Details

RestorePointSourceVMStorageProfile

public RestorePointSourceVMStorageProfile()

Creates an instance of RestorePointSourceVMStorageProfile class.

Method Details

dataDisks

public List dataDisks()

Get the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.

Returns:

the dataDisks value.

diskControllerType

public DiskControllerTypes diskControllerType()

Get the diskControllerType property: Gets the disk controller type of the VM captured at the time of the restore point creation.

Returns:

the diskControllerType value.

fromJson

public static RestorePointSourceVMStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of RestorePointSourceVMStorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

osDisk

public RestorePointSourceVmosDisk osDisk()

Get the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.

Returns:

the osDisk value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDisks

public RestorePointSourceVMStorageProfile withDataDisks(List dataDisks)

Set the dataDisks property: Gets the data disks of the VM captured at the time of the restore point creation.

Parameters:

dataDisks - the dataDisks value to set.

Returns:

the RestorePointSourceVMStorageProfile object itself.

withOsDisk

public RestorePointSourceVMStorageProfile withOsDisk(RestorePointSourceVmosDisk osDisk)

Set the osDisk property: Gets the OS disk of the VM captured at the time of the restore point creation.

Parameters:

osDisk - the osDisk value to set.

Returns:

the RestorePointSourceVMStorageProfile object itself.

Applies to