@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 |
addTagsEntry(String key,
String value) |
CreateTriggerRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
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 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.
|
Map<String,String> |
getTags()
The tags to use with this trigger.
|
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 |
setTags(Map<String,String> tags)
The tags to use with this trigger.
|
void |
setType(String type)
The type of the new trigger.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withTags(Map<String,String> tags)
The tags to use with this trigger.
|
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 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 Map<String,String> getTags()
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue in the developer guide.
public void setTags(Map<String,String> tags)
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue in the developer guide.
tags
- The tags to use with this trigger. You may use tags to limit access to the trigger. For more information
about tags in AWS Glue, see AWS Tags
in AWS Glue in the developer guide.public CreateTriggerRequest withTags(Map<String,String> tags)
The tags to use with this trigger. You may use tags to limit access to the trigger. For more information about tags in AWS Glue, see AWS Tags in AWS Glue in the developer guide.
tags
- The tags to use with this trigger. You may use tags to limit access to the trigger. For more information
about tags in AWS Glue, see AWS Tags
in AWS Glue in the developer guide.public CreateTriggerRequest addTagsEntry(String key, String value)
public CreateTriggerRequest clearTagsEntries()
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.