Interface ListConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeStarConnectionsResponse.Builder
,CopyableBuilder<ListConnectionsResponse.Builder,
,ListConnectionsResponse> SdkBuilder<ListConnectionsResponse.Builder,
,ListConnectionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListConnectionsResponse
public static interface ListConnectionsResponse.Builder
extends CodeStarConnectionsResponse.Builder, SdkPojo, CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnections
(Collection<Connection> connections) A list of connections and the details for each connection, such as status, owner, and provider type.connections
(Consumer<Connection.Builder>... connections) A list of connections and the details for each connection, such as status, owner, and provider type.connections
(Connection... connections) A list of connections and the details for each connection, such as status, owner, and provider type.A token that can be used in the nextListConnections
call.Methods inherited from interface software.amazon.awssdk.services.codestarconnections.model.CodeStarConnectionsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
connections
A list of connections and the details for each connection, such as status, owner, and provider type.
- Parameters:
connections
- A list of connections and the details for each connection, such as status, owner, and provider type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
A list of connections and the details for each connection, such as status, owner, and provider type.
- Parameters:
connections
- A list of connections and the details for each connection, such as status, owner, and provider type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
A list of connections and the details for each connection, such as status, owner, and provider type.
This is a convenience method that creates an instance of theConnection.Builder
avoiding the need to create one manually viaConnection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconnections(List<Connection>)
.- Parameters:
connections
- 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:
-
nextToken
A token that can be used in the next
ListConnections
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.- Parameters:
nextToken
- A token that can be used in the nextListConnections
call. To view all items in the list, continue to call this operation with each subsequent token until no morenextToken
values are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-