CacheEncryptionSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.storagecache.models.CacheEncryptionSettings

public final class CacheEncryptionSettings

Cache encryption settings.

Constructor Summary

Constructor Description
CacheEncryptionSettings()

Creates an instance of CacheEncryptionSettings class.

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

CacheEncryptionSettings

public CacheEncryptionSettings()

Creates an instance of CacheEncryptionSettings class.

Method Details

keyEncryptionKey

public KeyVaultKeyReference keyEncryptionKey()

Get the keyEncryptionKey property: Specifies the location of the key encryption key in key vault.

Returns:

the keyEncryptionKey value.

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.

validate

public void validate()

Validates the instance.

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.

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.

Applies to