Interface ListConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContextResponse.Builder,CopyableBuilder<ListConnectionsResponse.Builder,,ListConnectionsResponse> SdkBuilder<ListConnectionsResponse.Builder,,ListConnectionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListConnectionsResponse
@Mutable
@NotThreadSafe
public static interface ListConnectionsResponse.Builder
extends ContextResponse.Builder, SdkPojo, CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitems(Collection<ConnectionSummary> items) The connections in your account, as summaries.items(Consumer<ConnectionSummary.Builder>... items) The connections in your account, as summaries.items(ConnectionSummary... items) The connections in your account, as summaries.Pagination cursor for the next page.Methods inherited from interface software.amazon.awssdk.services.context.model.ContextResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
items
The connections in your account, as summaries. Always present, and empty when the account has no connections.
- Parameters:
items- The connections in your account, as summaries. Always present, and empty when the account has no connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The connections in your account, as summaries. Always present, and empty when the account has no connections.
- Parameters:
items- The connections in your account, as summaries. Always present, and empty when the account has no connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The connections in your account, as summaries. Always present, and empty when the account has no connections.
This is a convenience method that creates an instance of theConnectionSummary.Builderavoiding the need to create one manually viaConnectionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<ConnectionSummary>).- Parameters:
items- a consumer that will call methods onConnectionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Pagination cursor for the next page. Absent when no more results exist.
- Parameters:
nextToken- Pagination cursor for the next page. Absent when no more results exist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-