Interface Trigger.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Trigger.Builder,,Trigger> SdkBuilder<Trigger.Builder,,Trigger> SdkPojo
- Enclosing class:
Trigger
@Mutable
@NotThreadSafe
public static interface Trigger.Builder
extends SdkPojo, CopyableBuilder<Trigger.Builder,Trigger>
-
Method Summary
Modifier and TypeMethodDescriptionThe action to perform when the trigger fires.action(WorkflowTargetAction action) The action to perform when the trigger fires.conditions(Collection<TriggerCondition> conditions) The conditions that must be met for the trigger to fire.conditions(Consumer<TriggerCondition.Builder>... conditions) The conditions that must be met for the trigger to fire.conditions(TriggerCondition... conditions) The conditions that must be met for the trigger to fire.description(String description) The description for a trigger.minDelayMinutesBetweenExecutions(Integer minDelayMinutesBetweenExecutions) The minimum time, in minutes, that must elapse between automatic executions of the plan.targetRegion(String targetRegion) The Amazon Web Services Region for a trigger.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
description
The description for a trigger.
- Parameters:
description- The description for a trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetRegion
The Amazon Web Services Region for a trigger.
- Parameters:
targetRegion- The Amazon Web Services Region for a trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.
- Parameters:
action- The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.
- Parameters:
action- The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conditions
The conditions that must be met for the trigger to fire.
- Parameters:
conditions- The conditions that must be met for the trigger to fire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that must be met for the trigger to fire.
- Parameters:
conditions- The conditions that must be met for the trigger to fire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
The conditions that must be met for the trigger to fire.
This is a convenience method that creates an instance of theTriggerCondition.Builderavoiding the need to create one manually viaTriggerCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconditions(List<TriggerCondition>).- Parameters:
conditions- a consumer that will call methods onTriggerCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
minDelayMinutesBetweenExecutions
The minimum time, in minutes, that must elapse between automatic executions of the plan.
- Parameters:
minDelayMinutesBetweenExecutions- The minimum time, in minutes, that must elapse between automatic executions of the plan.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-