/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 which users and endpoints a message was sent * to.

See Also:

AWS * API Reference

*/ class SendUsersMessageResponse { public: AWS_PINPOINT_API SendUsersMessageResponse(); AWS_PINPOINT_API SendUsersMessageResponse(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API SendUsersMessageResponse& 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 SendUsersMessageResponse& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

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

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

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

*/ inline SendUsersMessageResponse& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

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

The unique identifier that was assigned to the message request.

*/ inline SendUsersMessageResponse& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline const Aws::Map>& GetResult() const{ return m_result; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

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

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

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

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

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

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& WithResult(const Aws::Map>& value) { SetResult(value); return *this;} /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& WithResult(Aws::Map>&& value) { SetResult(std::move(value)); return *this;} /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& AddResult(const Aws::String& key, const Aws::Map& value) { m_resultHasBeenSet = true; m_result.emplace(key, value); return *this; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& AddResult(Aws::String&& key, const Aws::Map& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), value); return *this; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& AddResult(const Aws::String& key, Aws::Map&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); return *this; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& AddResult(Aws::String&& key, Aws::Map&& value) { m_resultHasBeenSet = true; m_result.emplace(std::move(key), std::move(value)); return *this; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

*/ inline SendUsersMessageResponse& AddResult(const char* key, Aws::Map&& value) { m_resultHasBeenSet = true; m_result.emplace(key, std::move(value)); return *this; } /** *

An object that indicates which endpoints the message was sent to, for each * user. The object lists user IDs and, for each user ID, provides the endpoint IDs * that the message was sent to. For each endpoint ID, it provides an * EndpointMessageResult object.

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