public class MessageResult extends Object implements Serializable
Constructor and Description |
---|
MessageResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDeliveryStatus()
The delivery status of the message.
|
String |
getMessageId()
Unique message identifier associated with the message that was sent.
|
Integer |
getStatusCode()
Downstream service status code.
|
String |
getStatusMessage()
Status message for message delivery.
|
String |
getUpdatedToken()
If token was updated as part of delivery.
|
int |
hashCode() |
void |
setDeliveryStatus(DeliveryStatus deliveryStatus)
The delivery status of the message.
|
void |
setDeliveryStatus(String deliveryStatus)
The delivery status of the message.
|
void |
setMessageId(String messageId)
Unique message identifier associated with the message that was sent.
|
void |
setStatusCode(Integer statusCode)
Downstream service status code.
|
void |
setStatusMessage(String statusMessage)
Status message for message delivery.
|
void |
setUpdatedToken(String updatedToken)
If token was updated as part of delivery.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageResult |
withDeliveryStatus(DeliveryStatus deliveryStatus)
The delivery status of the message.
|
MessageResult |
withDeliveryStatus(String deliveryStatus)
The delivery status of the message.
|
MessageResult |
withMessageId(String messageId)
Unique message identifier associated with the message that was sent.
|
MessageResult |
withStatusCode(Integer statusCode)
Downstream service status code.
|
MessageResult |
withStatusMessage(String statusMessage)
Status message for message delivery.
|
MessageResult |
withUpdatedToken(String updatedToken)
If token was updated as part of delivery.
|
public String getDeliveryStatus()
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
DeliveryStatus
public void setDeliveryStatus(String deliveryStatus)
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
deliveryStatus
- The delivery status of the message. Possible
values: SUCCESS - The message was successfully delivered to
the endpoint. TRANSIENT_FAILURE - A temporary error occurred.
Amazon Pinpoint will attempt to deliver the message again
later. FAILURE_PERMANENT - An error occurred when delivering
the message to the endpoint. Amazon Pinpoint won't attempt to
send the message again. TIMEOUT - The message couldn't be sent
within the timeout period. QUIET_TIME - The local time for the
endpoint was within the QuietTime for the campaign or app.
DAILY_CAP - The endpoint has received the maximum number of
messages it can receive within a 24-hour period. HOLDOUT - The
endpoint was in a hold out treatment for the campaign.
THROTTLED - Amazon Pinpoint throttled sending to this
endpoint. EXPIRED - The endpoint address is expired.
CAMPAIGN_CAP - The endpoint received the maximum number of
messages allowed by the campaign. SERVICE_FAILURE - A
service-level failure prevented Amazon Pinpoint from
delivering the message. UNKNOWN - An unknown error occurred.DeliveryStatus
public MessageResult withDeliveryStatus(String deliveryStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
deliveryStatus
- The delivery status of the message. Possible
values: SUCCESS - The message was successfully delivered to
the endpoint. TRANSIENT_FAILURE - A temporary error occurred.
Amazon Pinpoint will attempt to deliver the message again
later. FAILURE_PERMANENT - An error occurred when delivering
the message to the endpoint. Amazon Pinpoint won't attempt to
send the message again. TIMEOUT - The message couldn't be sent
within the timeout period. QUIET_TIME - The local time for the
endpoint was within the QuietTime for the campaign or app.
DAILY_CAP - The endpoint has received the maximum number of
messages it can receive within a 24-hour period. HOLDOUT - The
endpoint was in a hold out treatment for the campaign.
THROTTLED - Amazon Pinpoint throttled sending to this
endpoint. EXPIRED - The endpoint address is expired.
CAMPAIGN_CAP - The endpoint received the maximum number of
messages allowed by the campaign. SERVICE_FAILURE - A
service-level failure prevented Amazon Pinpoint from
delivering the message. UNKNOWN - An unknown error occurred.DeliveryStatus
public void setDeliveryStatus(DeliveryStatus deliveryStatus)
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
deliveryStatus
- The delivery status of the message. Possible
values: SUCCESS - The message was successfully delivered to
the endpoint. TRANSIENT_FAILURE - A temporary error occurred.
Amazon Pinpoint will attempt to deliver the message again
later. FAILURE_PERMANENT - An error occurred when delivering
the message to the endpoint. Amazon Pinpoint won't attempt to
send the message again. TIMEOUT - The message couldn't be sent
within the timeout period. QUIET_TIME - The local time for the
endpoint was within the QuietTime for the campaign or app.
DAILY_CAP - The endpoint has received the maximum number of
messages it can receive within a 24-hour period. HOLDOUT - The
endpoint was in a hold out treatment for the campaign.
THROTTLED - Amazon Pinpoint throttled sending to this
endpoint. EXPIRED - The endpoint address is expired.
CAMPAIGN_CAP - The endpoint received the maximum number of
messages allowed by the campaign. SERVICE_FAILURE - A
service-level failure prevented Amazon Pinpoint from
delivering the message. UNKNOWN - An unknown error occurred.DeliveryStatus
public MessageResult withDeliveryStatus(DeliveryStatus deliveryStatus)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
deliveryStatus
- The delivery status of the message. Possible
values: SUCCESS - The message was successfully delivered to
the endpoint. TRANSIENT_FAILURE - A temporary error occurred.
Amazon Pinpoint will attempt to deliver the message again
later. FAILURE_PERMANENT - An error occurred when delivering
the message to the endpoint. Amazon Pinpoint won't attempt to
send the message again. TIMEOUT - The message couldn't be sent
within the timeout period. QUIET_TIME - The local time for the
endpoint was within the QuietTime for the campaign or app.
DAILY_CAP - The endpoint has received the maximum number of
messages it can receive within a 24-hour period. HOLDOUT - The
endpoint was in a hold out treatment for the campaign.
THROTTLED - Amazon Pinpoint throttled sending to this
endpoint. EXPIRED - The endpoint address is expired.
CAMPAIGN_CAP - The endpoint received the maximum number of
messages allowed by the campaign. SERVICE_FAILURE - A
service-level failure prevented Amazon Pinpoint from
delivering the message. UNKNOWN - An unknown error occurred.DeliveryStatus
public String getMessageId()
public void setMessageId(String messageId)
messageId
- Unique message identifier associated with the message
that was sent.public MessageResult withMessageId(String messageId)
Returns a reference to this object so that method calls can be chained together.
messageId
- Unique message identifier associated with the message
that was sent.public Integer getStatusCode()
public void setStatusCode(Integer statusCode)
statusCode
- Downstream service status code.public MessageResult withStatusCode(Integer statusCode)
Returns a reference to this object so that method calls can be chained together.
statusCode
- Downstream service status code.public String getStatusMessage()
public void setStatusMessage(String statusMessage)
statusMessage
- Status message for message delivery.public MessageResult withStatusMessage(String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage
- Status message for message delivery.public String getUpdatedToken()
public void setUpdatedToken(String updatedToken)
updatedToken
- If token was updated as part of delivery. (This is
GCM Specific)public MessageResult withUpdatedToken(String updatedToken)
Returns a reference to this object so that method calls can be chained together.
updatedToken
- If token was updated as part of delivery. (This is
GCM Specific)public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.