/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpoint.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides information about the results of a request to send a message to an endpoint address. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MessageResponse implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier for the application that was used to send the message. *
*/ private String applicationId; /** ** 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. *
*/ private java.util.Map* The identifier for the original request that the message was delivered for. *
*/ private String requestId; /** ** 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. *
*/ private java.util.Map* The unique identifier for the application that was used to send the message. *
* * @param applicationId * The unique identifier for the application that was used to send the message. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** ** The unique identifier for the application that was used to send the message. *
* * @return The unique identifier for the application that was used to send the message. */ public String getApplicationId() { return this.applicationId; } /** ** The unique identifier for the application that was used to send the message. *
* * @param applicationId * The unique identifier for the application that was used to send the message. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageResponse withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** ** 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. *
* * @return 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 java.util.Map* 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. *
* * @param 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 void setEndpointResult(java.util.Map* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageResponse withEndpointResult(java.util.Map* The identifier for the original request that the message was delivered for. *
* * @param requestId * The identifier for the original request that the message was delivered for. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** ** The identifier for the original request that the message was delivered for. *
* * @return The identifier for the original request that the message was delivered for. */ public String getRequestId() { return this.requestId; } /** ** The identifier for the original request that the message was delivered for. *
* * @param requestId * The identifier for the original request that the message was delivered for. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageResponse withRequestId(String requestId) { setRequestId(requestId); return this; } /** ** 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. *
* * @return 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 java.util.Map* 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. *
* * @param 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 void setResult(java.util.Map* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public MessageResponse withResult(java.util.Map