Interface TextEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TextEvent.Builder,,TextEvent> SdkBuilder<TextEvent.Builder,,TextEvent> SdkPojo
- All Known Subinterfaces:
DefaultTextEvent.Builder
- Enclosing class:
TextEvent
@Mutable
@NotThreadSafe
public static interface TextEvent.Builder
extends SdkPojo, CopyableBuilder<TextEvent.Builder,TextEvent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TextEvent.BuilderflushStreamConfiguration(Consumer<FlushStreamConfiguration.Builder> flushStreamConfiguration) Configuration for controlling when synthesized audio flushes to the output stream.flushStreamConfiguration(FlushStreamConfiguration flushStreamConfiguration) Configuration for controlling when synthesized audio flushes to the output stream.The text content to synthesize.Specifies whether the input text is plain text or SSML.Specifies whether the input text is plain text or SSML.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
text
The text content to synthesize. If you specify
ssmlas theTextType, follow the SSML format for the input text.- Parameters:
text- The text content to synthesize. If you specifyssmlas theTextType, follow the SSML format for the input text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textType
Specifies whether the input text is plain text or SSML. Default: plain text.
- Parameters:
textType- Specifies whether the input text is plain text or SSML. Default: plain text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
textType
Specifies whether the input text is plain text or SSML. Default: plain text.
- Parameters:
textType- Specifies whether the input text is plain text or SSML. Default: plain text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
flushStreamConfiguration
Configuration for controlling when synthesized audio flushes to the output stream.
- Parameters:
flushStreamConfiguration- Configuration for controlling when synthesized audio flushes to the output stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
flushStreamConfiguration
default TextEvent.Builder flushStreamConfiguration(Consumer<FlushStreamConfiguration.Builder> flushStreamConfiguration) Configuration for controlling when synthesized audio flushes to the output stream.
This is a convenience method that creates an instance of theFlushStreamConfiguration.Builderavoiding the need to create one manually viaFlushStreamConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toflushStreamConfiguration(FlushStreamConfiguration).- Parameters:
flushStreamConfiguration- a consumer that will call methods onFlushStreamConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-