public class EndpointMessageResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
EndpointMessageResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAddress()
Address that endpoint message was delivered to.
|
java.lang.String |
getDeliveryStatus()
The delivery status of the message.
|
java.lang.String |
getMessageId()
Unique message identifier associated with the message that was sent.
|
java.lang.Integer |
getStatusCode()
Downstream service status code.
|
java.lang.String |
getStatusMessage()
Status message for message delivery.
|
java.lang.String |
getUpdatedToken()
If token was updated as part of delivery.
|
int |
hashCode() |
void |
setAddress(java.lang.String address)
Address that endpoint message was delivered to.
|
void |
setDeliveryStatus(DeliveryStatus deliveryStatus)
The delivery status of the message.
|
void |
setDeliveryStatus(java.lang.String deliveryStatus)
The delivery status of the message.
|
void |
setMessageId(java.lang.String messageId)
Unique message identifier associated with the message that was sent.
|
void |
setStatusCode(java.lang.Integer statusCode)
Downstream service status code.
|
void |
setStatusMessage(java.lang.String statusMessage)
Status message for message delivery.
|
void |
setUpdatedToken(java.lang.String updatedToken)
If token was updated as part of delivery.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointMessageResult |
withAddress(java.lang.String address)
Address that endpoint message was delivered to.
|
EndpointMessageResult |
withDeliveryStatus(DeliveryStatus deliveryStatus)
The delivery status of the message.
|
EndpointMessageResult |
withDeliveryStatus(java.lang.String deliveryStatus)
The delivery status of the message.
|
EndpointMessageResult |
withMessageId(java.lang.String messageId)
Unique message identifier associated with the message that was sent.
|
EndpointMessageResult |
withStatusCode(java.lang.Integer statusCode)
Downstream service status code.
|
EndpointMessageResult |
withStatusMessage(java.lang.String statusMessage)
Status message for message delivery.
|
EndpointMessageResult |
withUpdatedToken(java.lang.String updatedToken)
If token was updated as part of delivery.
|
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
address - Address that endpoint message was delivered to.public EndpointMessageResult withAddress(java.lang.String address)
Returns a reference to this object so that method calls can be chained together.
address - Address that endpoint message was delivered to.public java.lang.String getDeliveryStatus()
Constraints:
Allowed Values: SUCCESSFUL, THROTTLED, TEMPORARY_FAILURE,
PERMANENT_FAILURE, UNKNOWN_FAILURE, OPT_OUT, DUPLICATE
DeliveryStatuspublic void setDeliveryStatus(java.lang.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.DeliveryStatuspublic EndpointMessageResult withDeliveryStatus(java.lang.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.DeliveryStatuspublic 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.DeliveryStatuspublic EndpointMessageResult 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.DeliveryStatuspublic java.lang.String getMessageId()
public void setMessageId(java.lang.String messageId)
messageId - Unique message identifier associated with the message
that was sent.public EndpointMessageResult withMessageId(java.lang.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 java.lang.Integer getStatusCode()
public void setStatusCode(java.lang.Integer statusCode)
statusCode - Downstream service status code.public EndpointMessageResult withStatusCode(java.lang.Integer statusCode)
Returns a reference to this object so that method calls can be chained together.
statusCode - Downstream service status code.public java.lang.String getStatusMessage()
public void setStatusMessage(java.lang.String statusMessage)
statusMessage - Status message for message delivery.public EndpointMessageResult withStatusMessage(java.lang.String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage - Status message for message delivery.public java.lang.String getUpdatedToken()
public void setUpdatedToken(java.lang.String updatedToken)
updatedToken - If token was updated as part of delivery. (This is
GCM Specific)public EndpointMessageResult withUpdatedToken(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.