@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Trigger extends Object implements Serializable, Cloneable, StructuredPojo
Information about a specific trigger.
Constructor and Description |
---|
Trigger() |
Modifier and Type | Method and Description |
---|---|
Trigger |
clone() |
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions initiated by this trigger.
|
String |
getDescription()
A description of this trigger.
|
EventBatchingCondition |
getEventBatchingCondition()
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
String |
getId()
Reserved for future use.
|
String |
getName()
The name of the trigger.
|
Predicate |
getPredicate()
The predicate of this trigger, which defines when it will fire.
|
String |
getSchedule()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
String |
getState()
The current state of the trigger.
|
String |
getType()
The type of trigger that this is.
|
String |
getWorkflowName()
The name of the workflow associated with the trigger.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<Action> actions)
The actions initiated by this trigger.
|
void |
setDescription(String description)
A description of this trigger.
|
void |
setEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
void |
setId(String id)
Reserved for future use.
|
void |
setName(String name)
The name of the trigger.
|
void |
setPredicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.
|
void |
setSchedule(String schedule)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
void |
setState(String state)
The current state of the trigger.
|
void |
setType(String type)
The type of trigger that this is.
|
void |
setWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
|
String |
toString()
Returns a string representation of this object.
|
Trigger |
withActions(Action... actions)
The actions initiated by this trigger.
|
Trigger |
withActions(Collection<Action> actions)
The actions initiated by this trigger.
|
Trigger |
withDescription(String description)
A description of this trigger.
|
Trigger |
withEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
Trigger |
withId(String id)
Reserved for future use.
|
Trigger |
withName(String name)
The name of the trigger.
|
Trigger |
withPredicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.
|
Trigger |
withSchedule(String schedule)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
Trigger |
withState(String state)
The current state of the trigger.
|
Trigger |
withState(TriggerState state)
The current state of the trigger.
|
Trigger |
withType(String type)
The type of trigger that this is.
|
Trigger |
withType(TriggerType type)
The type of trigger that this is.
|
Trigger |
withWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
|
public void setName(String name)
The name of the trigger.
name
- The name of the trigger.public String getName()
The name of the trigger.
public Trigger withName(String name)
The name of the trigger.
name
- The name of the trigger.public void setWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
workflowName
- The name of the workflow associated with the trigger.public String getWorkflowName()
The name of the workflow associated with the trigger.
public Trigger withWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
workflowName
- The name of the workflow associated with the trigger.public void setId(String id)
Reserved for future use.
id
- Reserved for future use.public String getId()
Reserved for future use.
public Trigger withId(String id)
Reserved for future use.
id
- Reserved for future use.public void setType(String type)
The type of trigger that this is.
type
- The type of trigger that this is.TriggerType
public String getType()
The type of trigger that this is.
TriggerType
public Trigger withType(String type)
The type of trigger that this is.
type
- The type of trigger that this is.TriggerType
public Trigger withType(TriggerType type)
The type of trigger that this is.
type
- The type of trigger that this is.TriggerType
public void setState(String state)
The current state of the trigger.
state
- The current state of the trigger.TriggerState
public String getState()
The current state of the trigger.
TriggerState
public Trigger withState(String state)
The current state of the trigger.
state
- The current state of the trigger.TriggerState
public Trigger withState(TriggerState state)
The current state of the trigger.
state
- The current state of the trigger.TriggerState
public void setDescription(String description)
A description of this trigger.
description
- A description of this trigger.public String getDescription()
A description of this trigger.
public Trigger withDescription(String description)
A description of this trigger.
description
- A description of this trigger.public void setSchedule(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 * * ? *)
.public String getSchedule()
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 * * ? *)
.
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 * * ? *)
.public Trigger withSchedule(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 * * ? *)
.public List<Action> getActions()
The actions initiated by this trigger.
public void setActions(Collection<Action> actions)
The actions initiated by this trigger.
actions
- The actions initiated by this trigger.public Trigger withActions(Action... actions)
The actions initiated by this trigger.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The actions initiated by this trigger.public Trigger withActions(Collection<Action> actions)
The actions initiated by this trigger.
actions
- The actions initiated by this trigger.public void setPredicate(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.public Predicate getPredicate()
The predicate of this trigger, which defines when it will fire.
public Trigger withPredicate(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.public void setEventBatchingCondition(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.public EventBatchingCondition getEventBatchingCondition()
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
public Trigger withEventBatchingCondition(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.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.