public class MessageResponse
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MessageResponse() |
Modifier and Type | Method and Description |
---|---|
MessageResponse |
addEndpointResultEntry(java.lang.String key,
EndpointMessageResult value)
A map containing a multi part response for each address, with the
endpointId as the key and the result as the value.
|
MessageResponse |
addResultEntry(java.lang.String key,
MessageResult value)
A map containing a multi part response for each address, with the address
as the key(Email address, phone number or push token) and the result as
the value.
|
MessageResponse |
clearEndpointResultEntries()
Removes all the entries added into EndpointResult.
|
MessageResponse |
clearResultEntries()
Removes all the entries added into Result.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getApplicationId()
Application id of the message.
|
java.util.Map<java.lang.String,EndpointMessageResult> |
getEndpointResult()
A map containing a multi part response for each address, with the
endpointId as the key and the result as the value.
|
java.lang.String |
getRequestId()
Original request Id for which this message was delivered.
|
java.util.Map<java.lang.String,MessageResult> |
getResult()
A map containing a multi part response for each address, with the address
as the key(Email address, phone number or push token) and the result as
the value.
|
int |
hashCode() |
void |
setApplicationId(java.lang.String applicationId)
Application id of the message.
|
void |
setEndpointResult(java.util.Map<java.lang.String,EndpointMessageResult> endpointResult)
A map containing a multi part response for each address, with the
endpointId as the key and the result as the value.
|
void |
setRequestId(java.lang.String requestId)
Original request Id for which this message was delivered.
|
void |
setResult(java.util.Map<java.lang.String,MessageResult> result)
A map containing a multi part response for each address, with the address
as the key(Email address, phone number or push token) and the result as
the value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageResponse |
withApplicationId(java.lang.String applicationId)
Application id of the message.
|
MessageResponse |
withEndpointResult(java.util.Map<java.lang.String,EndpointMessageResult> endpointResult)
A map containing a multi part response for each address, with the
endpointId as the key and the result as the value.
|
MessageResponse |
withRequestId(java.lang.String requestId)
Original request Id for which this message was delivered.
|
MessageResponse |
withResult(java.util.Map<java.lang.String,MessageResult> result)
A map containing a multi part response for each address, with the address
as the key(Email address, phone number or push token) and the result as
the value.
|
public java.lang.String getApplicationId()
public void setApplicationId(java.lang.String applicationId)
applicationId
- Application id of the message.public MessageResponse withApplicationId(java.lang.String applicationId)
Returns a reference to this object so that method calls can be chained together.
applicationId
- Application id of the message.public java.util.Map<java.lang.String,EndpointMessageResult> getEndpointResult()
public void setEndpointResult(java.util.Map<java.lang.String,EndpointMessageResult> endpointResult)
endpointResult
- A map containing a multi part response for each
address, with the endpointId as the key and the result as the
value.public MessageResponse withEndpointResult(java.util.Map<java.lang.String,EndpointMessageResult> endpointResult)
Returns a reference to this object so that method calls can be chained together.
endpointResult
- A map containing a multi part response for each
address, with the endpointId as the key and the result as the
value.public MessageResponse addEndpointResultEntry(java.lang.String key, EndpointMessageResult value)
The method adds a new key-value pair into EndpointResult parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into EndpointResult.value
- The corresponding value of the entry to be added into
EndpointResult.public MessageResponse clearEndpointResultEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getRequestId()
public void setRequestId(java.lang.String requestId)
requestId
- Original request Id for which this message was
delivered.public MessageResponse withRequestId(java.lang.String requestId)
Returns a reference to this object so that method calls can be chained together.
requestId
- Original request Id for which this message was
delivered.public java.util.Map<java.lang.String,MessageResult> getResult()
public void setResult(java.util.Map<java.lang.String,MessageResult> result)
result
- A map containing a multi part response for each address,
with the address as the key(Email address, phone number or
push token) and the result as the value.public MessageResponse withResult(java.util.Map<java.lang.String,MessageResult> result)
Returns a reference to this object so that method calls can be chained together.
result
- A map containing a multi part response for each address,
with the address as the key(Email address, phone number or
push token) and the result as the value.public MessageResponse addResultEntry(java.lang.String key, MessageResult value)
The method adds a new key-value pair into Result parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Result.value
- The corresponding value of the entry to be added into
Result.public MessageResponse clearResultEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.