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