DiskEncryptionConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.DiskEncryptionConfiguration

Implements

public final class DiskEncryptionConfiguration
implements JsonSerializable<DiskEncryptionConfiguration>

The disk encryption configuration applied on compute nodes in the pool. Disk encryption configuration is not supported on Linux pool created with Virtual Machine Image or Azure Compute Gallery Image.

Constructor Summary

Constructor Description
DiskEncryptionConfiguration()

Creates an instance of DiskEncryptionConfiguration class.

Method Summary

Modifier and Type Method and Description
DiskCustomerManagedKey customerManagedKey()

Get the customerManagedKey property: The Customer Managed Key reference to encrypt the OS Disk.

static DiskEncryptionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionConfiguration from the JsonReader.

List<DiskEncryptionTarget> targets()

Get the targets property: The list of disk targets Batch Service will encrypt on the compute node On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DiskEncryptionConfiguration withCustomerManagedKey(DiskCustomerManagedKey customerManagedKey)

Set the customerManagedKey property: The Customer Managed Key reference to encrypt the OS Disk.

DiskEncryptionConfiguration withTargets(List<DiskEncryptionTarget> targets)

Set the targets property: The list of disk targets Batch Service will encrypt on the compute node On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.

Methods inherited from java.lang.Object

Constructor Details

DiskEncryptionConfiguration

public DiskEncryptionConfiguration()

Creates an instance of DiskEncryptionConfiguration class.

Method Details

customerManagedKey

public DiskCustomerManagedKey customerManagedKey()

Get the customerManagedKey property: The Customer Managed Key reference to encrypt the OS Disk. Customer Managed Key will encrypt OS Disk by EncryptionAtRest, and by default we will encrypt the data disk as well. It can be used only when the pool is configured with an identity and OsDisk is set as one of the targets of DiskEncryption.

Returns:

the customerManagedKey value.

fromJson

public static DiskEncryptionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

targets

public List<DiskEncryptionTarget> targets()

Get the targets property: The list of disk targets Batch Service will encrypt on the compute node On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.

Returns:

the targets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomerManagedKey

public DiskEncryptionConfiguration withCustomerManagedKey(DiskCustomerManagedKey customerManagedKey)

Set the customerManagedKey property: The Customer Managed Key reference to encrypt the OS Disk. Customer Managed Key will encrypt OS Disk by EncryptionAtRest, and by default we will encrypt the data disk as well. It can be used only when the pool is configured with an identity and OsDisk is set as one of the targets of DiskEncryption.

Parameters:

customerManagedKey - the customerManagedKey value to set.

Returns:

the DiskEncryptionConfiguration object itself.

withTargets

public DiskEncryptionConfiguration withTargets(List<DiskEncryptionTarget> targets)

Set the targets property: The list of disk targets Batch Service will encrypt on the compute node On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.

Parameters:

targets - the targets value to set.

Returns:

the DiskEncryptionConfiguration object itself.

Applies to