@Generated(value="software.amazon.awssdk:codegen") public class HeartbeatEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HeartbeatEvent.Builder,HeartbeatEvent>, StartConversationResponseEventStream
Event that Amazon Lex V2 sends to indicate that the stream is still open between the client application and Amazon Lex V2
| Modifier and Type | Class and Description |
|---|---|
static interface |
HeartbeatEvent.Builder |
protected static class |
HeartbeatEvent.BuilderImpl |
StartConversationResponseEventStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
HeartbeatEvent(HeartbeatEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StartConversationResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
HeartbeatEvent. |
static HeartbeatEvent.Builder |
builder() |
HeartbeatEvent |
copy(Consumer<? super HeartbeatEvent.Builder> modifier) |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventId()
A unique identifier of the event sent by Amazon Lex V2.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends HeartbeatEvent.Builder> |
serializableBuilderClass() |
HeartbeatEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaudioResponseEventBuilder, heartbeatEventBuilder, intentResultEventBuilder, playbackInterruptionEventBuilder, sdkEventType, textResponseEventBuilder, transcriptEventBuilderprotected HeartbeatEvent(HeartbeatEvent.BuilderImpl builder)
public final String eventId()
A unique identifier of the event sent by Amazon Lex V2. The identifier is in the form RESPONSE-N,
where N is a number starting with one and incremented for each event sent by Amazon Lex V2 in the current
session.
RESPONSE-N, where N is a number starting with one and incremented for each event sent by
Amazon Lex V2 in the current session.public HeartbeatEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HeartbeatEvent.Builder,HeartbeatEvent>public static HeartbeatEvent.Builder builder()
public static Class<? extends HeartbeatEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final HeartbeatEvent copy(Consumer<? super HeartbeatEvent.Builder> modifier)
copy in interface ToCopyableBuilder<HeartbeatEvent.Builder,HeartbeatEvent>public void accept(StartConversationResponseHandler.Visitor visitor)
HeartbeatEvent.accept in interface StartConversationResponseEventStreamvisitor - Visitor to invoke.Copyright © 2023. All rights reserved.