@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)
Add a single Tags entry
|
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.
|
EventBatchingCondition |
getEventBatchingCondition()
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
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.
|
String |
getWorkflowName()
The name of the workflow associated with the 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 |
setEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
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.
|
void |
setWorkflowName(String workflowName)
The name of the workflow associated with the 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 |
withEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.
|
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.
|
CreateTriggerRequest |
withWorkflowName(String workflowName)
The name of the workflow associated with the 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, withSdkRequestTimeoutpublic 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 setWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
workflowName - The name of the workflow associated with the trigger.public String getWorkflowName()
The name of the workflow associated with the trigger.
public CreateTriggerRequest withWorkflowName(String workflowName)
The name of the workflow associated with the trigger.
workflowName - The name of the workflow associated with the trigger.public void setType(String type)
The type of the new trigger.
type - The type of the new trigger.TriggerTypepublic String getType()
The type of the new trigger.
TriggerTypepublic CreateTriggerRequest withType(String type)
The type of the new trigger.
type - The type of the new trigger.TriggerTypepublic CreateTriggerRequest withType(TriggerType type)
The type of the new trigger.
type - The type of the new trigger.TriggerTypepublic 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
is not supported for ON_DEMAND triggers.
startOnCreation - Set to true to start SCHEDULED and CONDITIONAL triggers when
created. True is not supported for ON_DEMAND triggers.public Boolean getStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True
is not supported for ON_DEMAND triggers.
true to start SCHEDULED and CONDITIONAL triggers when
created. True is not supported for ON_DEMAND triggers.public CreateTriggerRequest withStartOnCreation(Boolean startOnCreation)
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True
is not supported for ON_DEMAND triggers.
startOnCreation - Set to true to start SCHEDULED and CONDITIONAL triggers when
created. True is not supported for ON_DEMAND triggers.public Boolean isStartOnCreation()
Set to true to start SCHEDULED and CONDITIONAL triggers when created. True
is not supported for ON_DEMAND triggers.
true to start SCHEDULED and CONDITIONAL triggers when
created. True is 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 Glue, see Amazon Web Services Tags in 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 Glue, see Amazon Web Services Tags in 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 Glue, see Amazon Web
Services Tags in 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 Glue, see Amazon Web Services Tags in 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 Glue, see Amazon Web
Services Tags in Glue in the developer guide.public CreateTriggerRequest addTagsEntry(String key, String value)
public CreateTriggerRequest clearTagsEntries()
public void setEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.public EventBatchingCondition getEventBatchingCondition()
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
public CreateTriggerRequest withEventBatchingCondition(EventBatchingCondition eventBatchingCondition)
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
eventBatchingCondition - Batch condition that must be met (specified number of events received or batch time window expired) before
EventBridge event trigger fires.public String toString()
toString in class ObjectObject.toString()public CreateTriggerRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()