Class ManagedDiskEncryption
java.lang.Object
com.azure.resourcemanager.databricks.models.ManagedDiskEncryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedDiskEncryption>
public final class ManagedDiskEncryption
extends Object
implements com.azure.json.JsonSerializable<ManagedDiskEncryption>
The object that contains details of encryption used on the workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedDiskEncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedDiskEncryption from the JsonReader.Get the keySource property: The encryption keySource (provider).Get the keyVaultProperties property: Key Vault input properties for encryption.Get the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withKeySource(EncryptionKeySource keySource) Set the keySource property: The encryption keySource (provider).withKeyVaultProperties(ManagedDiskEncryptionKeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Key Vault input properties for encryption.withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.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
-
ManagedDiskEncryption
public ManagedDiskEncryption()Creates an instance of ManagedDiskEncryption class.
-
-
Method Details
-
keySource
Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault.- Returns:
- the keySource value.
-
withKeySource
Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault.- Parameters:
keySource- the keySource value to set.- Returns:
- the ManagedDiskEncryption object itself.
-
keyVaultProperties
Get the keyVaultProperties property: Key Vault input properties for encryption.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
public ManagedDiskEncryption withKeyVaultProperties(ManagedDiskEncryptionKeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Key Vault input properties for encryption.- Parameters:
keyVaultProperties- the keyVaultProperties value to set.- Returns:
- the ManagedDiskEncryption object itself.
-
rotationToLatestKeyVersionEnabled
Get the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.- Returns:
- the rotationToLatestKeyVersionEnabled value.
-
withRotationToLatestKeyVersionEnabled
public ManagedDiskEncryption withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Indicate whether the latest key version should be automatically used for Managed Disk Encryption.- Parameters:
rotationToLatestKeyVersionEnabled- the rotationToLatestKeyVersionEnabled value to set.- Returns:
- the ManagedDiskEncryption object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedDiskEncryption>- Throws:
IOException
-
fromJson
public static ManagedDiskEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedDiskEncryption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedDiskEncryption if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedDiskEncryption.
-