Class WaiterStateMachineProps.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.WaiterStateMachineProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WaiterStateMachineProps>
- Enclosing interface:
WaiterStateMachineProps
@Stability(Experimental)
public static final class WaiterStateMachineProps.Builder
extends Object
implements software.amazon.jsii.Builder<WaiterStateMachineProps>
A builder for
WaiterStateMachineProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackoffRate
(Number backoffRate) Sets the value ofWaiterStateMachineOptions.getBackoffRate()
build()
Builds the configured instance.Sets the value ofWaiterStateMachineOptions.getInterval()
totalTimeout
(Duration totalTimeout) Sets the value ofWaiterStateMachineOptions.getTotalTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backoffRate
Sets the value ofWaiterStateMachineOptions.getBackoffRate()
- Parameters:
backoffRate
- Backoff between attempts. This is the multiplier by which the retry interval increases after each retry attempt.By default there is no backoff. Each retry will wait the amount of time specified by
interval
.- Returns:
this
-
interval
Sets the value ofWaiterStateMachineOptions.getInterval()
- Parameters:
interval
- The interval (number of seconds) to wait between attempts.- Returns:
this
-
totalTimeout
Sets the value ofWaiterStateMachineOptions.getTotalTimeout()
- Parameters:
totalTimeout
- The total time that the state machine will wait for a successful response.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WaiterStateMachineProps>
- Returns:
- a new instance of
WaiterStateMachineProps
- Throws:
NullPointerException
- if any required attribute was not provided
-