Interface ListChannelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListChannelsResponse.Builder,,ListChannelsResponse> KafkaResponse.Builder,SdkBuilder<ListChannelsResponse.Builder,,ListChannelsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListChannelsResponse
@Mutable
@NotThreadSafe
public static interface ListChannelsResponse.Builder
extends KafkaResponse.Builder, SdkPojo, CopyableBuilder<ListChannelsResponse.Builder,ListChannelsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionchannels(Collection<ChannelInfo> channels) The list of channels in the cluster.channels(Consumer<ChannelInfo.Builder>... channels) The list of channels in the cluster.channels(ChannelInfo... channels) The list of channels in the cluster.If the response from ListChannels is truncated, this token is included.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
-
channels
The list of channels in the cluster.
- Parameters:
channels- The list of channels in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
The list of channels in the cluster.
- Parameters:
channels- The list of channels in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
The list of channels in the cluster.
This is a convenience method that creates an instance of theChannelInfo.Builderavoiding the need to create one manually viaChannelInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannels(List<ChannelInfo>).- Parameters:
channels- a consumer that will call methods onChannelInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response from ListChannels is truncated, this token is included. Send it as the nextToken parameter on a subsequent ListChannels call to retrieve the next page.
- Parameters:
nextToken- If the response from ListChannels is truncated, this token is included. Send it as the nextToken parameter on a subsequent ListChannels call to retrieve the next page.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-