Package com.azure.compute.batch.models
Class DiskEncryptionConfiguration
java.lang.Object
com.azure.compute.batch.models.DiskEncryptionConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DiskEncryptionConfiguration>
public final class DiskEncryptionConfiguration
extends Object
implements com.azure.json.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
ConstructorsConstructorDescriptionCreates an instance of DiskEncryptionConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskEncryptionConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiskEncryptionConfiguration from the JsonReader.Get the targets property: The list of disk targets Batch Service will encrypt on the compute node.setTargets(List<DiskEncryptionTarget> targets) Set the targets property: The list of disk targets Batch Service will encrypt on the compute node.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DiskEncryptionConfiguration
public DiskEncryptionConfiguration()Creates an instance of DiskEncryptionConfiguration class.
-
-
Method Details
-
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.
-
setTargets
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DiskEncryptionConfiguration>- Throws:
IOException
-
fromJson
public static DiskEncryptionConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-