@Generated(value="software.amazon.awssdk:codegen") public final class MessageResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MessageResult.Builder,MessageResult>
Provides information about the results of sending a message directly to an endpoint address.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageResult.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MessageResult.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 MessageResult.Builder> |
serializableBuilderClass() |
Integer |
statusCode()
The downstream service status code for delivering the message.
|
String |
statusMessage()
The status message for delivering the message.
|
MessageResult.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 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 address 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 address. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint address.
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 address.
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 address 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 address. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint address.
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 address.
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 address 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 address. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint address.
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 address.
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 address 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 address. Amazon Pinpoint won't attempt to send the message again.
SUCCESSFUL - The message was successfully delivered to the endpoint address.
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 address.
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 MessageResult.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MessageResult.Builder,MessageResult>public static MessageResult.Builder builder()
public static Class<? extends MessageResult.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.