Interface ListClustersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListClustersResponse.Builder,
,ListClustersResponse> DocDbElasticResponse.Builder
,SdkBuilder<ListClustersResponse.Builder,
,ListClustersResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListClustersResponse
public static interface ListClustersResponse.Builder
extends DocDbElasticResponse.Builder, SdkPojo, CopyableBuilder<ListClustersResponse.Builder,ListClustersResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclusters
(Collection<ClusterInList> clusters) A list of Elastic DocumentDB cluster.clusters
(Consumer<ClusterInList.Builder>... clusters) A list of Elastic DocumentDB cluster.clusters
(ClusterInList... clusters) A list of Elastic DocumentDB cluster.The response will provide a nextToken if there is more data beyond the maxResults.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.docdbelastic.model.DocDbElasticResponse.Builder
build, responseMetadata, responseMetadata
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
-
clusters
A list of Elastic DocumentDB cluster.
- Parameters:
clusters
- A list of Elastic DocumentDB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusters
A list of Elastic DocumentDB cluster.
- Parameters:
clusters
- A list of Elastic DocumentDB cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusters
A list of Elastic DocumentDB cluster.
This is a convenience method that creates an instance of theClusterInList.Builder
avoiding the need to create one manually viaClusterInList.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclusters(List<ClusterInList>)
.- Parameters:
clusters
- a consumer that will call methods onClusterInList.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The response will provide a nextToken if there is more data beyond the maxResults.
If there is no more data in the responce, the nextToken will not be returned.
- Parameters:
nextToken
- The response will provide a nextToken if there is more data beyond the maxResults.If there is no more data in the responce, the nextToken will not be returned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-