public static interface Alternative.Builder extends SdkPojo, CopyableBuilder<Alternative.Builder,Alternative>
Modifier and Type | Method and Description |
---|---|
Alternative.Builder |
items(Collection<Item> items)
One or more alternative interpretations of the input audio.
|
Alternative.Builder |
items(Consumer<Item.Builder>... items)
One or more alternative interpretations of the input audio.
|
Alternative.Builder |
items(Item... items)
One or more alternative interpretations of the input audio.
|
Alternative.Builder |
transcript(String transcript)
The text that was transcribed from the audio.
|
copy
applyMutation, build
Alternative.Builder transcript(String transcript)
The text that was transcribed from the audio.
transcript
- The text that was transcribed from the audio.Alternative.Builder items(Collection<Item> items)
One or more alternative interpretations of the input audio.
items
- One or more alternative interpretations of the input audio.Alternative.Builder items(Item... items)
One or more alternative interpretations of the input audio.
items
- One or more alternative interpretations of the input audio.Alternative.Builder items(Consumer<Item.Builder>... items)
One or more alternative interpretations of the input audio.
This is a convenience that creates an instance of theList- .Builder
avoiding the need to create
one manually via List- #builder()
.
When the Consumer
completes, List- .Builder#build()
is called immediately and its result
is passed to #items(List- )
.items
- a consumer that will call methods on List- .Builder
#items(List- )
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.