Class CfnPlan.StageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ssmcontacts.CfnPlan.StageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.StageProperty>
- Enclosing interface:
CfnPlan.StageProperty
@Stability(Stable)
public static final class CfnPlan.StageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.StageProperty>
A builder for
CfnPlan.StageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.durationInMinutes
(Number durationInMinutes) Sets the value ofCfnPlan.StageProperty.getDurationInMinutes()
Sets the value ofCfnPlan.StageProperty.getTargets()
targets
(IResolvable targets) Sets the value ofCfnPlan.StageProperty.getTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
durationInMinutes
Sets the value ofCfnPlan.StageProperty.getDurationInMinutes()
- Parameters:
durationInMinutes
- The time to wait until beginning the next stage. This parameter is required. The duration can only be set to 0 if a target is specified.- Returns:
this
-
targets
Sets the value ofCfnPlan.StageProperty.getTargets()
- Parameters:
targets
- The contacts or contact methods that the escalation plan or engagement plan is engaging.- Returns:
this
-
targets
Sets the value ofCfnPlan.StageProperty.getTargets()
- Parameters:
targets
- The contacts or contact methods that the escalation plan or engagement plan is engaging.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.StageProperty>
- Returns:
- a new instance of
CfnPlan.StageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-