Class Encryption
java.lang.Object
com.azure.resourcemanager.storage.models.Encryption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Encryption>
The encryption settings on the storage account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encryptionIdentity property: The identity to be used with service-side encryption at rest.static EncryptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Encryption from the JsonReader.Get the keySource property: The encryption keySource (provider).Get the keyVaultProperties property: Properties provided by key vault.Get the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.services()Get the services property: List of services which support encryption.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEncryptionIdentity(EncryptionIdentity encryptionIdentity) Set the encryptionIdentity property: The identity to be used with service-side encryption at rest.withKeySource(KeySource keySource) Set the keySource property: The encryption keySource (provider).withKeyVaultProperties(KeyVaultProperties keyVaultProperties) Set the keyVaultProperties property: Properties provided by key vault.withRequireInfrastructureEncryption(Boolean requireInfrastructureEncryption) Set the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.withServices(EncryptionServices services) Set the services property: List of services which support encryption.Methods inherited from class 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
-
Encryption
public Encryption()Creates an instance of Encryption class.
-
-
Method Details
-
services
Get the services property: List of services which support encryption.- Returns:
- the services value.
-
withServices
Set the services property: List of services which support encryption.- Parameters:
services- the services value to set.- Returns:
- the Encryption object itself.
-
keySource
Get the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.- Returns:
- the keySource value.
-
withKeySource
Set the keySource property: The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.- Parameters:
keySource- the keySource value to set.- Returns:
- the Encryption object itself.
-
requireInfrastructureEncryption
Get the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.- Returns:
- the requireInfrastructureEncryption value.
-
withRequireInfrastructureEncryption
Set the requireInfrastructureEncryption property: A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.- Parameters:
requireInfrastructureEncryption- the requireInfrastructureEncryption value to set.- Returns:
- the Encryption object itself.
-
keyVaultProperties
Get the keyVaultProperties property: Properties provided by key vault.- Returns:
- the keyVaultProperties value.
-
withKeyVaultProperties
Set the keyVaultProperties property: Properties provided by key vault.- Parameters:
keyVaultProperties- the keyVaultProperties value to set.- Returns:
- the Encryption object itself.
-
encryptionIdentity
Get the encryptionIdentity property: The identity to be used with service-side encryption at rest.- Returns:
- the encryptionIdentity value.
-
withEncryptionIdentity
Set the encryptionIdentity property: The identity to be used with service-side encryption at rest.- Parameters:
encryptionIdentity- the encryptionIdentity value to set.- Returns:
- the Encryption 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<Encryption>- Throws:
IOException
-
fromJson
Reads an instance of Encryption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Encryption 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 Encryption.
-