@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
An occurrence during a stage session.
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
Date |
getEventTime()
ISO 8601 timestamp (returned as a string) for when the event occurred.
|
String |
getName()
The name of the event.
|
String |
getParticipantId()
Unique identifier for the participant who triggered the event.
|
String |
getRemoteParticipantId()
Unique identifier for the remote participant.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
void |
setEventTime(Date eventTime)
ISO 8601 timestamp (returned as a string) for when the event occurred.
|
void |
setName(String name)
The name of the event.
|
void |
setParticipantId(String participantId)
Unique identifier for the participant who triggered the event.
|
void |
setRemoteParticipantId(String remoteParticipantId)
Unique identifier for the remote participant.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withErrorCode(EventErrorCode errorCode)
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
Event |
withErrorCode(String errorCode)
If the event is an error event, the error code is provided to give insight into the specific error that occurred.
|
Event |
withEventTime(Date eventTime)
ISO 8601 timestamp (returned as a string) for when the event occurred.
|
Event |
withName(EventName name)
The name of the event.
|
Event |
withName(String name)
The name of the event.
|
Event |
withParticipantId(String participantId)
Unique identifier for the participant who triggered the event.
|
Event |
withRemoteParticipantId(String remoteParticipantId)
Unique identifier for the remote participant.
|
public void setName(String name)
The name of the event.
name - The name of the event.EventNamepublic String getName()
The name of the event.
EventNamepublic Event withName(String name)
The name of the event.
name - The name of the event.EventNamepublic Event withName(EventName name)
The name of the event.
name - The name of the event.EventNamepublic void setParticipantId(String participantId)
Unique identifier for the participant who triggered the event. This is assigned by IVS.
participantId - Unique identifier for the participant who triggered the event. This is assigned by IVS.public String getParticipantId()
Unique identifier for the participant who triggered the event. This is assigned by IVS.
public Event withParticipantId(String participantId)
Unique identifier for the participant who triggered the event. This is assigned by IVS.
participantId - Unique identifier for the participant who triggered the event. This is assigned by IVS.public void setEventTime(Date eventTime)
ISO 8601 timestamp (returned as a string) for when the event occurred.
eventTime - ISO 8601 timestamp (returned as a string) for when the event occurred.public Date getEventTime()
ISO 8601 timestamp (returned as a string) for when the event occurred.
public Event withEventTime(Date eventTime)
ISO 8601 timestamp (returned as a string) for when the event occurred.
eventTime - ISO 8601 timestamp (returned as a string) for when the event occurred.public void setRemoteParticipantId(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.
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 String getRemoteParticipantId()
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 withRemoteParticipantId(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.
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 void setErrorCode(String 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.
QUOTA_EXCEEDED indicates that the number of participants who want to publish/subscribe to a stage
exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that doesn’t
exist.
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. QUOTA_EXCEEDED indicates that the number of participants who
want to publish/subscribe to a stage exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that
doesn’t exist.EventErrorCodepublic String getErrorCode()
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.
QUOTA_EXCEEDED indicates that the number of participants who want to publish/subscribe to a stage
exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that doesn’t
exist.
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. QUOTA_EXCEEDED indicates that the number of participants who
want to publish/subscribe to a stage exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that
doesn’t exist.EventErrorCodepublic Event withErrorCode(String 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.
QUOTA_EXCEEDED indicates that the number of participants who want to publish/subscribe to a stage
exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that doesn’t
exist.
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. QUOTA_EXCEEDED indicates that the number of participants who
want to publish/subscribe to a stage exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that
doesn’t exist.EventErrorCodepublic Event withErrorCode(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.
QUOTA_EXCEEDED indicates that the number of participants who want to publish/subscribe to a stage
exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that doesn’t
exist.
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. QUOTA_EXCEEDED indicates that the number of participants who
want to publish/subscribe to a stage exceeds the quota; for more information, see Service Quotas.
PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a publisher that
doesn’t exist.EventErrorCodepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.