Interface StartSpeechSynthesisTaskResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<StartSpeechSynthesisTaskResponse.Builder,,StartSpeechSynthesisTaskResponse> PollyResponse.Builder,SdkBuilder<StartSpeechSynthesisTaskResponse.Builder,,StartSpeechSynthesisTaskResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
StartSpeechSynthesisTaskResponse
@Mutable
@NotThreadSafe
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
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
-
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.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:
-