Interface CreateWatchlistResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateWatchlistResponse.Builder,
,CreateWatchlistResponse> SdkBuilder<CreateWatchlistResponse.Builder,
,CreateWatchlistResponse> SdkPojo
,SdkResponse.Builder
,VoiceIdResponse.Builder
- Enclosing class:
CreateWatchlistResponse
@Mutable
@NotThreadSafe
public static interface CreateWatchlistResponse.Builder
extends VoiceIdResponse.Builder, SdkPojo, CopyableBuilder<CreateWatchlistResponse.Builder,CreateWatchlistResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateWatchlistResponse.Builder
watchlist
(Consumer<Watchlist.Builder> watchlist) Information about the newly created watchlist.Information about the newly created watchlist.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.voiceid.model.VoiceIdResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
watchlist
Information about the newly created watchlist.
- Parameters:
watchlist
- Information about the newly created watchlist.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
watchlist
Information about the newly created watchlist.
This is a convenience method that creates an instance of theWatchlist.Builder
avoiding the need to create one manually viaWatchlist.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towatchlist(Watchlist)
.- Parameters:
watchlist
- a consumer that will call methods onWatchlist.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-