Interface DescribeTopicPartitionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeTopicPartitionsResponse.Builder,,DescribeTopicPartitionsResponse> KafkaResponse.Builder,SdkBuilder<DescribeTopicPartitionsResponse.Builder,,DescribeTopicPartitionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeTopicPartitionsResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe paginated results marker.partitions(Collection<TopicPartitionInfo> partitions) The list of partition information for the topic.partitions(Consumer<TopicPartitionInfo.Builder>... partitions) The list of partition information for the topic.partitions(TopicPartitionInfo... partitions) The list of partition information for the topic.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kafka.model.KafkaResponse.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
-
partitions
The list of partition information for the topic.
- Parameters:
partitions- The list of partition information for the topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitions
The list of partition information for the topic.
- Parameters:
partitions- The list of partition information for the topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitions
DescribeTopicPartitionsResponse.Builder partitions(Consumer<TopicPartitionInfo.Builder>... partitions) The list of partition information for the topic.
This is a convenience method that creates an instance of theTopicPartitionInfo.Builderavoiding the need to create one manually viaTopicPartitionInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topartitions(List<TopicPartitionInfo>).- Parameters:
partitions- a consumer that will call methods onTopicPartitionInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The paginated results marker. When the result of a DescribeTopicPartitions operation is truncated, the call returns NextToken in the response. To get another batch of configurations, provide this token in your next request.
- Parameters:
nextToken-The paginated results marker. When the result of a DescribeTopicPartitions operation is truncated, the call returns NextToken in the response. To get another batch of configurations, provide this token in your next request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-