@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() |
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 of the 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. |
Boolean |
getStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created.
|
String |
getType()
The type of the new trigger.
|
int |
hashCode() |
Boolean |
isStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created.
|
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 of the 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 |
setStartOnCreation(Boolean startOnCreation)
Set to true to start SCHEDULED and CONDITIONAL triggers when created.
|
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 of the 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 |
withStartOnCreation(Boolean startOnCreation)
Set to true to start SCHEDULED and CONDITIONAL triggers when created.
|
CreateTriggerRequest |
withType(String type)
The type of the new trigger.
|
CreateTriggerRequest |
withType(TriggerType type)
The type of the new trigger.
|
addHandlerContext, copyBaseTo, 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 of the trigger.
name
- The name of the trigger.public String getName()
The name of the trigger.
public CreateTriggerRequest withName(String name)
The name of the trigger.
name
- The name of the 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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
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 * * ? *)
.
This field is required when the trigger type is SCHEDULED.
public void setPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
predicate
- A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
public Predicate getPredicate()
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
This field is required when the trigger type is CONDITIONAL.
public CreateTriggerRequest withPredicate(Predicate predicate)
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
predicate
- A predicate to specify when the new trigger should fire.
This field is required when the trigger type is CONDITIONAL.
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 void setStartOnCreation(Boolean startOnCreation)
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
startOnCreation
- Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND
triggers.public Boolean getStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
public CreateTriggerRequest withStartOnCreation(Boolean startOnCreation)
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
startOnCreation
- Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND
triggers.public Boolean isStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True not supported for ON_DEMAND triggers.
public String toString()
toString
in class Object
Object.toString()
public CreateTriggerRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2018. All rights reserved.