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 Details

    • EncryptionV2

      public EncryptionV2()
      Creates an instance of EncryptionV2 class.
  • Method Details

    • keySource

      public EncryptionKeySource keySource()
      Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Keyvault.
      Returns:
      the keySource value.
    • withKeySource

      public EncryptionV2 withKeySource(EncryptionKeySource keySource)
      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

      public EncryptionV2KeyVaultProperties keyVaultProperties()
      Get the keyVaultProperties property: Key Vault input properties for encryption.
      Returns:
      the keyVaultProperties value.
    • withKeyVaultProperties

      public EncryptionV2 withKeyVaultProperties(EncryptionV2KeyVaultProperties keyVaultProperties)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EncryptionV2>
      Throws:
      IOException
    • fromJson

      public static EncryptionV2 fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.