Class CfnPlan.TriggerProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.TriggerProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.TriggerProperty>
- Enclosing interface:
CfnPlan.TriggerProperty
@Stability(Stable)
public static final class CfnPlan.TriggerProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.TriggerProperty>
A builder for
CfnPlan.TriggerProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPlan.TriggerProperty.getAction()build()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnPlan.TriggerProperty.getConditions()conditions(IResolvable conditions) Sets the value ofCfnPlan.TriggerProperty.getConditions()description(String description) Sets the value ofCfnPlan.TriggerProperty.getDescription()minDelayMinutesBetweenExecutions(Number minDelayMinutesBetweenExecutions) Sets the value ofCfnPlan.TriggerProperty.getMinDelayMinutesBetweenExecutions()targetRegion(String targetRegion) Sets the value ofCfnPlan.TriggerProperty.getTargetRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnPlan.TriggerProperty.getAction()- Parameters:
action- The action to perform when the trigger fires. This parameter is required. Valid values include ACTIVATE and DEACTIVATE.- Returns:
this
-
conditions
Sets the value ofCfnPlan.TriggerProperty.getConditions()- Parameters:
conditions- The conditions that must be met for the trigger to fire. This parameter is required.- Returns:
this
-
conditions
@Stability(Stable) public CfnPlan.TriggerProperty.Builder conditions(List<? extends Object> conditions) Sets the value ofCfnPlan.TriggerProperty.getConditions()- Parameters:
conditions- The conditions that must be met for the trigger to fire. This parameter is required.- Returns:
this
-
minDelayMinutesBetweenExecutions
@Stability(Stable) public CfnPlan.TriggerProperty.Builder minDelayMinutesBetweenExecutions(Number minDelayMinutesBetweenExecutions) Sets the value ofCfnPlan.TriggerProperty.getMinDelayMinutesBetweenExecutions()- Parameters:
minDelayMinutesBetweenExecutions- The minimum time, in minutes, that must elapse between automatic executions of the plan. This parameter is required.- Returns:
this
-
targetRegion
Sets the value ofCfnPlan.TriggerProperty.getTargetRegion()- Parameters:
targetRegion- The AWS Region for a trigger. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnPlan.TriggerProperty.getDescription()- Parameters:
description- The description for a trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlan.TriggerProperty>- Returns:
- a new instance of
CfnPlan.TriggerProperty - Throws:
NullPointerException- if any required attribute was not provided
-