@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TriggerUpdate extends Object implements Serializable, Cloneable, StructuredPojo
A structure used to provide information used to update a trigger. This object updates the previous trigger definition by overwriting it completely.
Constructor and Description |
---|
TriggerUpdate() |
Modifier and Type | Method and Description |
---|---|
TriggerUpdate |
clone() |
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions initiated by this trigger.
|
String |
getDescription()
A description of this trigger.
|
String |
getName()
Reserved for future use.
|
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. |
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 |
setName(String name)
Reserved for future use.
|
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. |
String |
toString()
Returns a string representation of this object.
|
TriggerUpdate |
withActions(Action... actions)
The actions initiated by this trigger.
|
TriggerUpdate |
withActions(Collection<Action> actions)
The actions initiated by this trigger.
|
TriggerUpdate |
withDescription(String description)
A description of this trigger.
|
TriggerUpdate |
withName(String name)
Reserved for future use.
|
TriggerUpdate |
withPredicate(Predicate predicate)
The predicate of this trigger, which defines when it will fire.
|
TriggerUpdate |
withSchedule(String schedule)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
public void setName(String name)
Reserved for future use.
name
- Reserved for future use.public String getName()
Reserved for future use.
public TriggerUpdate withName(String name)
Reserved for future use.
name
- Reserved for future use.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 TriggerUpdate 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 TriggerUpdate 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 TriggerUpdate 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 TriggerUpdate 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 TriggerUpdate 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 TriggerUpdate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.