@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTriggerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTriggerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTriggerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<Action> |
getActions()
The actions initiated by this trigger when it fires.
|
String |
getDescription()
A description of the new trigger.
|
String |
getName()
The name to assign to the new trigger.
|
Predicate |
getPredicate()
A predicate to specify when the new trigger should fire.
|
String |
getSchedule()
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
String |
getType()
The type of the new trigger.
|
int |
hashCode() |
void |
setActions(Collection<Action> actions)
The actions initiated by this trigger when it fires.
|
void |
setDescription(String description)
A description of the new trigger.
|
void |
setName(String name)
The name to assign to the new trigger.
|
void |
setPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
|
void |
setSchedule(String schedule)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
void |
setType(String type)
The type of the new trigger.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateTriggerRequest |
withActions(Action... actions)
The actions initiated by this trigger when it fires.
|
CreateTriggerRequest |
withActions(Collection<Action> actions)
The actions initiated by this trigger when it fires.
|
CreateTriggerRequest |
withDescription(String description)
A description of the new trigger.
|
CreateTriggerRequest |
withName(String name)
The name to assign to the new trigger.
|
CreateTriggerRequest |
withPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
|
CreateTriggerRequest |
withSchedule(String schedule)
A
cron expression used to specify the schedule (see Time-Based Schedules for
Jobs and Crawlers. |
CreateTriggerRequest |
withType(String type)
The type of the new trigger.
|
CreateTriggerRequest |
withType(TriggerType type)
The type of the new trigger.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name to assign to the new trigger.
name
- The name to assign to the new trigger.public String getName()
The name to assign to the new trigger.
public CreateTriggerRequest withName(String name)
The name to assign to the new trigger.
name
- The name to assign to the new trigger.public void setType(String type)
The type of the new trigger.
type
- The type of the new trigger.TriggerType
public String getType()
The type of the new trigger.
TriggerType
public CreateTriggerRequest withType(String type)
The type of the new trigger.
type
- The type of the new trigger.TriggerType
public CreateTriggerRequest withType(TriggerType type)
The type of the new trigger.
type
- The type of the new trigger.TriggerType
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 CreateTriggerRequest 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 void setPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
predicate
- A predicate to specify when the new trigger should fire.public Predicate getPredicate()
A predicate to specify when the new trigger should fire.
public CreateTriggerRequest withPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
predicate
- A predicate to specify when the new trigger should fire.public List<Action> getActions()
The actions initiated by this trigger when it fires.
public void setActions(Collection<Action> actions)
The actions initiated by this trigger when it fires.
actions
- The actions initiated by this trigger when it fires.public CreateTriggerRequest withActions(Action... actions)
The actions initiated by this trigger when it fires.
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 when it fires.public CreateTriggerRequest withActions(Collection<Action> actions)
The actions initiated by this trigger when it fires.
actions
- The actions initiated by this trigger when it fires.public void setDescription(String description)
A description of the new trigger.
description
- A description of the new trigger.public String getDescription()
A description of the new trigger.
public CreateTriggerRequest withDescription(String description)
A description of the new trigger.
description
- A description of the new trigger.public String toString()
toString
in class Object
Object.toString()
public CreateTriggerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.