Interface DescribeVoicesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeVoicesResponse.Builder,DescribeVoicesResponse>,PollyResponse.Builder,SdkBuilder<DescribeVoicesResponse.Builder,DescribeVoicesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DescribeVoicesResponse
public static interface DescribeVoicesResponse.Builder extends PollyResponse.Builder, SdkPojo, CopyableBuilder<DescribeVoicesResponse.Builder,DescribeVoicesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeVoicesResponse.BuildernextToken(String nextToken)The pagination token to use in the next request to continue the listing of voices.DescribeVoicesResponse.Buildervoices(Collection<Voice> voices)A list of voices with their properties.DescribeVoicesResponse.Buildervoices(Consumer<Voice.Builder>... voices)A list of voices with their properties.DescribeVoicesResponse.Buildervoices(Voice... voices)A list of voices with their properties.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadata
-
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
-
-
-
-
Method Detail
-
voices
DescribeVoicesResponse.Builder voices(Collection<Voice> voices)
A list of voices with their properties.
- Parameters:
voices- A list of voices with their properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
voices
DescribeVoicesResponse.Builder voices(Voice... voices)
A list of voices with their properties.
- Parameters:
voices- A list of voices with their properties.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
voices
DescribeVoicesResponse.Builder voices(Consumer<Voice.Builder>... voices)
A list of voices with their properties.
This is a convenience method that creates an instance of theVoice.Builderavoiding the need to create one manually viaVoice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#voices(List.) - Parameters:
voices- a consumer that will call methods onVoice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#voices(java.util.Collection)
-
nextToken
DescribeVoicesResponse.Builder nextToken(String nextToken)
The pagination token to use in the next request to continue the listing of voices.
NextTokenis returned only if the response is truncated.- Parameters:
nextToken- The pagination token to use in the next request to continue the listing of voices.NextTokenis returned only if the response is truncated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-