Dela via


Encryption Class

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

Implements

public final class Encryption
implements JsonSerializable<Encryption>

Encryption at rest settings for disk or snapshot.

Constructor Summary

Constructor Description
Encryption()

Creates an instance of Encryption class.

Method Summary

Modifier and Type Method and Description
String diskEncryptionSetId()

Get the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.

static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
EncryptionType type()

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

void validate()

Validates the instance.

Encryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.

Encryption withType(EncryptionType type)

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

Methods inherited from java.lang.Object

Constructor Details

Encryption

public Encryption()

Creates an instance of Encryption class.

Method Details

diskEncryptionSetId

public String diskEncryptionSetId()

Get the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.

Returns:

the diskEncryptionSetId value.

fromJson

public static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public EncryptionType type()

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

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDiskEncryptionSetId

public Encryption withDiskEncryptionSetId(String diskEncryptionSetId)

Set the diskEncryptionSetId property: ResourceId of the disk encryption set to use for enabling encryption at rest.

Parameters:

diskEncryptionSetId - the diskEncryptionSetId value to set.

Returns:

the Encryption object itself.

withType

public Encryption withType(EncryptionType type)

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

Parameters:

type - the type value to set.

Returns:

the Encryption object itself.

Applies to