Interface ListConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchEventsResponse.Builder
,CopyableBuilder<ListConnectionsResponse.Builder,
,ListConnectionsResponse> SdkBuilder<ListConnectionsResponse.Builder,
,ListConnectionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListConnectionsResponse
public static interface ListConnectionsResponse.Builder
extends CloudWatchEventsResponse.Builder, SdkPojo, CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnections
(Collection<Connection> connections) An array of connections objects that include details about the connections.connections
(Consumer<Connection.Builder>... connections) An array of connections objects that include details about the connections.connections
(Connection... connections) An array of connections objects that include details about the connections.A token you can use in a subsequent request to retrieve the next set of results.Methods inherited from interface software.amazon.awssdk.services.cloudwatchevents.model.CloudWatchEventsResponse.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
An array of connections objects that include details about the connections.
- Parameters:
connections
- An array of connections objects that include details about the connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
An array of connections objects that include details about the connections.
- Parameters:
connections
- An array of connections objects that include details about the connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
An array of connections objects that include details about the connections.
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 you can use in a subsequent request to retrieve the next set of results.
- Parameters:
nextToken
- A token you can use in a subsequent request to retrieve the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-