Class CfnRestoreTestingPlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnRestoreTestingPlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestoreTestingPlanProps>
- Enclosing interface:
CfnRestoreTestingPlanProps
@Stability(Stable)
public static final class CfnRestoreTestingPlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestoreTestingPlanProps>
A builder for
CfnRestoreTestingPlanProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.recoveryPointSelection
(IResolvable recoveryPointSelection) Sets the value ofCfnRestoreTestingPlanProps.getRecoveryPointSelection()
recoveryPointSelection
(CfnRestoreTestingPlan.RestoreTestingRecoveryPointSelectionProperty recoveryPointSelection) Sets the value ofCfnRestoreTestingPlanProps.getRecoveryPointSelection()
restoreTestingPlanName
(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingPlanProps.getRestoreTestingPlanName()
scheduleExpression
(String scheduleExpression) Sets the value ofCfnRestoreTestingPlanProps.getScheduleExpression()
scheduleExpressionTimezone
(String scheduleExpressionTimezone) Sets the value ofCfnRestoreTestingPlanProps.getScheduleExpressionTimezone()
scheduleStatus
(String scheduleStatus) Sets the value ofCfnRestoreTestingPlanProps.getScheduleStatus()
startWindowHours
(Number startWindowHours) Sets the value ofCfnRestoreTestingPlanProps.getStartWindowHours()
Sets the value ofCfnRestoreTestingPlanProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
recoveryPointSelection
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder recoveryPointSelection(IResolvable recoveryPointSelection) Sets the value ofCfnRestoreTestingPlanProps.getRecoveryPointSelection()
- Parameters:
recoveryPointSelection
- The specified criteria to assign a set of resources, such as recovery point types or backup vaults. This parameter is required.- Returns:
this
-
recoveryPointSelection
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder recoveryPointSelection(CfnRestoreTestingPlan.RestoreTestingRecoveryPointSelectionProperty recoveryPointSelection) Sets the value ofCfnRestoreTestingPlanProps.getRecoveryPointSelection()
- Parameters:
recoveryPointSelection
- The specified criteria to assign a set of resources, such as recovery point types or backup vaults. This parameter is required.- Returns:
this
-
restoreTestingPlanName
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder restoreTestingPlanName(String restoreTestingPlanName) Sets the value ofCfnRestoreTestingPlanProps.getRestoreTestingPlanName()
- Parameters:
restoreTestingPlanName
- The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This parameter is required. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.- Returns:
this
-
scheduleExpression
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder scheduleExpression(String scheduleExpression) Sets the value ofCfnRestoreTestingPlanProps.getScheduleExpression()
- Parameters:
scheduleExpression
- A CRON expression in specified timezone when a restore testing plan is executed. This parameter is required.- Returns:
this
-
scheduleExpressionTimezone
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder scheduleExpressionTimezone(String scheduleExpressionTimezone) Sets the value ofCfnRestoreTestingPlanProps.getScheduleExpressionTimezone()
- Parameters:
scheduleExpressionTimezone
- Optional. 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
-
scheduleStatus
Sets the value ofCfnRestoreTestingPlanProps.getScheduleStatus()
- Parameters:
scheduleStatus
- This parameter is not currently supported.- Returns:
this
-
startWindowHours
@Stability(Stable) public CfnRestoreTestingPlanProps.Builder startWindowHours(Number startWindowHours) Sets the value ofCfnRestoreTestingPlanProps.getStartWindowHours()
- Parameters:
startWindowHours
- Defaults to 24 hours. A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).- Returns:
this
-
tags
Sets the value ofCfnRestoreTestingPlanProps.getTags()
- Parameters:
tags
- Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, spaces, and the following characters:+ - = . _ : /.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRestoreTestingPlanProps>
- Returns:
- a new instance of
CfnRestoreTestingPlanProps
- Throws:
NullPointerException
- if any required attribute was not provided
-