Class CfnRoute.GrpcTimeoutProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnRoute.GrpcTimeoutProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoute.GrpcTimeoutProperty>
- Enclosing interface:
CfnRoute.GrpcTimeoutProperty
@Stability(Stable)
public static final class CfnRoute.GrpcTimeoutProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoute.GrpcTimeoutProperty>
A builder for
CfnRoute.GrpcTimeoutProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.idle(IResolvable idle) Sets the value ofCfnRoute.GrpcTimeoutProperty.getIdle()Sets the value ofCfnRoute.GrpcTimeoutProperty.getIdle()perRequest(IResolvable perRequest) Sets the value ofCfnRoute.GrpcTimeoutProperty.getPerRequest()perRequest(CfnRoute.DurationProperty perRequest) Sets the value ofCfnRoute.GrpcTimeoutProperty.getPerRequest()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idle
Sets the value ofCfnRoute.GrpcTimeoutProperty.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.GrpcTimeoutProperty.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.GrpcTimeoutProperty.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.GrpcTimeoutProperty.Builder perRequest(CfnRoute.DurationProperty perRequest) Sets the value ofCfnRoute.GrpcTimeoutProperty.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.GrpcTimeoutProperty>- Returns:
- a new instance of
CfnRoute.GrpcTimeoutProperty - Throws:
NullPointerException- if any required attribute was not provided
-