Interface StartSpeechSynthesisTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<StartSpeechSynthesisTaskResponse.Builder,
,StartSpeechSynthesisTaskResponse> PollyResponse.Builder
,SdkBuilder<StartSpeechSynthesisTaskResponse.Builder,
,StartSpeechSynthesisTaskResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
StartSpeechSynthesisTaskResponse
public static interface StartSpeechSynthesisTaskResponse.Builder
extends PollyResponse.Builder, SdkPojo, CopyableBuilder<StartSpeechSynthesisTaskResponse.Builder,StartSpeechSynthesisTaskResponse>
-
Method Summary
Modifier and TypeMethodDescriptionsynthesisTask
(Consumer<SynthesisTask.Builder> synthesisTask) SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.synthesisTask
(SynthesisTask synthesisTask) SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.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
-
synthesisTask
SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.
- Parameters:
synthesisTask
- SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
synthesisTask
default StartSpeechSynthesisTaskResponse.Builder synthesisTask(Consumer<SynthesisTask.Builder> synthesisTask) SynthesisTask object that provides information and attributes about a newly submitted speech synthesis task.
This is a convenience method that creates an instance of theSynthesisTask.Builder
avoiding the need to create one manually viaSynthesisTask.builder()
.When the
Consumer
completes,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:
-