Class BackupSettings.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.alpha.BackupSettings.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BackupSettings>
- Enclosing interface:
BackupSettings
@Stability(Experimental)
public static final class BackupSettings.Builder
extends Object
implements software.amazon.jsii.Builder<BackupSettings>
A builder for
BackupSettings-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackupArnsToRestore(List<String> backupArnsToRestore) Sets the value ofBackupSettings.getBackupArnsToRestore()backupNameBeforeDeletion(String backupNameBeforeDeletion) Sets the value ofBackupSettings.getBackupNameBeforeDeletion()backupRetentionLimit(Number backupRetentionLimit) Sets the value ofBackupSettings.getBackupRetentionLimit()backupTime(Schedule backupTime) Sets the value ofBackupSettings.getBackupTime()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupArnsToRestore
@Stability(Experimental) public BackupSettings.Builder backupArnsToRestore(List<String> backupArnsToRestore) Sets the value ofBackupSettings.getBackupArnsToRestore()- Parameters:
backupArnsToRestore- ARNs of backups from which to restore data into the new cache.- Returns:
this
-
backupNameBeforeDeletion
@Stability(Experimental) public BackupSettings.Builder backupNameBeforeDeletion(String backupNameBeforeDeletion) Sets the value ofBackupSettings.getBackupNameBeforeDeletion()- Parameters:
backupNameBeforeDeletion- Name for the final backup taken before deletion.- Returns:
this
-
backupRetentionLimit
@Stability(Experimental) public BackupSettings.Builder backupRetentionLimit(Number backupRetentionLimit) Sets the value ofBackupSettings.getBackupRetentionLimit()- Parameters:
backupRetentionLimit- Number of days to retain backups (1-35).- Returns:
this
-
backupTime
Sets the value ofBackupSettings.getBackupTime()- Parameters:
backupTime- Automated daily backup UTC time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BackupSettings>- Returns:
- a new instance of
BackupSettings - Throws:
NullPointerException- if any required attribute was not provided
-