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()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- This is the restore testing plan name. This parameter is required.- 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
-
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- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRestoreTestingPlanProps>- Returns:
- a new instance of
CfnRestoreTestingPlanProps - Throws:
NullPointerException- if any required attribute was not provided
-