@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.
|
String |
getId()
Reserved for future use.
|
String |
getName()
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setActions(Collection<Action> actions)
The actions initiated by this trigger.
|
void |
setDescription(String description)
A description of this trigger.
|
void |
setId(String id)
Reserved for future use.
|
void |
setName(String name)
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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 |
withId(String id)
Reserved for future use.
|
Trigger |
withName(String name)
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.
|
public void setName(String name)
Name of the trigger.
name
- Name of the trigger.public String getName()
Name of the trigger.
public Trigger withName(String name)
Name of the trigger.
name
- Name of 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 String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2018. All rights reserved.