Interface GetConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetConnectionsResponse.Builder,,GetConnectionsResponse> NetworkManagerResponse.Builder,SdkBuilder<GetConnectionsResponse.Builder,,GetConnectionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetConnectionsResponse
@Mutable
@NotThreadSafe
public static interface GetConnectionsResponse.Builder
extends NetworkManagerResponse.Builder, SdkPojo, CopyableBuilder<GetConnectionsResponse.Builder,GetConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionconnections(Collection<Connection> connections) Information about the connections.connections(Consumer<Connection.Builder>... connections) Information about the connections.connections(Connection... connections) Information about the connections.The token to use for the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networkmanager.model.NetworkManagerResponse.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
Information about the connections.
- Parameters:
connections- Information about the connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
Information about the connections.
- Parameters:
connections- Information about the connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connections
Information about the connections.
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 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
The token to use for the next page of results.
- Parameters:
nextToken- The token to use for the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-