Interface GetSpeechSynthesisTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetSpeechSynthesisTaskResponse.Builder,,GetSpeechSynthesisTaskResponse> PollyResponse.Builder,SdkBuilder<GetSpeechSynthesisTaskResponse.Builder,,GetSpeechSynthesisTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetSpeechSynthesisTaskResponse
public static interface GetSpeechSynthesisTaskResponse.Builder
extends PollyResponse.Builder, SdkPojo, CopyableBuilder<GetSpeechSynthesisTaskResponse.Builder,GetSpeechSynthesisTaskResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsynthesisTask(Consumer<SynthesisTask.Builder> synthesisTask) SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.synthesisTask(SynthesisTask synthesisTask) SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
synthesisTask
SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.
- Parameters:
synthesisTask- SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
synthesisTask
default GetSpeechSynthesisTaskResponse.Builder synthesisTask(Consumer<SynthesisTask.Builder> synthesisTask) SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.
This is a convenience method that creates an instance of theSynthesisTask.Builderavoiding the need to create one manually viaSynthesisTask.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosynthesisTask(SynthesisTask).- Parameters:
synthesisTask- a consumer that will call methods onSynthesisTask.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-