Class CfnService.TimeoutConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.TimeoutConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.TimeoutConfigurationProperty>
- Enclosing interface:
CfnService.TimeoutConfigurationProperty
@Stability(Stable)
public static final class CfnService.TimeoutConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.TimeoutConfigurationProperty>
A builder for
CfnService.TimeoutConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.idleTimeoutSeconds
(Number idleTimeoutSeconds) Sets the value ofCfnService.TimeoutConfigurationProperty.getIdleTimeoutSeconds()
perRequestTimeoutSeconds
(Number perRequestTimeoutSeconds) Sets the value ofCfnService.TimeoutConfigurationProperty.getPerRequestTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
idleTimeoutSeconds
@Stability(Stable) public CfnService.TimeoutConfigurationProperty.Builder idleTimeoutSeconds(Number idleTimeoutSeconds) Sets the value ofCfnService.TimeoutConfigurationProperty.getIdleTimeoutSeconds()
- Parameters:
idleTimeoutSeconds
- The amount of time in seconds a connection will stay active while idle. A value of0
can be set to disableidleTimeout
.The
idleTimeout
default forHTTP
/HTTP2
/GRPC
is 5 minutes.The
idleTimeout
default forTCP
is 1 hour.- Returns:
this
-
perRequestTimeoutSeconds
@Stability(Stable) public CfnService.TimeoutConfigurationProperty.Builder perRequestTimeoutSeconds(Number perRequestTimeoutSeconds) Sets the value ofCfnService.TimeoutConfigurationProperty.getPerRequestTimeoutSeconds()
- Parameters:
perRequestTimeoutSeconds
- The amount of time waiting for the upstream to respond with a complete response per request. A value of0
can be set to disableperRequestTimeout
.perRequestTimeout
can only be set if Service ConnectappProtocol
isn'tTCP
. OnlyidleTimeout
is allowed forTCP
appProtocol
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.TimeoutConfigurationProperty>
- Returns:
- a new instance of
CfnService.TimeoutConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-