Class CfnBackupPlan.BackupRuleResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupPlan.BackupRuleResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupPlan.BackupRuleResourceTypeProperty>
- Enclosing interface:
CfnBackupPlan.BackupRuleResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupPlan.BackupRuleResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupPlan.BackupRuleResourceTypeProperty>
A builder for
CfnBackupPlan.BackupRuleResourceTypeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.completionWindowMinutes
(Number completionWindowMinutes) copyActions
(List<? extends Object> copyActions) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
copyActions
(IResolvable copyActions) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
enableContinuousBackup
(Boolean enableContinuousBackup) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
enableContinuousBackup
(IResolvable enableContinuousBackup) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
lifecycle
(IResolvable lifecycle) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
recoveryPointTags
(Map<String, String> recoveryPointTags) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
recoveryPointTags
(IResolvable recoveryPointTags) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRuleName()
scheduleExpression
(String scheduleExpression) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getScheduleExpression()
scheduleExpressionTimezone
(String scheduleExpressionTimezone) startWindowMinutes
(Number startWindowMinutes) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getStartWindowMinutes()
targetBackupVault
(String targetBackupVault) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getTargetBackupVault()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ruleName
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder ruleName(String ruleName) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRuleName()
- Parameters:
ruleName
- A display name for a backup rule. This parameter is required.- Returns:
this
-
targetBackupVault
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder targetBackupVault(String targetBackupVault) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getTargetBackupVault()
- Parameters:
targetBackupVault
- The name of a logical container where backups are stored. This parameter is required. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of letters, numbers, and hyphens.- Returns:
this
-
completionWindowMinutes
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder completionWindowMinutes(Number completionWindowMinutes) - Parameters:
completionWindowMinutes
- A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .- Returns:
this
-
copyActions
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder copyActions(IResolvable copyActions) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
- Parameters:
copyActions
- An array of CopyAction objects, which contains the details of the copy operation.- Returns:
this
-
copyActions
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder copyActions(List<? extends Object> copyActions) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
- Parameters:
copyActions
- An array of CopyAction objects, which contains the details of the copy operation.- Returns:
this
-
enableContinuousBackup
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder enableContinuousBackup(Boolean enableContinuousBackup) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
- Parameters:
enableContinuousBackup
- Enables continuous backup and point-in-time restores (PITR).- Returns:
this
-
enableContinuousBackup
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder enableContinuousBackup(IResolvable enableContinuousBackup) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
- Parameters:
enableContinuousBackup
- Enables continuous backup and point-in-time restores (PITR).- Returns:
this
-
lifecycle
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder lifecycle(IResolvable lifecycle) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
- Parameters:
lifecycle
- The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.- Returns:
this
-
lifecycle
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder lifecycle(CfnBackupPlan.LifecycleResourceTypeProperty lifecycle) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
- Parameters:
lifecycle
- The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. AWS Backup transitions and expires backups automatically according to the lifecycle that you define.- Returns:
this
-
recoveryPointTags
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder recoveryPointTags(IResolvable recoveryPointTags) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
- Parameters:
recoveryPointTags
- The tags to assign to the resources.- Returns:
this
-
recoveryPointTags
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder recoveryPointTags(Map<String, String> recoveryPointTags) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
- Parameters:
recoveryPointTags
- The tags to assign to the resources.- Returns:
this
-
scheduleExpression
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder scheduleExpression(String scheduleExpression) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getScheduleExpression()
- Parameters:
scheduleExpression
- A CRON expression specifying when AWS Backup initiates a backup job.- Returns:
this
-
scheduleExpressionTimezone
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder scheduleExpressionTimezone(String scheduleExpressionTimezone) - Parameters:
scheduleExpressionTimezone
- This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.- Returns:
this
-
startWindowMinutes
@Stability(Stable) public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder startWindowMinutes(Number startWindowMinutes) Sets the value ofCfnBackupPlan.BackupRuleResourceTypeProperty.getStartWindowMinutes()
- Parameters:
startWindowMinutes
- An optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully. If this value is included, it must be at least 60 minutes to avoid errors.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupPlan.BackupRuleResourceTypeProperty>
- Returns:
- a new instance of
CfnBackupPlan.BackupRuleResourceTypeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-