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