Class CacheEncryptionSettings
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.models.CacheEncryptionSettings
-
public final class CacheEncryptionSettings extends Object
Cache encryption settings.
-
-
Constructor Summary
Constructors Constructor Description CacheEncryptionSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyVaultKeyReference
keyEncryptionKey()
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.Boolean
rotationToLatestKeyVersionEnabled()
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.CacheEncryptionSettings
withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.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.
-
-
-
Method Detail
-
keyEncryptionKey
public KeyVaultKeyReference keyEncryptionKey()
Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.- Returns:
- the keyEncryptionKey value.
-
withKeyEncryptionKey
public CacheEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey)
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
public Boolean 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.
-
-