Class DTMFInputEvent
- java.lang.Object
-
- software.amazon.awssdk.services.lexruntimev2.model.DTMFInputEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,StartConversationRequestEventStream,ToCopyableBuilder<DTMFInputEvent.Builder,DTMFInputEvent>
- Direct Known Subclasses:
DefaultDTMFInputEvent
@Generated("software.amazon.awssdk:codegen") public class DTMFInputEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DTMFInputEvent.Builder,DTMFInputEvent>, StartConversationRequestEventStream
A DTMF character sent from the client application. DTMF characters are typically sent from a phone keypad to represent numbers. For example, you can have Amazon Lex V2 process a credit card number input from a phone.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDTMFInputEvent.Builderprotected static classDTMFInputEvent.BuilderImpl-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.lexruntimev2.model.StartConversationRequestEventStream
StartConversationRequestEventStream.EventType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDTMFInputEvent(DTMFInputEvent.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DTMFInputEvent.Builderbuilder()LongclientTimestampMillis()A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.DTMFInputEventcopy(Consumer<? super DTMFInputEvent.Builder> modifier)booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeventId()A unique identifier that your application assigns to the event.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinputCharacter()The DTMF character that the user pressed.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DTMFInputEvent.Builder>serializableBuilderClass()DTMFInputEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.lexruntimev2.model.StartConversationRequestEventStream
sdkEventType
-
-
-
-
Constructor Detail
-
DTMFInputEvent
protected DTMFInputEvent(DTMFInputEvent.BuilderImpl builder)
-
-
Method Detail
-
inputCharacter
public final String inputCharacter()
The DTMF character that the user pressed. The allowed characters are A - D, 0 - 9, # and *.
- Returns:
- The DTMF character that the user pressed. The allowed characters are A - D, 0 - 9, # and *.
-
eventId
public final String eventId()
A unique identifier that your application assigns to the event. You can use this to identify events in logs.
- Returns:
- A unique identifier that your application assigns to the event. You can use this to identify events in logs.
-
clientTimestampMillis
public final Long clientTimestampMillis()
A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
- Returns:
- A timestamp set by the client of the date and time that the event was sent to Amazon Lex V2.
-
toBuilder
public DTMFInputEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DTMFInputEvent.Builder,DTMFInputEvent>
-
builder
public static DTMFInputEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends DTMFInputEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
copy
public final DTMFInputEvent copy(Consumer<? super DTMFInputEvent.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<DTMFInputEvent.Builder,DTMFInputEvent>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-