Interface DescribeVoicesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeVoicesResponse.Builder,,DescribeVoicesResponse> PollyResponse.Builder,SdkBuilder<DescribeVoicesResponse.Builder,,DescribeVoicesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeVoicesResponse
@Mutable
@NotThreadSafe
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
copyMethods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
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.Builderavoiding the need to create one manually viaVoice.builder().When the
Consumercompletes,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.
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.
-