Interface TcpTimeout.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TcpTimeout.Builder,
,TcpTimeout> SdkBuilder<TcpTimeout.Builder,
,TcpTimeout> SdkPojo
- Enclosing class:
TcpTimeout
public static interface TcpTimeout.Builder
extends SdkPojo, CopyableBuilder<TcpTimeout.Builder,TcpTimeout>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TcpTimeout.Builder
idle
(Consumer<Duration.Builder> idle) An object that represents an idle timeout.An object that represents an idle timeout.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theDuration.Builder
avoiding the need to create one manually viaDuration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toidle(Duration)
.- Parameters:
idle
- a consumer that will call methods onDuration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-