Interface CreateTriggerRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>,GlueRequest.Builder,SdkBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateTriggerRequest
public static interface CreateTriggerRequest.Builder extends GlueRequest.Builder, SdkPojo, CopyableBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateTriggerRequest.Builderactions(Collection<Action> actions)The actions initiated by this trigger when it fires.CreateTriggerRequest.Builderactions(Consumer<Action.Builder>... actions)The actions initiated by this trigger when it fires.CreateTriggerRequest.Builderactions(Action... actions)The actions initiated by this trigger when it fires.CreateTriggerRequest.Builderdescription(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.CreateTriggerRequest.BuildereventBatchingCondition(EventBatchingCondition eventBatchingCondition)Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.CreateTriggerRequest.Buildername(String name)The name of the trigger.CreateTriggerRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTriggerRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateTriggerRequest.Builderpredicate(Consumer<Predicate.Builder> predicate)A predicate to specify when the new trigger should fire.CreateTriggerRequest.Builderpredicate(Predicate predicate)A predicate to specify when the new trigger should fire.CreateTriggerRequest.Builderschedule(String schedule)Acronexpression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers.CreateTriggerRequest.BuilderstartOnCreation(Boolean startOnCreation)Set totrueto startSCHEDULEDandCONDITIONALtriggers when created.CreateTriggerRequest.Buildertags(Map<String,String> tags)The tags to use with this trigger.CreateTriggerRequest.Buildertype(String type)The type of the new trigger.CreateTriggerRequest.Buildertype(TriggerType type)The type of the new trigger.CreateTriggerRequest.BuilderworkflowName(String workflowName)The name of the workflow associated with the trigger.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.glue.model.GlueRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
CreateTriggerRequest.Builder name(String 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
CreateTriggerRequest.Builder workflowName(String 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
CreateTriggerRequest.Builder type(String 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:
TriggerType,TriggerType
-
type
CreateTriggerRequest.Builder type(TriggerType 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:
TriggerType,TriggerType
-
schedule
CreateTriggerRequest.Builder schedule(String 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
CreateTriggerRequest.Builder predicate(Predicate 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
default CreateTriggerRequest.Builder predicate(Consumer<Predicate.Builder> 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:
predicate(Predicate)
-
actions
CreateTriggerRequest.Builder actions(Collection<Action> 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
CreateTriggerRequest.Builder actions(Action... 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
CreateTriggerRequest.Builder actions(Consumer<Action.Builder>... 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 to#actions(List.) - 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:
#actions(java.util.Collection)
-
description
CreateTriggerRequest.Builder description(String 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
CreateTriggerRequest.Builder startOnCreation(Boolean 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
CreateTriggerRequest.Builder tags(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.
- 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
CreateTriggerRequest.Builder eventBatchingCondition(EventBatchingCondition 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:
eventBatchingCondition(EventBatchingCondition)
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-