public static interface Trigger.Builder extends SdkPojo, CopyableBuilder<Trigger.Builder,Trigger>
Modifier and Type | Method and Description |
---|---|
Trigger.Builder |
actions(Action... actions)
The actions initiated by this trigger.
|
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 |
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)
A
cron 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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Trigger.Builder name(String name)
The name of the trigger.
name
- The name of the trigger.Trigger.Builder workflowName(String workflowName)
The name of the workflow associated with the trigger.
workflowName
- The name of the workflow associated with the trigger.Trigger.Builder id(String id)
Reserved for future use.
id
- Reserved for future use.Trigger.Builder type(String type)
The type of trigger that this is.
type
- The type of trigger that this is.TriggerType
,
TriggerType
Trigger.Builder type(TriggerType type)
The type of trigger that this is.
type
- The type of trigger that this is.TriggerType
,
TriggerType
Trigger.Builder state(String state)
The current state of the trigger.
state
- The current state of the trigger.TriggerState
,
TriggerState
Trigger.Builder state(TriggerState state)
The current state of the trigger.
state
- The current state of the trigger.TriggerState
,
TriggerState
Trigger.Builder description(String description)
A description of this trigger.
description
- A description of this trigger.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 * * ? *)
.
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 * * ? *)
.Trigger.Builder actions(Collection<Action> actions)
The actions initiated by this trigger.
actions
- The actions initiated by this trigger.Trigger.Builder actions(Action... actions)
The actions initiated by this trigger.
actions
- The actions initiated by this trigger.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
via Action.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #actions(List
.
actions
- a consumer that will call methods on Action.Builder
#actions(java.util.Collection)
Trigger.Builder predicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.
predicate
- The predicate of this trigger, which defines when it will fire.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 via Predicate.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to predicate(Predicate)
.
predicate
- a consumer that will call methods on Predicate.Builder
predicate(Predicate)
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.
eventBatchingCondition
- Batch condition that must be met (specified number of events received or batch time window expired)
before EventBridge event trigger fires.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 via EventBatchingCondition.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to eventBatchingCondition(EventBatchingCondition)
.
eventBatchingCondition
- a consumer that will call methods on EventBatchingCondition.Builder
eventBatchingCondition(EventBatchingCondition)
Copyright © 2022. All rights reserved.