Interface ListChannelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<ListChannelsResponse.Builder,,ListChannelsResponse> SdkBuilder<ListChannelsResponse.Builder,,ListChannelsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListChannelsResponse
@Mutable
@NotThreadSafe
public static interface ListChannelsResponse.Builder
extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<ListChannelsResponse.Builder,ListChannelsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionchannels(Collection<Channel> channels) The list of channels in the account.channels(Consumer<Channel.Builder>... channels) The list of channels in the account.The list of channels in the account.The token to use to get the next page of results after a previous API call.Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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 account.
- Parameters:
channels- The list of channels in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
The list of channels in the account.
- Parameters:
channels- The list of channels in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
The list of channels in the account.
This is a convenience method that creates an instance of theChannel.Builderavoiding the need to create one manually viaChannel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannels(List<Channel>).- Parameters:
channels- a consumer that will call methods onChannel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to get the next page of results after a previous API call.
- Parameters:
nextToken- The token to use to get the next page of results after a previous API call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-