public class MessageResponse extends Object implements Serializable
Constructor and Description |
---|
MessageResponse() |
Modifier and Type | Method and Description |
---|---|
MessageResponse |
addEndpointResultEntry(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(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(Object obj) |
String |
getApplicationId()
Application id of the message.
|
Map<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.
|
String |
getRequestId()
Original request Id for which this message was delivered.
|
Map<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(String applicationId)
Application id of the message.
|
void |
setEndpointResult(Map<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(String requestId)
Original request Id for which this message was delivered.
|
void |
setResult(Map<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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MessageResponse |
withApplicationId(String applicationId)
Application id of the message.
|
MessageResponse |
withEndpointResult(Map<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(String requestId)
Original request Id for which this message was delivered.
|
MessageResponse |
withResult(Map<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 String getApplicationId()
public void setApplicationId(String applicationId)
applicationId
- Application id of the message.public MessageResponse withApplicationId(String applicationId)
Returns a reference to this object so that method calls can be chained together.
applicationId
- Application id of the message.public Map<String,EndpointMessageResult> getEndpointResult()
public void setEndpointResult(Map<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(Map<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(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 String getRequestId()
public void setRequestId(String requestId)
requestId
- Original request Id for which this message was
delivered.public MessageResponse withRequestId(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 Map<String,MessageResult> getResult()
public void setResult(Map<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(Map<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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.