Interface DeleteConnectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DeleteConnectionResponse.Builder,,DeleteConnectionResponse> InterconnectResponse.Builder,SdkBuilder<DeleteConnectionResponse.Builder,,DeleteConnectionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DeleteConnectionResponse
@Mutable
@NotThreadSafe
public static interface DeleteConnectionResponse.Builder
extends InterconnectResponse.Builder, SdkPojo, CopyableBuilder<DeleteConnectionResponse.Builder,DeleteConnectionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DeleteConnectionResponse.Builderconnection(Consumer<Connection.Builder> connection) The Connection object that has been marked for deletion.connection(Connection connection) The Connection object that has been marked for deletion.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.interconnect.model.InterconnectResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
connection
The Connection object that has been marked for deletion.
- Parameters:
connection- The Connection object that has been marked for deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
The Connection object that has been marked for deletion.
This is a convenience method that creates an instance of theConnection.Builderavoiding the need to create one manually viaConnection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconnection(Connection).- Parameters:
connection- a consumer that will call methods onConnection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-