Interface AcceptConnectionInvitationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AcceptConnectionInvitationResponse.Builder,,AcceptConnectionInvitationResponse> PartnerCentralAccountResponse.Builder,SdkBuilder<AcceptConnectionInvitationResponse.Builder,,AcceptConnectionInvitationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AcceptConnectionInvitationResponse
@Mutable
@NotThreadSafe
public static interface AcceptConnectionInvitationResponse.Builder
extends PartnerCentralAccountResponse.Builder, SdkPojo, CopyableBuilder<AcceptConnectionInvitationResponse.Builder,AcceptConnectionInvitationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnection(Consumer<Connection.Builder> connection) The details of the accepted connection between the two partners.connection(Connection connection) The details of the accepted connection between the two partners.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.partnercentralaccount.model.PartnerCentralAccountResponse.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 details of the accepted connection between the two partners.
- Parameters:
connection- The details of the accepted connection between the two partners.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connection
default AcceptConnectionInvitationResponse.Builder connection(Consumer<Connection.Builder> connection) The details of the accepted connection between the two partners.
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:
-