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