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
static DiskEncryptionConfiguration fromJson(JsonReader jsonReader)

Reads an instance of DiskEncryptionConfiguration from the JsonReader.

List<DiskEncryptionTarget> targets()

Get the targets property: 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 withTargets(List<DiskEncryptionTarget> targets)

Set the targets property: 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

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 targets()

Get the targets property: 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.

withTargets

public DiskEncryptionConfiguration withTargets(List targets)

Set the targets property: 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