Class WaiterStateMachine.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.WaiterStateMachine.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WaiterStateMachine>
- Enclosing class:
WaiterStateMachine
@Stability(Experimental)
public static final class WaiterStateMachine.Builder
extends Object
implements software.amazon.jsii.Builder<WaiterStateMachine>
(experimental) A fluent builder for
WaiterStateMachine
.-
Method Summary
Modifier and TypeMethodDescriptionbackoffRate
(Number backoffRate) (experimental) Backoff between attempts.build()
static WaiterStateMachine.Builder
(experimental) The interval (number of seconds) to wait between attempts.totalTimeout
(Duration totalTimeout) (experimental) The total time that the state machine will wait for a successful response.
-
Method Details
-
create
@Stability(Experimental) public static WaiterStateMachine.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
WaiterStateMachine.Builder
.
-
backoffRate
(experimental) 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
.Default: 1 (no backoff)
- Parameters:
backoffRate
- Backoff between attempts. This parameter is required.- Returns:
this
-
interval
(experimental) The interval (number of seconds) to wait between attempts.Default: Duration.seconds(5)
- Parameters:
interval
- The interval (number of seconds) to wait between attempts. This parameter is required.- Returns:
this
-
totalTimeout
(experimental) The total time that the state machine will wait for a successful response.Default: Duration.minutes(30)
- Parameters:
totalTimeout
- The total time that the state machine will wait for a successful response. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WaiterStateMachine>
- Returns:
- a newly built instance of
WaiterStateMachine
.
-