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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountEncryption
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AccountEncryption from the JsonReader.identity()
Get the identity property: Identity used to authenticate to KeyVault.Get the keySource property: The encryption keySource (provider).Get the keyVaultProperties property: Properties provided by KeVault.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withIdentity
(EncryptionIdentity identity) Set the identity property: Identity used to authenticate to KeyVault.withKeySource
(KeySource keySource) Set the keySource property: The encryption keySource (provider).withKeyVaultProperties
(KeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Properties provided by KeVault.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AccountEncryption
public AccountEncryption()Creates an instance of AccountEncryption class.
-
-
Method Details
-
keySource
Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault.- Returns:
- the keySource value.
-
withKeySource
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
Get the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
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
Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'.- Returns:
- the identity value.
-
withIdentity
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AccountEncryption>
- Throws:
IOException
-
fromJson
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.
-