Class ModelClientOptions.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.ModelClientOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ModelClientOptions>
- Enclosing interface:
ModelClientOptions
@Stability(Stable)
public static final class ModelClientOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ModelClientOptions>
A builder for
ModelClientOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.invocationsMaxRetries
(Number invocationsMaxRetries) Sets the value ofModelClientOptions.getInvocationsMaxRetries()
invocationsTimeout
(Duration invocationsTimeout) Sets the value ofModelClientOptions.getInvocationsTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
invocationsMaxRetries
@Stability(Stable) public ModelClientOptions.Builder invocationsMaxRetries(Number invocationsMaxRetries) Sets the value ofModelClientOptions.getInvocationsMaxRetries()
- Parameters:
invocationsMaxRetries
- The maximum number of retries when invocation requests are failing.- Returns:
this
-
invocationsTimeout
@Stability(Stable) public ModelClientOptions.Builder invocationsTimeout(Duration invocationsTimeout) Sets the value ofModelClientOptions.getInvocationsTimeout()
- Parameters:
invocationsTimeout
- The timeout duration for an invocation request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ModelClientOptions>
- Returns:
- a new instance of
ModelClientOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-