Interface ListPrivateConnectionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPrivateConnectionsResponse.Builder,,ListPrivateConnectionsResponse> SdkBuilder<ListPrivateConnectionsResponse.Builder,,ListPrivateConnectionsResponse> SdkPojo,SdkResponse.Builder,SecurityAgentResponse.Builder
- Enclosing class:
ListPrivateConnectionsResponse
@Mutable
@NotThreadSafe
public static interface ListPrivateConnectionsResponse.Builder
extends SecurityAgentResponse.Builder, SdkPojo, CopyableBuilder<ListPrivateConnectionsResponse.Builder,ListPrivateConnectionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to retrieve the next page of results, if more results are available.privateConnections(Collection<PrivateConnectionSummary> privateConnections) The list of private connections.privateConnections(Consumer<PrivateConnectionSummary.Builder>... privateConnections) The list of private connections.privateConnections(PrivateConnectionSummary... privateConnections) The list of private connections.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
privateConnections
ListPrivateConnectionsResponse.Builder privateConnections(Collection<PrivateConnectionSummary> privateConnections) The list of private connections.
- Parameters:
privateConnections- The list of private connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateConnections
ListPrivateConnectionsResponse.Builder privateConnections(PrivateConnectionSummary... privateConnections) The list of private connections.
- Parameters:
privateConnections- The list of private connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateConnections
ListPrivateConnectionsResponse.Builder privateConnections(Consumer<PrivateConnectionSummary.Builder>... privateConnections) The list of private connections.
This is a convenience method that creates an instance of thePrivateConnectionSummary.Builderavoiding the need to create one manually viaPrivateConnectionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateConnections(List<PrivateConnectionSummary>).- Parameters:
privateConnections- a consumer that will call methods onPrivateConnectionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results, if more results are available.
- Parameters:
nextToken- The token to use to retrieve the next page of results, if more results are available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-