DiskEncryptionConfiguration Class

  • java.lang.Object
    • com.azure.compute.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 Azure Compute Gallery Image.

Constructor Summary

Constructor Description
DiskEncryptionConfiguration()

Creates an instance of DiskEncryptionConfiguration class.

Method Summary

Modifier and Type Method and Description
static DiskEncryptionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionConfiguration from the JsonReader.

DiskCustomerManagedKey getCustomerManagedKey()

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

List<DiskEncryptionTarget> getTargets()

Get the targets property: The list of disk targets Batch Service will encrypt on the compute node.

DiskEncryptionConfiguration setCustomerManagedKey(DiskCustomerManagedKey customerManagedKey)

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

DiskEncryptionConfiguration setTargets(List<DiskEncryptionTarget> targets)

Set the targets property: The list of disk targets Batch Service will encrypt on the compute node.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

DiskEncryptionConfiguration

public DiskEncryptionConfiguration()

Creates an instance of DiskEncryptionConfiguration class.

Method Details

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.

getCustomerManagedKey

public DiskCustomerManagedKey getCustomerManagedKey()

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.

getTargets

public List<DiskEncryptionTarget> getTargets()

Get the targets property: The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service will encrypt on the compute node.

Returns:

the targets value.

setCustomerManagedKey

public DiskEncryptionConfiguration setCustomerManagedKey(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.

setTargets

public DiskEncryptionConfiguration setTargets(List<DiskEncryptionTarget> targets)

Set the targets property: The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service will encrypt on the compute node.

Parameters:

targets - the targets value to set.

Returns:

the DiskEncryptionConfiguration object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to