protected static class ConfigurationEvent.BuilderImpl extends Object implements ConfigurationEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(ConfigurationEvent model) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationEvent |
build() |
ConfigurationEvent.Builder |
clientTimestampMillis(Long clientTimestampMillis)
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
|
ConfigurationEvent.Builder |
disablePlayback(Boolean disablePlayback)
Determines whether Amazon Lex V2 should send audio responses to the client application.
|
ConfigurationEvent.Builder |
eventId(String eventId)
A unique identifier that your application assigns to the event.
|
Long |
getClientTimestampMillis() |
Boolean |
getDisablePlayback() |
String |
getEventId() |
Map<String,String> |
getRequestAttributes() |
String |
getResponseContentType() |
SessionState.Builder |
getSessionState() |
List<Message.Builder> |
getWelcomeMessages() |
ConfigurationEvent.Builder |
requestAttributes(Map<String,String> requestAttributes)
Request-specific information passed between the client application and Amazon Lex V2.
|
ConfigurationEvent.Builder |
responseContentType(String responseContentType)
The message that Amazon Lex V2 returns in the response can be either text or speech based on the
responseContentType value. |
List<SdkField<?>> |
sdkFields() |
ConfigurationEvent.Builder |
sessionState(SessionState sessionState)
Sets the value of the SessionState property for this object.
|
void |
setClientTimestampMillis(Long clientTimestampMillis) |
void |
setDisablePlayback(Boolean disablePlayback) |
void |
setEventId(String eventId) |
void |
setRequestAttributes(Map<String,String> requestAttributes) |
void |
setResponseContentType(String responseContentType) |
void |
setSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState) |
void |
setWelcomeMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> welcomeMessages) |
ConfigurationEvent.Builder |
welcomeMessages(Collection<Message> welcomeMessages)
A list of messages to send to the user.
|
ConfigurationEvent.Builder |
welcomeMessages(Consumer<Message.Builder>... welcomeMessages)
A list of messages to send to the user.
|
ConfigurationEvent.Builder |
welcomeMessages(Message... welcomeMessages)
A list of messages to send to the user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsessionStateequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(ConfigurationEvent model)
public final ConfigurationEvent.Builder requestAttributes(Map<String,String> requestAttributes)
ConfigurationEvent.BuilderRequest-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 prefix x-amz-lex:.
requestAttributes in interface ConfigurationEvent.BuilderrequestAttributes - 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 prefix x-amz-lex:.
public final String getResponseContentType()
public final void setResponseContentType(String responseContentType)
public final ConfigurationEvent.Builder responseContentType(String responseContentType)
ConfigurationEvent.Builder
The message that Amazon Lex V2 returns in the response can be either text or speech based on the
responseContentType value.
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 the
requestContentType parameter. For example, if you specify audio/mpeg as 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
responseContentType in interface ConfigurationEvent.BuilderresponseContentType - The message that Amazon Lex V2 returns in the response can be either text or speech based on the
responseContentType value.
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 the
requestContentType parameter. For example, if you specify audio/mpeg as 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
public final SessionState.Builder getSessionState()
public final void setSessionState(software.amazon.awssdk.services.lexruntimev2.model.SessionState.BuilderImpl sessionState)
public final ConfigurationEvent.Builder sessionState(SessionState sessionState)
ConfigurationEvent.BuildersessionState in interface ConfigurationEvent.BuildersessionState - The new value for the SessionState property for this object.public final List<Message.Builder> getWelcomeMessages()
public final void setWelcomeMessages(Collection<software.amazon.awssdk.services.lexruntimev2.model.Message.BuilderImpl> welcomeMessages)
public final ConfigurationEvent.Builder welcomeMessages(Collection<Message> welcomeMessages)
ConfigurationEvent.BuilderA list of messages to send to the user.
If you set the welcomeMessage field, you must also set the DialogAction
structure's type field.
welcomeMessages in interface ConfigurationEvent.BuilderwelcomeMessages - A list of messages to send to the user.
If you set the welcomeMessage field, you must also set the
DialogAction structure's type field.
@SafeVarargs public final ConfigurationEvent.Builder welcomeMessages(Message... welcomeMessages)
ConfigurationEvent.BuilderA list of messages to send to the user.
If you set the welcomeMessage field, you must also set the DialogAction
structure's type field.
welcomeMessages in interface ConfigurationEvent.BuilderwelcomeMessages - A list of messages to send to the user.
If you set the welcomeMessage field, you must also set the
DialogAction structure's type field.
@SafeVarargs public final ConfigurationEvent.Builder welcomeMessages(Consumer<Message.Builder>... welcomeMessages)
ConfigurationEvent.BuilderA list of messages to send to the user.
If you set the welcomeMessage field, you must also set the DialogAction
structure's type field.
Message.Builder avoiding the need to create one
manually via Message.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #welcomeMessages(List.
welcomeMessages in interface ConfigurationEvent.BuilderwelcomeMessages - a consumer that will call methods on
Message.Builder#welcomeMessages(java.util.Collection) public final Boolean getDisablePlayback()
public final void setDisablePlayback(Boolean disablePlayback)
public final ConfigurationEvent.Builder disablePlayback(Boolean disablePlayback)
ConfigurationEvent.BuilderDetermines 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.
disablePlayback in interface ConfigurationEvent.BuilderdisablePlayback - 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.
public final String getEventId()
public final void setEventId(String eventId)
public final ConfigurationEvent.Builder eventId(String eventId)
ConfigurationEvent.BuilderA unique identifier that your application assigns to the event. You can use this to identify events in logs.
eventId in interface ConfigurationEvent.BuildereventId - A unique identifier that your application assigns to the event. You can use this to identify events in
logs.public final Long getClientTimestampMillis()
public final void setClientTimestampMillis(Long clientTimestampMillis)
public final ConfigurationEvent.Builder clientTimestampMillis(Long clientTimestampMillis)
ConfigurationEvent.BuilderA timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
clientTimestampMillis in interface ConfigurationEvent.BuilderclientTimestampMillis - A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.public ConfigurationEvent build()
build in interface Buildablebuild in interface SdkBuilder<ConfigurationEvent.Builder,ConfigurationEvent>Copyright © 2023. All rights reserved.