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
Modifier and TypeMethodDescriptionThe pagination token to use in the next request to continue the listing of voices.voices
(Collection<Voice> voices) A list of voices with their properties.voices
(Consumer<Voice.Builder>... voices) A list of voices with their properties.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
A list of voices with their properties.
This is a convenience method that creates an instance of theVoice.Builder
avoiding the need to create one manually viaVoice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovoices(List<Voice>)
.- 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:
-
nextToken
The pagination token to use in the next request to continue the listing of voices.
NextToken
is returned only if the response is truncated.- Parameters:
nextToken
- The pagination token to use in the next request to continue the listing of voices.NextToken
is returned only if the response is truncated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-