Class CacheEncryptionSettings
java.lang.Object
com.azure.resourcemanager.storagecache.models.CacheEncryptionSettings
Cache encryption settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.Get the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault.void
validate()
Validates the instance.withKeyEncryptionKey
(KeyVaultKeyReference keyEncryptionKey) Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.withRotationToLatestKeyVersionEnabled
(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault.
-
Constructor Details
-
CacheEncryptionSettings
public CacheEncryptionSettings()
-
-
Method Details
-
keyEncryptionKey
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Returns:
- the keyEncryptionKey value.
-
withKeyEncryptionKey
Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Parameters:
keyEncryptionKey
- the keyEncryptionKey value to set.- Returns:
- the CacheEncryptionSettings object itself.
-
rotationToLatestKeyVersionEnabled
Get the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault.- Returns:
- the rotationToLatestKeyVersionEnabled value.
-
withRotationToLatestKeyVersionEnabled
public CacheEncryptionSettings withRotationToLatestKeyVersionEnabled(Boolean rotationToLatestKeyVersionEnabled) Set the rotationToLatestKeyVersionEnabled property: Specifies whether the service will automatically rotate to the newest version of the key in the Key Vault.- Parameters:
rotationToLatestKeyVersionEnabled
- the rotationToLatestKeyVersionEnabled value to set.- Returns:
- the CacheEncryptionSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-