Interface ListClustersResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<ListClustersResponse.Builder,ListClustersResponse>, SdkBuilder<ListClustersResponse.Builder,ListClustersResponse>, SdkPojo, SdkResponse.Builder, SnowballResponse.Builder
Enclosing class:
ListClustersResponse

public static interface ListClustersResponse.Builder extends SnowballResponse.Builder, SdkPojo, CopyableBuilder<ListClustersResponse.Builder,ListClustersResponse>
  • Method Details

    • clusterListEntries

      ListClustersResponse.Builder clusterListEntries(Collection<ClusterListEntry> clusterListEntries)

      Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

      Parameters:
      clusterListEntries - Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clusterListEntries

      ListClustersResponse.Builder clusterListEntries(ClusterListEntry... clusterListEntries)

      Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

      Parameters:
      clusterListEntries - Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clusterListEntries

      ListClustersResponse.Builder clusterListEntries(Consumer<ClusterListEntry.Builder>... clusterListEntries)

      Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.

      This is a convenience method that creates an instance of the ClusterListEntry.Builder avoiding the need to create one manually via ClusterListEntry.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clusterListEntries(List<ClusterListEntry>).

      Parameters:
      clusterListEntries - a consumer that will call methods on ClusterListEntry.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • nextToken

      ListClustersResponse.Builder nextToken(String nextToken)

      HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.

      Parameters:
      nextToken - HTTP requests are stateless. If you use the automatically generated NextToken value in your next ClusterListEntry call, your list of returned clusters will start from this point in the array.
      Returns:
      Returns a reference to this object so that method calls can be chained together.