@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()
The trigger ID.
|
String |
getName()
Name of the trigger.
|
Predicate |
getPredicate()
The predicate of this trigger.
|
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)
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 |
setId(String id)
The trigger ID.
|
void |
setName(String name)
Name of the trigger.
|
void |
setPredicate(Predicate predicate)
The predicate of this trigger.
|
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)
The trigger ID.
|
Trigger |
withName(String name)
Name of the trigger.
|
Trigger |
withPredicate(Predicate predicate)
The predicate of this trigger.
|
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)
The trigger ID.
id
- The trigger ID.public String getId()
The trigger ID.
public Trigger withId(String id)
The trigger ID.
id
- The trigger ID.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.
predicate
- The predicate of this trigger.public Predicate getPredicate()
The predicate of this trigger.
public Trigger withPredicate(Predicate predicate)
The predicate of this trigger.
predicate
- The predicate of this trigger.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.