/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Provides information about the results of a request to send a message to an * endpoint address.

See Also:

AWS * API Reference

*/ class MessageResponse { public: AWS_PINPOINT_API MessageResponse(); AWS_PINPOINT_API MessageResponse(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API MessageResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier for the application that was used to send the * message.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The unique identifier for the application that was used to send the * message.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The unique identifier for the application that was used to send the * message.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The unique identifier for the application that was used to send the * message.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The unique identifier for the application that was used to send the * message.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The unique identifier for the application that was used to send the * message.

*/ inline MessageResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The unique identifier for the application that was used to send the * message.

*/ inline MessageResponse& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The unique identifier for the application that was used to send the * message.

*/ inline MessageResponse& WithApplicationId(const char* value) { SetApplicationId(value); 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.

*/ inline const Aws::Map& GetEndpointResult() const{ return m_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.

*/ inline bool EndpointResultHasBeenSet() const { return m_endpointResultHasBeenSet; } /** *

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.

*/ inline void SetEndpointResult(const Aws::Map& value) { m_endpointResultHasBeenSet = true; m_endpointResult = value; } /** *

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.

*/ inline void SetEndpointResult(Aws::Map&& value) { m_endpointResultHasBeenSet = true; m_endpointResult = std::move(value); } /** *

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.

*/ inline MessageResponse& WithEndpointResult(const Aws::Map& value) { SetEndpointResult(value); 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.

*/ inline MessageResponse& WithEndpointResult(Aws::Map&& value) { SetEndpointResult(std::move(value)); 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.

*/ inline MessageResponse& AddEndpointResult(const Aws::String& key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, value); 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.

*/ inline MessageResponse& AddEndpointResult(Aws::String&& key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(std::move(key), value); 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.

*/ inline MessageResponse& AddEndpointResult(const Aws::String& key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, std::move(value)); 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.

*/ inline MessageResponse& AddEndpointResult(Aws::String&& key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(std::move(key), std::move(value)); 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.

*/ inline MessageResponse& AddEndpointResult(const char* key, EndpointMessageResult&& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, std::move(value)); 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.

*/ inline MessageResponse& AddEndpointResult(const char* key, const EndpointMessageResult& value) { m_endpointResultHasBeenSet = true; m_endpointResult.emplace(key, value); return *this; } /** *

The identifier for the original request that the message was delivered * for.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The identifier for the original request that the message was delivered * for.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

The identifier for the original request that the message was delivered * for.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

The identifier for the original request that the message was delivered * for.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

The identifier for the original request that the message was delivered * for.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

The identifier for the original request that the message was delivered * for.

*/ inline MessageResponse& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The identifier for the original request that the message was delivered * for.

*/ inline MessageResponse& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The identifier for the original request that the message was delivered * for.

*/ inline MessageResponse& WithRequestId(const char* value) { SetRequestId(value); 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.

*/ inline const Aws::Map& GetResult() const{ return m_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.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

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.

*/ inline void SetResult(const Aws::Map& value) { m_resultHasBeenSet = true; m_result = value; } /** *

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.

*/ inline void SetResult(Aws::Map&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

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.

*/ inline MessageResponse& WithResult(const Aws::Map& value) { SetResult(value); 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.

*/ inline MessageResponse& WithResult(Aws::Map&& value) { SetResult(std::move(value)); 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.

*/ inline MessageResponse& AddResult(const Aws::String& key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(key, value); 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.

*/ inline MessageResponse& AddResult(Aws::String&& key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), value); 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.

*/ inline MessageResponse& AddResult(const Aws::String& key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); 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.

*/ inline MessageResponse& AddResult(Aws::String&& key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), std::move(value)); 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.

*/ inline MessageResponse& AddResult(const char* key, MessageResult&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); 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.

*/ inline MessageResponse& AddResult(const char* key, const MessageResult& value) { m_resultHasBeenSet = true; m_result.emplace(key, value); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::Map m_endpointResult; bool m_endpointResultHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::Map m_result; bool m_resultHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws