Package software.amazon.awscdk.triggers
Class TriggerOptions.Builder
java.lang.Object
software.amazon.awscdk.triggers.TriggerOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TriggerOptions>
- Enclosing interface:
TriggerOptions
@Stability(Stable)
public static final class TriggerOptions.Builder
extends Object
implements software.amazon.jsii.Builder<TriggerOptions>
A builder for
TriggerOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.executeAfter
(List<? extends software.constructs.Construct> executeAfter) Sets the value ofTriggerOptions.getExecuteAfter()
executeBefore
(List<? extends software.constructs.Construct> executeBefore) Sets the value ofTriggerOptions.getExecuteBefore()
executeOnHandlerChange
(Boolean executeOnHandlerChange) Sets the value ofTriggerOptions.getExecuteOnHandlerChange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executeAfter
@Stability(Stable) public TriggerOptions.Builder executeAfter(List<? extends software.constructs.Construct> executeAfter) Sets the value ofTriggerOptions.getExecuteAfter()
- Parameters:
executeAfter
- Adds trigger dependencies. Execute this trigger only after these construct scopes have been provisioned. You can also usetrigger.executeAfter()
to add additional dependencies.- Returns:
this
-
executeBefore
@Stability(Stable) public TriggerOptions.Builder executeBefore(List<? extends software.constructs.Construct> executeBefore) Sets the value ofTriggerOptions.getExecuteBefore()
- Parameters:
executeBefore
- Adds this trigger as a dependency on other constructs. This means that this trigger will get executed before the given construct(s).You can also use
trigger.executeBefore()
to add additional dependants.- Returns:
this
-
executeOnHandlerChange
@Stability(Stable) public TriggerOptions.Builder executeOnHandlerChange(Boolean executeOnHandlerChange) Sets the value ofTriggerOptions.getExecuteOnHandlerChange()
- Parameters:
executeOnHandlerChange
- Re-executes the trigger every time the handler changes. This implies that the trigger is associated with thecurrentVersion
of the handler, which gets recreated every time the handler or its configuration is updated.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TriggerOptions>
- Returns:
- a new instance of
TriggerOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-