public static final class CfnBackupPlan.BackupRuleResourceTypeProperty.Builder
extends java.lang.Object
CfnBackupPlan.BackupRuleResourceTypeProperty
Constructor and Description |
---|
Builder() |
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder ruleName(java.lang.String ruleName)
CfnBackupPlan.BackupRuleResourceTypeProperty.getRuleName()
ruleName
- A display name for a backup rule. This parameter is required.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder targetBackupVault(java.lang.String targetBackupVault)
CfnBackupPlan.BackupRuleResourceTypeProperty.getTargetBackupVault()
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.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder completionWindowMinutes(java.lang.Number completionWindowMinutes)
completionWindowMinutes
- A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder copyActions(IResolvable copyActions)
CfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
copyActions
- An array of CopyAction objects, which contains the details of the copy operation.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder copyActions(java.util.List<? extends java.lang.Object> copyActions)
CfnBackupPlan.BackupRuleResourceTypeProperty.getCopyActions()
copyActions
- An array of CopyAction objects, which contains the details of the copy operation.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder enableContinuousBackup(java.lang.Boolean enableContinuousBackup)
CfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
enableContinuousBackup
- Enables continuous backup and point-in-time restores (PITR).this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder enableContinuousBackup(IResolvable enableContinuousBackup)
CfnBackupPlan.BackupRuleResourceTypeProperty.getEnableContinuousBackup()
enableContinuousBackup
- Enables continuous backup and point-in-time restores (PITR).this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder lifecycle(IResolvable lifecycle)
CfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
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.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder lifecycle(CfnBackupPlan.LifecycleResourceTypeProperty lifecycle)
CfnBackupPlan.BackupRuleResourceTypeProperty.getLifecycle()
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.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder recoveryPointTags(IResolvable recoveryPointTags)
CfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
recoveryPointTags
- To help organize your resources, you can assign your own metadata to the resources that you create.
Each tag is a key-value pair.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder recoveryPointTags(java.util.Map<java.lang.String,java.lang.String> recoveryPointTags)
CfnBackupPlan.BackupRuleResourceTypeProperty.getRecoveryPointTags()
recoveryPointTags
- To help organize your resources, you can assign your own metadata to the resources that you create.
Each tag is a key-value pair.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder scheduleExpression(java.lang.String scheduleExpression)
CfnBackupPlan.BackupRuleResourceTypeProperty.getScheduleExpression()
scheduleExpression
- A CRON expression specifying when AWS Backup initiates a backup job.this
public CfnBackupPlan.BackupRuleResourceTypeProperty.Builder startWindowMinutes(java.lang.Number startWindowMinutes)
CfnBackupPlan.BackupRuleResourceTypeProperty.getStartWindowMinutes()
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.this
public CfnBackupPlan.BackupRuleResourceTypeProperty build()
CfnBackupPlan.BackupRuleResourceTypeProperty
java.lang.NullPointerException
- if any required attribute was not provided