Interface ConfigurationEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ConfigurationEvent.Builder,,ConfigurationEvent> SdkBuilder<ConfigurationEvent.Builder,,ConfigurationEvent> SdkPojo
- All Known Subinterfaces:
DefaultConfigurationEvent.Builder
- Enclosing class:
ConfigurationEvent
-
Method Summary
Modifier and TypeMethodDescriptionclientTimestampMillis(Long clientTimestampMillis) A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.disablePlayback(Boolean disablePlayback) Determines whether Amazon Lex V2 should send audio responses to the client application.A unique identifier that your application assigns to the event.requestAttributes(Map<String, String> requestAttributes) Request-specific information passed between the client application and Amazon Lex V2.responseContentType(String responseContentType) The message that Amazon Lex V2 returns in the response can be either text or speech based on theresponseContentTypevalue.default ConfigurationEvent.BuildersessionState(Consumer<SessionState.Builder> sessionState) Sets the value of the SessionState property for this object.sessionState(SessionState sessionState) Sets the value of the SessionState property for this object.welcomeMessages(Collection<Message> welcomeMessages) A list of messages to send to the user.welcomeMessages(Consumer<Message.Builder>... welcomeMessages) A list of messages to send to the user.welcomeMessages(Message... welcomeMessages) A list of messages to send to the user.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, sdkFields
-
Method Details
-
requestAttributes
Request-specific information passed between the client application and Amazon Lex V2.
The namespace
x-amz-lex:is reserved for special attributes. Don't create any request attributes for prefixx-amz-lex:.- Parameters:
requestAttributes- Request-specific information passed between the client application and Amazon Lex V2.The namespace
x-amz-lex:is reserved for special attributes. Don't create any request attributes for prefixx-amz-lex:.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseContentType
The message that Amazon Lex V2 returns in the response can be either text or speech based on the
responseContentTypevalue.-
If the value is
text/plain;charset=utf-8, Amazon Lex V2 returns text in the response. -
If the value begins with
audio/, Amazon Lex V2 returns speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech using the configuration that you specified in therequestContentTypeparameter. For example, if you specifyaudio/mpegas the value, Amazon Lex V2 returns speech in the MPEG format. -
If the value is
audio/pcm, the speech returned is audio/pcm in 16-bit, little-endian format. -
The following are the accepted values:
-
audio/mpeg
-
audio/ogg
-
audio/pcm
-
audio/* (defaults to mpeg)
-
text/plain; charset=utf-8
-
- Parameters:
responseContentType- The message that Amazon Lex V2 returns in the response can be either text or speech based on theresponseContentTypevalue.-
If the value is
text/plain;charset=utf-8, Amazon Lex V2 returns text in the response. -
If the value begins with
audio/, Amazon Lex V2 returns speech in the response. Amazon Lex V2 uses Amazon Polly to generate the speech using the configuration that you specified in therequestContentTypeparameter. For example, if you specifyaudio/mpegas the value, Amazon Lex V2 returns speech in the MPEG format. -
If the value is
audio/pcm, the speech returned is audio/pcm in 16-bit, little-endian format. -
The following are the accepted values:
-
audio/mpeg
-
audio/ogg
-
audio/pcm
-
audio/* (defaults to mpeg)
-
text/plain; charset=utf-8
-
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
sessionState
Sets the value of the SessionState property for this object.- Parameters:
sessionState- The new value for the SessionState property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
Sets the value of the SessionState property for this object. This is a convenience method that creates an instance of theSessionState.Builderavoiding the need to create one manually viaSessionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosessionState(SessionState).- Parameters:
sessionState- a consumer that will call methods onSessionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
welcomeMessages
A list of messages to send to the user.
If you set the
welcomeMessagefield, you must also set theDialogActionstructure'stypefield.- Parameters:
welcomeMessages- A list of messages to send to the user.If you set the
welcomeMessagefield, you must also set theDialogActionstructure'stypefield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
welcomeMessages
A list of messages to send to the user.
If you set the
welcomeMessagefield, you must also set theDialogActionstructure'stypefield.- Parameters:
welcomeMessages- A list of messages to send to the user.If you set the
welcomeMessagefield, you must also set theDialogActionstructure'stypefield.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
welcomeMessages
A list of messages to send to the user.
If you set the
This is a convenience method that creates an instance of thewelcomeMessagefield, you must also set theDialogActionstructure'stypefield.Message.Builderavoiding the need to create one manually viaMessage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towelcomeMessages(List<Message>).- Parameters:
welcomeMessages- a consumer that will call methods onMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
disablePlayback
Determines whether Amazon Lex V2 should send audio responses to the client application.
Set this field to false when the client is operating in a playback mode where audio responses are played to the user. If the client isn't operating in playback mode, such as a text chat application, set this to true so that Amazon Lex V2 doesn't wait for the prompt to finish playing on the client.
- Parameters:
disablePlayback- Determines whether Amazon Lex V2 should send audio responses to the client application.Set this field to false when the client is operating in a playback mode where audio responses are played to the user. If the client isn't operating in playback mode, such as a text chat application, set this to true so that Amazon Lex V2 doesn't wait for the prompt to finish playing on the client.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventId
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
- Parameters:
eventId- A unique identifier that your application assigns to the event. You can use this to identify events in logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientTimestampMillis
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
- Parameters:
clientTimestampMillis- A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-