Interface ListConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListConnectionsResponse.Builder,,ListConnectionsResponse> InterconnectResponse.Builder,SdkBuilder<ListConnectionsResponse.Builder,,ListConnectionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListConnectionsResponse
@Mutable
@NotThreadSafe
public static interface ListConnectionsResponse.Builder
extends InterconnectResponse.Builder, SdkPojo, CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnections(Collection<ConnectionSummary> connections) The resulting list of Connection objects.connections(Consumer<ConnectionSummary.Builder>... connections) The resulting list of Connection objects.connections(ConnectionSummary... connections) The resulting list of Connection objects.A pagination token for use in subsequent calls to fetch the next page of results.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
-
connections
The resulting list of Connection objects.
- Parameters:
connections- The resulting list of Connection objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
The resulting list of Connection objects.
- Parameters:
connections- The resulting list of Connection objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
The resulting list of Connection objects.
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 toconnections(List<ConnectionSummary>).- Parameters:
connections- 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
A pagination token for use in subsequent calls to fetch the next page of results.
- Parameters:
nextToken- A pagination token for use in subsequent calls to fetch the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-