@Generated(value="software.amazon.awssdk:codegen") public final class EndpointMessageResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EndpointMessageResult.Builder,EndpointMessageResult>
Provides information about the delivery status and results of sending a message directly to an endpoint.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EndpointMessageResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
address()
The endpoint address that the message was delivered to.
|
static EndpointMessageResult.Builder |
builder() |
DeliveryStatus |
deliveryStatus()
The delivery status of the message.
|
String |
deliveryStatusAsString()
The delivery status of the message.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
messageId()
The unique identifier for the message that was sent.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EndpointMessageResult.Builder> |
serializableBuilderClass() |
Integer |
statusCode()
The downstream service status code for delivering the message.
|
String |
statusMessage()
The status message for delivering the message.
|
EndpointMessageResult.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
updatedToken()
For push notifications that are sent through the GCM channel, specifies whether the endpoint's device
registration token was updated as part of delivering the message.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String address()
The endpoint address that the message was delivered to.
public final DeliveryStatus deliveryStatus()
The delivery status of the message. Possible values are:
DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint.
TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
TIMEOUT - The message couldn't be sent within the timeout period.
UNKNOWN_FAILURE - An unknown error occurred.
If the service returns an enum value that is not available in the current SDK version, deliveryStatus
will return DeliveryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from deliveryStatusAsString().
DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint.
TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
TIMEOUT - The message couldn't be sent within the timeout period.
UNKNOWN_FAILURE - An unknown error occurred.
DeliveryStatuspublic final String deliveryStatusAsString()
The delivery status of the message. Possible values are:
DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint.
TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
TIMEOUT - The message couldn't be sent within the timeout period.
UNKNOWN_FAILURE - An unknown error occurred.
If the service returns an enum value that is not available in the current SDK version, deliveryStatus
will return DeliveryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from deliveryStatusAsString().
DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint.
TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
TIMEOUT - The message couldn't be sent within the timeout period.
UNKNOWN_FAILURE - An unknown error occurred.
DeliveryStatuspublic final String messageId()
The unique identifier for the message that was sent.
public final Integer statusCode()
The downstream service status code for delivering the message.
public final String statusMessage()
The status message for delivering the message.
public final String updatedToken()
For push notifications that are sent through the GCM channel, specifies whether the endpoint's device registration token was updated as part of delivering the message.
public EndpointMessageResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EndpointMessageResult.Builder,EndpointMessageResult>public static EndpointMessageResult.Builder builder()
public static Class<? extends EndpointMessageResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.