Interface CreateTriggerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTriggerRequest.Builder,,CreateTriggerRequest> GlueRequest.Builder,SdkBuilder<CreateTriggerRequest.Builder,,CreateTriggerRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTriggerRequest
-
Method Summary
Modifier and TypeMethodDescriptionactions(Collection<Action> actions) The actions initiated by this trigger when it fires.actions(Consumer<Action.Builder>... actions) The actions initiated by this trigger when it fires.The actions initiated by this trigger when it fires.description(String description) A description of the new trigger.default CreateTriggerRequest.BuildereventBatchingCondition(Consumer<EventBatchingCondition.Builder> eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.eventBatchingCondition(EventBatchingCondition eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.The name of the trigger.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateTriggerRequest.Builderpredicate(Consumer<Predicate.Builder> predicate) A predicate to specify when the new trigger should fire.A predicate to specify when the new trigger should fire.Acronexpression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers.startOnCreation(Boolean startOnCreation) Set totrueto startSCHEDULEDandCONDITIONALtriggers when created.The tags to use with this trigger.The type of the new trigger.type(TriggerType type) The type of the new trigger.workflowName(String workflowName) The name of the workflow associated with the trigger.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.glue.model.GlueRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the trigger.
- Parameters:
name- The name of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowName
The name of the workflow associated with the trigger.
- Parameters:
workflowName- The name of the workflow associated with the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of the new trigger.
- Parameters:
type- The type of the new trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the new trigger.
- Parameters:
type- The type of the new trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
schedule
A
cronexpression 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.
- Parameters:
schedule- Acronexpression 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicate
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is
CONDITIONAL.- Parameters:
predicate- A predicate to specify when the new trigger should fire.This field is required when the trigger type is
CONDITIONAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
predicate
A predicate to specify when the new trigger should fire.
This field is required when the trigger type is
This is a convenience method that creates an instance of theCONDITIONAL.Predicate.Builderavoiding the need to create one manually viaPredicate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topredicate(Predicate).- Parameters:
predicate- a consumer that will call methods onPredicate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actions
The actions initiated by this trigger when it fires.
- Parameters:
actions- The actions initiated by this trigger when it fires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions initiated by this trigger when it fires.
- Parameters:
actions- The actions initiated by this trigger when it fires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The actions initiated by this trigger when it fires.
This is a convenience method that creates an instance of theAction.Builderavoiding the need to create one manually viaAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactions(List<Action>).- Parameters:
actions- a consumer that will call methods onAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the new trigger.
- Parameters:
description- A description of the new trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startOnCreation
Set to
trueto startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.- Parameters:
startOnCreation- Set totrueto startSCHEDULEDandCONDITIONALtriggers when created. True is not supported forON_DEMANDtriggers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBatchingCondition
Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
- Parameters:
eventBatchingCondition- Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBatchingCondition
default CreateTriggerRequest.Builder eventBatchingCondition(Consumer<EventBatchingCondition.Builder> eventBatchingCondition) Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.
This is a convenience method that creates an instance of theEventBatchingCondition.Builderavoiding the need to create one manually viaEventBatchingCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventBatchingCondition(EventBatchingCondition).- Parameters:
eventBatchingCondition- a consumer that will call methods onEventBatchingCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-