DiskEncryptionConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. DiskEncryptionConfiguration
- com.
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 Disk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Disk |
customerManagedKey()
Get the customer |
|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
|
List<Disk |
targets()
Get the targets property: The list of disk targets Batch Service will encrypt on the compute node On Linux pool, only "Temporary |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Disk |
withCustomerManagedKey(DiskCustomerManagedKey customerManagedKey)
Set the customer |
|
Disk |
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 "Temporary |
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:
fromJson
public static DiskEncryptionConfiguration fromJson(JsonReader jsonReader)
Reads an instance of DiskEncryptionConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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:
Returns:
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:
Returns: