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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TcpTimeout.Builderidle(Consumer<Duration.Builder> idle)An object that represents an idle timeout.TcpTimeout.Builderidle(Duration idle)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 Detail
-
idle
TcpTimeout.Builder idle(Duration 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
default TcpTimeout.Builder idle(Consumer<Duration.Builder> 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.Builderavoiding the need to create one manually viaDuration.builder().When the
Consumercompletes,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:
idle(Duration)
-
-