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 Details

    • ManagedDiskEncryption

      public ManagedDiskEncryption()
      Creates an instance of ManagedDiskEncryption 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 ManagedDiskEncryption 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 ManagedDiskEncryption object itself.
    • keyVaultProperties

      public ManagedDiskEncryptionKeyVaultProperties 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

      public Boolean 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.