다음을 통해 공유


RestorePointEncryption Class

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

Implements

public final class RestorePointEncryption
implements JsonSerializable<RestorePointEncryption>

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.

Constructor Summary

Constructor Description
RestorePointEncryption()

Creates an instance of RestorePointEncryption class.

Method Summary

Modifier and Type Method and Description
DiskEncryptionSetParameters diskEncryptionSet()

Get the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.

static RestorePointEncryption fromJson(JsonReader jsonReader)

Reads an instance of RestorePointEncryption from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
RestorePointEncryptionType type()

Get the type property: The type of key used to encrypt the data of the disk restore point.

void validate()

Validates the instance.

RestorePointEncryption withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

Set the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk.

RestorePointEncryption withType(RestorePointEncryptionType type)

Set the type property: The type of key used to encrypt the data of the disk restore point.

Methods inherited from java.lang.Object

Constructor Details

RestorePointEncryption

public RestorePointEncryption()

Creates an instance of RestorePointEncryption class.

Method Details

diskEncryptionSet

public DiskEncryptionSetParameters diskEncryptionSet()

Get the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.

Returns:

the diskEncryptionSet value.

fromJson

public static RestorePointEncryption fromJson(JsonReader jsonReader)

Reads an instance of RestorePointEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public RestorePointEncryptionType type()

Get the type property: The type of key used to encrypt the data of the disk restore point.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDiskEncryptionSet

public RestorePointEncryption withDiskEncryptionSet(DiskEncryptionSetParameters diskEncryptionSet)

Set the diskEncryptionSet property: Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.

Parameters:

diskEncryptionSet - the diskEncryptionSet value to set.

Returns:

the RestorePointEncryption object itself.

withType

public RestorePointEncryption withType(RestorePointEncryptionType type)

Set the type property: The type of key used to encrypt the data of the disk restore point.

Parameters:

type - the type value to set.

Returns:

the RestorePointEncryption object itself.

Applies to