Class CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRetryPolicyProperty>
- Enclosing interface:
CfnRoutePropsMixin.HttpRetryPolicyProperty
@Stability(Stable)
public static final class CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRetryPolicyProperty>
A builder for
CfnRoutePropsMixin.HttpRetryPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.httpRetryEvents(List<String> httpRetryEvents) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getHttpRetryEvents()maxRetries(Number maxRetries) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getMaxRetries()perRetryTimeout(CfnRoutePropsMixin.DurationProperty perRetryTimeout) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getPerRetryTimeout()perRetryTimeout(IResolvable perRetryTimeout) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getPerRetryTimeout()tcpRetryEvents(List<String> tcpRetryEvents) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getTcpRetryEvents()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpRetryEvents
@Stability(Stable) public CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder httpRetryEvents(List<String> httpRetryEvents) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getHttpRetryEvents()- Parameters:
httpRetryEvents- Specify at least one of the following values.- server-error – HTTP status codes 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, and 511
- gateway-error – HTTP status codes 502, 503, and 504
- client-error – HTTP status code 409
- stream-error – Retry on refused stream
- Returns:
this
-
maxRetries
@Stability(Stable) public CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder maxRetries(Number maxRetries) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getMaxRetries()- Parameters:
maxRetries- The maximum number of retry attempts.- Returns:
this
-
perRetryTimeout
@Stability(Stable) public CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder perRetryTimeout(IResolvable perRetryTimeout) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getPerRetryTimeout()- Parameters:
perRetryTimeout- The timeout for each retry attempt.- Returns:
this
-
perRetryTimeout
@Stability(Stable) public CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder perRetryTimeout(CfnRoutePropsMixin.DurationProperty perRetryTimeout) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getPerRetryTimeout()- Parameters:
perRetryTimeout- The timeout for each retry attempt.- Returns:
this
-
tcpRetryEvents
@Stability(Stable) public CfnRoutePropsMixin.HttpRetryPolicyProperty.Builder tcpRetryEvents(List<String> tcpRetryEvents) Sets the value ofCfnRoutePropsMixin.HttpRetryPolicyProperty.getTcpRetryEvents()- Parameters:
tcpRetryEvents- Specify a valid value. The event occurs before any processing of a request has started and is encountered when the upstream is temporarily or permanently unavailable.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoutePropsMixin.HttpRetryPolicyProperty>- Returns:
- a new instance of
CfnRoutePropsMixin.HttpRetryPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-