Interface Trigger.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<Trigger.Builder,Trigger>
,SdkBuilder<Trigger.Builder,Trigger>
,SdkPojo
- Enclosing class:
- Trigger
public static interface Trigger.Builder extends SdkPojo, CopyableBuilder<Trigger.Builder,Trigger>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Trigger.Builder
actions(Collection<Action> actions)
The actions initiated by this trigger.Trigger.Builder
actions(Consumer<Action.Builder>... actions)
The actions initiated by this trigger.Trigger.Builder
actions(Action... actions)
The actions initiated by this trigger.Trigger.Builder
description(String description)
A description of this trigger.default Trigger.Builder
eventBatchingCondition(Consumer<EventBatchingCondition.Builder> eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.Trigger.Builder
eventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.Trigger.Builder
id(String id)
Reserved for future use.Trigger.Builder
name(String name)
The name of the trigger.default Trigger.Builder
predicate(Consumer<Predicate.Builder> predicate)
The predicate of this trigger, which defines when it will fire.Trigger.Builder
predicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.Trigger.Builder
schedule(String schedule)
Acron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers.Trigger.Builder
state(String state)
The current state of the trigger.Trigger.Builder
state(TriggerState state)
The current state of the trigger.Trigger.Builder
type(String type)
The type of trigger that this is.Trigger.Builder
type(TriggerType type)
The type of trigger that this is.Trigger.Builder
workflowName(String workflowName)
The name of the workflow associated with the trigger.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
Trigger.Builder name(String name)
The name of the trigger.
- Parameters:
name
- The name of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowName
Trigger.Builder workflowName(String workflowName)
The name of the workflow associated with the trigger.
- Parameters:
workflowName
- The name of the workflow associated with the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
Trigger.Builder id(String id)
Reserved for future use.
- Parameters:
id
- Reserved for future use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Trigger.Builder type(String type)
The type of trigger that this is.
- Parameters:
type
- The type of trigger that this is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TriggerType
,TriggerType
-
type
Trigger.Builder type(TriggerType type)
The type of trigger that this is.
- Parameters:
type
- The type of trigger that this is.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TriggerType
,TriggerType
-
state
Trigger.Builder state(String state)
The current state of the trigger.
- Parameters:
state
- The current state of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TriggerState
,TriggerState
-
state
Trigger.Builder state(TriggerState state)
The current state of the trigger.
- Parameters:
state
- The current state of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TriggerState
,TriggerState
-
description
Trigger.Builder description(String description)
A description of this trigger.
- Parameters:
description
- A description of this trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Trigger.Builder schedule(String schedule)
A
cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify:cron(15 12 * * ? *)
.- Parameters:
schedule
- Acron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify:cron(15 12 * * ? *)
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Trigger.Builder actions(Collection<Action> actions)
The actions initiated by this trigger.
- Parameters:
actions
- The actions initiated by this trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Trigger.Builder actions(Action... actions)
The actions initiated by this trigger.
- Parameters:
actions
- The actions initiated by this trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
Trigger.Builder actions(Consumer<Action.Builder>... actions)
The actions initiated by this trigger.
This is a convenience method that creates an instance of theAction.Builder
avoiding the need to create one manually viaAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#actions(List
.) - Parameters:
actions
- a consumer that will call methods onAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actions(java.util.Collection
)
-
predicate
Trigger.Builder predicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.
- Parameters:
predicate
- The predicate of this trigger, which defines when it will fire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicate
default Trigger.Builder predicate(Consumer<Predicate.Builder> predicate)
The predicate of this trigger, which defines when it will fire.
This is a convenience method that creates an instance of thePredicate.Builder
avoiding the need to create one manually viaPredicate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topredicate(Predicate)
.- Parameters:
predicate
- a consumer that will call methods onPredicate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
predicate(Predicate)
-
eventBatchingCondition
Trigger.Builder eventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
- Parameters:
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBatchingCondition
default Trigger.Builder eventBatchingCondition(Consumer<EventBatchingCondition.Builder> eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
This is a convenience method that creates an instance of theEventBatchingCondition.Builder
avoiding the need to create one manually viaEventBatchingCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventBatchingCondition(EventBatchingCondition)
.- Parameters:
eventBatchingCondition
- a consumer that will call methods onEventBatchingCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eventBatchingCondition(EventBatchingCondition)
-
-