Interface ListClustersV2Response.Builder

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

public static interface ListClustersV2Response.Builder extends KafkaResponse.Builder, SdkPojo, CopyableBuilder<ListClustersV2Response.Builder,ListClustersV2Response>
  • Method Details

    • clusterInfoList

      ListClustersV2Response.Builder clusterInfoList(Collection<Cluster> clusterInfoList)

      Information on each of the MSK clusters in the response.

      Parameters:
      clusterInfoList -

      Information on each of the MSK clusters in the response.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clusterInfoList

      ListClustersV2Response.Builder clusterInfoList(Cluster... clusterInfoList)

      Information on each of the MSK clusters in the response.

      Parameters:
      clusterInfoList -

      Information on each of the MSK clusters in the response.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clusterInfoList

      ListClustersV2Response.Builder clusterInfoList(Consumer<Cluster.Builder>... clusterInfoList)

      Information on each of the MSK clusters in the response.

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

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

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

      ListClustersV2Response.Builder nextToken(String nextToken)

      The paginated results marker. When the result of a ListClusters operation is truncated, the call returns NextToken in the response. To get another batch of clusters, provide this token in your next request.

      Parameters:
      nextToken -

      The paginated results marker. When the result of a ListClusters operation is truncated, the call returns NextToken in the response. To get another batch of clusters, provide this token in your next request.

      Returns:
      Returns a reference to this object so that method calls can be chained together.