@Generated(value="software.amazon.awssdk:codegen") public class ConfigurationEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConfigurationEvent.Builder,ConfigurationEvent>, StartConversationRequestEventStream
The initial event sent from the application to Amazon Lex to configure the conversation, including session and request attributes and the response content type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfigurationEvent.Builder |
protected static class |
ConfigurationEvent.BuilderImpl |
StartConversationRequestEventStream.EventType| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationEvent(ConfigurationEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
static ConfigurationEvent.Builder |
builder() |
Long |
clientTimestampMillis()
A timestamp set by the client of the date and time that the event was sent to Amazon Lex.
|
ConfigurationEvent |
copy(Consumer<? super ConfigurationEvent.Builder> modifier) |
Boolean |
disablePlayback()
Determines whether Amazon Lex should send audio responses to the client application.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
A unique identifier that your application assigns to the event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRequestAttributes()
Returns true if the RequestAttributes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasWelcomeMessages()
Returns true if the WelcomeMessages property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Map<String,String> |
requestAttributes()
Request-specific information passed between the client application and Amazon Lex.
|
String |
responseContentType()
The message that Amazon Lex returns in the response can be either text or speech based on the
responseContentType value. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ConfigurationEvent.Builder> |
serializableBuilderClass() |
SessionState |
sessionState()
Returns the value of the SessionState property for this object.
|
ConfigurationEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<Message> |
welcomeMessages()
A list of messages to send to the user.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaudioInputEventBuilder, configurationEventBuilder, disconnectionEventBuilder, dTMFInputEventBuilder, playbackCompletionEventBuilder, sdkEventType, textInputEventBuilderprotected ConfigurationEvent(ConfigurationEvent.BuilderImpl builder)
public final boolean hasRequestAttributes()
public final Map<String,String> requestAttributes()
Request-specific information passed between the client application and Amazon Lex.
The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for
prefix x-amz-lex:.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRequestAttributes() to see if a value was sent in this field.
The namespace x-amz-lex: is reserved for special attributes. Don't create any request
attributes for prefix x-amz-lex:.
public final String responseContentType()
The message that Amazon Lex 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 returns text in the response.
If the value begins with audio/, Amazon Lex returns speech in the response. Amazon Lex 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 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 value.
If the value is text/plain;charset=utf-8, Amazon Lex returns text in the response.
If the value begins with audio/, Amazon Lex returns speech in the response. Amazon Lex 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 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 sessionState()
public final boolean hasWelcomeMessages()
public final List<Message> welcomeMessages()
A list of messages to send to the user.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasWelcomeMessages() to see if a value was sent in this field.
public final Boolean disablePlayback()
Determines whether Amazon Lex should send audio responses to the client application. When this parameter if
false, the client application needs to create responses for the user.
false, the client application needs to create responses for the user.public final String eventId()
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
public final Long clientTimestampMillis()
A timestamp set by the client of the date and time that the event was sent to Amazon Lex.
public ConfigurationEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ConfigurationEvent.Builder,ConfigurationEvent>public static ConfigurationEvent.Builder builder()
public static Class<? extends ConfigurationEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final ConfigurationEvent copy(Consumer<? super ConfigurationEvent.Builder> modifier)
copy in interface ToCopyableBuilder<ConfigurationEvent.Builder,ConfigurationEvent>Copyright © 2021. All rights reserved.