Class AccountEncryption

java.lang.Object
com.azure.resourcemanager.netapp.models.AccountEncryption
All Implemented Interfaces:
com.azure.json.JsonSerializable<AccountEncryption>

public final class AccountEncryption extends Object implements com.azure.json.JsonSerializable<AccountEncryption>
Encryption settings.
  • Constructor Details

    • AccountEncryption

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

    • keySource

      public KeySource keySource()
      Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault.
      Returns:
      the keySource value.
    • withKeySource

      public AccountEncryption withKeySource(KeySource keySource)
      Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault.
      Parameters:
      keySource - the keySource value to set.
      Returns:
      the AccountEncryption object itself.
    • keyVaultProperties

      public KeyVaultProperties keyVaultProperties()
      Get the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.
      Returns:
      the keyVaultProperties value.
    • withKeyVaultProperties

      public AccountEncryption withKeyVaultProperties(KeyVaultProperties keyVaultProperties)
      Set the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.
      Parameters:
      keyVaultProperties - the keyVaultProperties value to set.
      Returns:
      the AccountEncryption object itself.
    • identity

      public EncryptionIdentity identity()
      Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.
      Returns:
      the identity value.
    • withIdentity

      public AccountEncryption withIdentity(EncryptionIdentity identity)
      Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.
      Parameters:
      identity - the identity value to set.
      Returns:
      the AccountEncryption 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<AccountEncryption>
      Throws:
      IOException
    • fromJson

      public static AccountEncryption fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AccountEncryption from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AccountEncryption 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 AccountEncryption.