Class EncryptionV2
java.lang.Object
com.azure.resourcemanager.databricks.models.EncryptionV2
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionV2>
public final class EncryptionV2
extends Object
implements com.azure.json.JsonSerializable<EncryptionV2>
The object that contains details of encryption used on the workspace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionV2fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionV2 from the JsonReader.Get the keySource property: The encryption keySource (provider).Get the keyVaultProperties property: Key Vault input properties for 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(EncryptionV2KeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Key Vault input properties for 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
-
EncryptionV2
public EncryptionV2()Creates an instance of EncryptionV2 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 EncryptionV2 object itself.
-
keyVaultProperties
Get the keyVaultProperties property: Key Vault input properties for encryption.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
Set the keyVaultProperties property: Key Vault input properties for encryption.- Parameters:
keyVaultProperties- the keyVaultProperties value to set.- Returns:
- the EncryptionV2 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<EncryptionV2>- Throws:
IOException
-
fromJson
Reads an instance of EncryptionV2 from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionV2 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 EncryptionV2.
-