다음을 통해 공유


DiskRestorePointAttributes Class

public final class DiskRestorePointAttributes
extends SubResourceReadOnly

Disk Restore Point details.

Constructor Summary

Constructor Description
DiskRestorePointAttributes()

Creates an instance of DiskRestorePointAttributes class.

Method Summary

Modifier and Type Method and Description
RestorePointEncryption encryption()

Get the encryption property: Encryption at rest settings for disk restore point.

static DiskRestorePointAttributes fromJson(JsonReader jsonReader)

Reads an instance of DiskRestorePointAttributes from the JsonReader.

String id()

Get the id property: Resource Id.

ApiEntityReference sourceDiskRestorePoint()

Get the sourceDiskRestorePoint property: Resource Id of the source disk restore point.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskRestorePointAttributes withEncryption(RestorePointEncryption encryption)

Set the encryption property: Encryption at rest settings for disk restore point.

DiskRestorePointAttributes withSourceDiskRestorePoint(ApiEntityReference sourceDiskRestorePoint)

Set the sourceDiskRestorePoint property: Resource Id of the source disk restore point.

Methods inherited from SubResourceReadOnly

Methods inherited from java.lang.Object

Constructor Details

DiskRestorePointAttributes

public DiskRestorePointAttributes()

Creates an instance of DiskRestorePointAttributes class.

Method Details

encryption

public RestorePointEncryption encryption()

Get the encryption property: Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point.

Returns:

the encryption value.

fromJson

public static DiskRestorePointAttributes fromJson(JsonReader jsonReader)

Reads an instance of DiskRestorePointAttributes from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Overrides:

DiskRestorePointAttributes.id()

Returns:

the id value.

sourceDiskRestorePoint

public ApiEntityReference sourceDiskRestorePoint()

Get the sourceDiskRestorePoint property: Resource Id of the source disk restore point.

Returns:

the sourceDiskRestorePoint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiskRestorePointAttributes.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DiskRestorePointAttributes.validate()

withEncryption

public DiskRestorePointAttributes withEncryption(RestorePointEncryption encryption)

Set the encryption property: Encryption at rest settings for disk restore point. It is an optional property that can be specified in the input while creating a restore point.

Parameters:

encryption - the encryption value to set.

Returns:

the DiskRestorePointAttributes object itself.

withSourceDiskRestorePoint

public DiskRestorePointAttributes withSourceDiskRestorePoint(ApiEntityReference sourceDiskRestorePoint)

Set the sourceDiskRestorePoint property: Resource Id of the source disk restore point.

Parameters:

sourceDiskRestorePoint - the sourceDiskRestorePoint value to set.

Returns:

the DiskRestorePointAttributes object itself.

Applies to