Class WaiterStateMachineProps.Builder
java.lang.Object
software.amazon.awscdk.customresources.WaiterStateMachineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WaiterStateMachineProps>
- Enclosing interface:
WaiterStateMachineProps
@Stability(Stable)
public static final class WaiterStateMachineProps.Builder
extends Object
implements software.amazon.jsii.Builder<WaiterStateMachineProps>
A builder for
WaiterStateMachineProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackoffRate(Number backoffRate) Sets the value ofWaiterStateMachineProps.getBackoffRate()build()Builds the configured instance.disableLogging(Boolean disableLogging) Sets the value ofWaiterStateMachineProps.getDisableLogging()Sets the value ofWaiterStateMachineProps.getInterval()isCompleteHandler(IFunction isCompleteHandler) Sets the value ofWaiterStateMachineProps.getIsCompleteHandler()logOptions(LogOptions logOptions) Sets the value ofWaiterStateMachineProps.getLogOptions()maxAttempts(Number maxAttempts) Sets the value ofWaiterStateMachineProps.getMaxAttempts()timeoutHandler(IFunction timeoutHandler) Sets the value ofWaiterStateMachineProps.getTimeoutHandler()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backoffRate
Sets the value ofWaiterStateMachineProps.getBackoffRate()- Parameters:
backoffRate- Backoff between attempts. This parameter is required.- Returns:
this
-
interval
Sets the value ofWaiterStateMachineProps.getInterval()- Parameters:
interval- The interval to wait between attempts. This parameter is required.- Returns:
this
-
isCompleteHandler
@Stability(Stable) public WaiterStateMachineProps.Builder isCompleteHandler(IFunction isCompleteHandler) Sets the value ofWaiterStateMachineProps.getIsCompleteHandler()- Parameters:
isCompleteHandler- The main handler that notifies if the waiter to decide 'complete' or 'incomplete'. This parameter is required.- Returns:
this
-
maxAttempts
Sets the value ofWaiterStateMachineProps.getMaxAttempts()- Parameters:
maxAttempts- Number of attempts. This parameter is required.- Returns:
this
-
timeoutHandler
Sets the value ofWaiterStateMachineProps.getTimeoutHandler()- Parameters:
timeoutHandler- The handler to call if the waiter times out and is incomplete. This parameter is required.- Returns:
this
-
disableLogging
Sets the value ofWaiterStateMachineProps.getDisableLogging()- Parameters:
disableLogging- Whether logging for the state machine is disabled.- Returns:
this
-
logOptions
Sets the value ofWaiterStateMachineProps.getLogOptions()- Parameters:
logOptions- Defines what execution history events are logged and where they are logged.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WaiterStateMachineProps>- Returns:
- a new instance of
WaiterStateMachineProps - Throws:
NullPointerException- if any required attribute was not provided
-