Class CfnRoute.HttpTimeoutProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.HttpTimeoutProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.HttpTimeoutProperty>
- Enclosing interface:
- CfnRoute.HttpTimeoutProperty
@Stability(Stable)
public static final class CfnRoute.HttpTimeoutProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.HttpTimeoutProperty>
A builder for
CfnRoute.HttpTimeoutProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.idle(IResolvable idle) Sets the value ofCfnRoute.HttpTimeoutProperty.getIdle()Sets the value ofCfnRoute.HttpTimeoutProperty.getIdle()perRequest(IResolvable perRequest) Sets the value ofCfnRoute.HttpTimeoutProperty.getPerRequest()perRequest(CfnRoute.DurationProperty perRequest) Sets the value ofCfnRoute.HttpTimeoutProperty.getPerRequest()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idle
Sets the value ofCfnRoute.HttpTimeoutProperty.getIdle()- Parameters:
idle- An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.- Returns:
this
-
idle
Sets the value ofCfnRoute.HttpTimeoutProperty.getIdle()- Parameters:
idle- An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.- Returns:
this
-
perRequest
Sets the value ofCfnRoute.HttpTimeoutProperty.getPerRequest()- Parameters:
perRequest- An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.- Returns:
this
-
perRequest
@Stability(Stable) public CfnRoute.HttpTimeoutProperty.Builder perRequest(CfnRoute.DurationProperty perRequest) Sets the value ofCfnRoute.HttpTimeoutProperty.getPerRequest()- Parameters:
perRequest- An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoute.HttpTimeoutProperty>- Returns:
- a new instance of
CfnRoute.HttpTimeoutProperty - Throws:
NullPointerException- if any required attribute was not provided
-