Interface ListConnectionsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeConnectionsResponse.Builder,CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>,SdkBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListConnectionsResponse
public static interface ListConnectionsResponse.Builder extends CodeConnectionsResponse.Builder, SdkPojo, CopyableBuilder<ListConnectionsResponse.Builder,ListConnectionsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListConnectionsResponse.Builderconnections(Collection<Connection> connections)A list of connections and the details for each connection, such as status, owner, and provider type.ListConnectionsResponse.Builderconnections(Consumer<Connection.Builder>... connections)A list of connections and the details for each connection, such as status, owner, and provider type.ListConnectionsResponse.Builderconnections(Connection... connections)A list of connections and the details for each connection, such as status, owner, and provider type.ListConnectionsResponse.BuildernextToken(String nextToken)A token that can be used in the nextListConnectionscall.-
Methods inherited from interface software.amazon.awssdk.services.codeconnections.model.CodeConnectionsResponse.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 Detail
-
connections
ListConnectionsResponse.Builder connections(Collection<Connection> 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
ListConnectionsResponse.Builder connections(Connection... 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
ListConnectionsResponse.Builder connections(Consumer<Connection.Builder>... 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.Builderavoiding the need to create one manually viaConnection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#connections(List.) - 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:
#connections(java.util.Collection)
-
nextToken
ListConnectionsResponse.Builder nextToken(String nextToken)
A token that can be used in the next
ListConnectionscall. To view all items in the list, continue to call this operation with each subsequent token until no morenextTokenvalues are returned.- Parameters:
nextToken- A token that can be used in the nextListConnectionscall. To view all items in the list, continue to call this operation with each subsequent token until no morenextTokenvalues are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-