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 |
---|---|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
List<Disk |
targets()
Get the targets property: On Linux pool, only "Temporary |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Disk |
withTargets(List<DiskEncryptionTarget> targets)
Set the targets property: On Linux pool, only "Temporary |
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:
Returns:
Throws:
targets
public List
Get the targets property: 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.
withTargets
public DiskEncryptionConfiguration withTargets(List
Set the targets property: On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" and "TemporaryDisk" must be specified.
Parameters:
Returns:
Applies to
Azure SDK for Java