public static interface Trigger.Builder extends 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.
|
Trigger.Builder |
id(String id)
The trigger ID.
|
Trigger.Builder |
name(String name)
Name of the trigger.
|
default Trigger.Builder |
predicate(Consumer<Predicate.Builder> predicate)
The predicate of this trigger.
|
Trigger.Builder |
predicate(Predicate predicate)
The predicate of this trigger.
|
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.
|
copyapply, buildTrigger.Builder name(String name)
Name of the trigger.
name - Name of the trigger.Trigger.Builder id(String id)
The trigger ID.
id - The trigger ID.Trigger.Builder type(String type)
The type of trigger that this is.
type - The type of trigger that this is.TriggerType,
TriggerTypeTrigger.Builder type(TriggerType type)
The type of trigger that this is.
type - The type of trigger that this is.TriggerType,
TriggerTypeTrigger.Builder state(String state)
The current state of the trigger.
state - The current state of the trigger.TriggerState,
TriggerStateTrigger.Builder state(TriggerState state)
The current state of the trigger.
state - The current state of the trigger.TriggerState,
TriggerStateTrigger.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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #actions(List) .actions - a consumer that will call methods on List.Builder #actions(List) Trigger.Builder predicate(Predicate predicate)
The predicate of this trigger.
predicate - The predicate of this trigger.default Trigger.Builder predicate(Consumer<Predicate.Builder> predicate)
The predicate of this trigger.
This is a convenience 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.Builderpredicate(Predicate)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.