Interface AcceptInboundConnectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AcceptInboundConnectionResponse.Builder,,AcceptInboundConnectionResponse> OpenSearchResponse.Builder,SdkBuilder<AcceptInboundConnectionResponse.Builder,,AcceptInboundConnectionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AcceptInboundConnectionResponse
public static interface AcceptInboundConnectionResponse.Builder
extends OpenSearchResponse.Builder, SdkPojo, CopyableBuilder<AcceptInboundConnectionResponse.Builder,AcceptInboundConnectionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnection(Consumer<InboundConnection.Builder> connection) Information about the accepted inbound connection.connection(InboundConnection connection) Information about the accepted inbound connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
connection
Information about the accepted inbound connection.
- Parameters:
connection- Information about the accepted inbound connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
default AcceptInboundConnectionResponse.Builder connection(Consumer<InboundConnection.Builder> connection) Information about the accepted inbound connection.
This is a convenience method that creates an instance of theInboundConnection.Builderavoiding the need to create one manually viaInboundConnection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnection(InboundConnection).- Parameters:
connection- a consumer that will call methods onInboundConnection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-