@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Event.Builder,Event>
An occurrence during a stage session.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Event.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Event.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventErrorCode |
errorCode()
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
String |
errorCodeAsString()
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
Instant |
eventTime()
ISO 8601 timestamp (returned as a string) for when the event occurred.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
EventName |
name()
The name of the event.
|
String |
nameAsString()
The name of the event.
|
String |
participantId()
Unique identifier for the participant who triggered the event.
|
String |
remoteParticipantId()
Unique identifier for the remote participant.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Event.Builder> |
serializableBuilderClass() |
Event.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final EventErrorCode errorCode()
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
If the event is not an error event, this field is null. INSUFFICIENT_CAPABILITIES indicates that the
participant tried to take an action that the participant’s token is not allowed to do. For more information about
participant capabilities, see the capabilities field in CreateParticipantToken.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return EventErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
INSUFFICIENT_CAPABILITIES
indicates that the participant tried to take an action that the participant’s token is not allowed to do.
For more information about participant capabilities, see the capabilities field in
CreateParticipantToken.EventErrorCodepublic final String errorCodeAsString()
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
If the event is not an error event, this field is null. INSUFFICIENT_CAPABILITIES indicates that the
participant tried to take an action that the participant’s token is not allowed to do. For more information about
participant capabilities, see the capabilities field in CreateParticipantToken.
If the service returns an enum value that is not available in the current SDK version, errorCode will
return EventErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
errorCodeAsString().
INSUFFICIENT_CAPABILITIES
indicates that the participant tried to take an action that the participant’s token is not allowed to do.
For more information about participant capabilities, see the capabilities field in
CreateParticipantToken.EventErrorCodepublic final Instant eventTime()
ISO 8601 timestamp (returned as a string) for when the event occurred.
public final EventName name()
The name of the event.
If the service returns an enum value that is not available in the current SDK version, name will return
EventName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
EventNamepublic final String nameAsString()
The name of the event.
If the service returns an enum value that is not available in the current SDK version, name will return
EventName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
nameAsString().
EventNamepublic final String participantId()
Unique identifier for the participant who triggered the event. This is assigned by IVS.
public final String remoteParticipantId()
Unique identifier for the remote participant. For a subscribe event, this is the publisher. For a publish or join event, this is null. This is assigned by IVS.
public Event.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Event.Builder,Event>public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.