@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MessageResponse extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the results of a request to send a message to an endpoint address.
Constructor and Description |
---|
MessageResponse() |
Modifier and Type | Method and Description |
---|---|
MessageResponse |
addEndpointResultEntry(String key,
EndpointMessageResult value) |
MessageResponse |
addResultEntry(String key,
MessageResult value) |
MessageResponse |
clearEndpointResultEntries()
Removes all the entries added into EndpointResult.
|
MessageResponse |
clearResultEntries()
Removes all the entries added into Result.
|
MessageResponse |
clone() |
boolean |
equals(Object obj) |
String |
getApplicationId()
The unique identifier for the application that was used to send the message.
|
Map<String,EndpointMessageResult> |
getEndpointResult()
A map that contains a multipart response for each address that the message was sent to.
|
String |
getRequestId()
The identifier for the original request that the message was delivered for.
|
Map<String,MessageResult> |
getResult()
A map that contains a multipart response for each address (email address, phone number, or push notification
token) that the message was sent to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setApplicationId(String applicationId)
The unique identifier for the application that was used to send the message.
|
void |
setEndpointResult(Map<String,EndpointMessageResult> endpointResult)
A map that contains a multipart response for each address that the message was sent to.
|
void |
setRequestId(String requestId)
The identifier for the original request that the message was delivered for.
|
void |
setResult(Map<String,MessageResult> result)
A map that contains a multipart response for each address (email address, phone number, or push notification
token) that the message was sent to.
|
String |
toString()
Returns a string representation of this object.
|
MessageResponse |
withApplicationId(String applicationId)
The unique identifier for the application that was used to send the message.
|
MessageResponse |
withEndpointResult(Map<String,EndpointMessageResult> endpointResult)
A map that contains a multipart response for each address that the message was sent to.
|
MessageResponse |
withRequestId(String requestId)
The identifier for the original request that the message was delivered for.
|
MessageResponse |
withResult(Map<String,MessageResult> result)
A map that contains a multipart response for each address (email address, phone number, or push notification
token) that the message was sent to.
|
public void setApplicationId(String applicationId)
The unique identifier for the application that was used to send the message.
applicationId
- The unique identifier for the application that was used to send the message.public String getApplicationId()
The unique identifier for the application that was used to send the message.
public MessageResponse withApplicationId(String applicationId)
The unique identifier for the application that was used to send the message.
applicationId
- The unique identifier for the application that was used to send the message.public Map<String,EndpointMessageResult> getEndpointResult()
A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.
public void setEndpointResult(Map<String,EndpointMessageResult> endpointResult)
A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.
endpointResult
- A map that contains a multipart response for each address that the message was sent to. In the map, the
endpoint ID is the key and the result is the value.public MessageResponse withEndpointResult(Map<String,EndpointMessageResult> endpointResult)
A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.
endpointResult
- A map that contains a multipart response for each address that the message was sent to. In the map, the
endpoint ID is the key and the result is the value.public MessageResponse addEndpointResultEntry(String key, EndpointMessageResult value)
public MessageResponse clearEndpointResultEntries()
public void setRequestId(String requestId)
The identifier for the original request that the message was delivered for.
requestId
- The identifier for the original request that the message was delivered for.public String getRequestId()
The identifier for the original request that the message was delivered for.
public MessageResponse withRequestId(String requestId)
The identifier for the original request that the message was delivered for.
requestId
- The identifier for the original request that the message was delivered for.public Map<String,MessageResult> getResult()
A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.
public void setResult(Map<String,MessageResult> result)
A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.
result
- A map that contains a multipart response for each address (email address, phone number, or push
notification token) that the message was sent to. In the map, the address is the key and the result is the
value.public MessageResponse withResult(Map<String,MessageResult> result)
A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.
result
- A map that contains a multipart response for each address (email address, phone number, or push
notification token) that the message was sent to. In the map, the address is the key and the result is the
value.public MessageResponse addResultEntry(String key, MessageResult value)
public MessageResponse clearResultEntries()
public String toString()
toString
in class Object
Object.toString()
public MessageResponse clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.