/** * 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 endpoints and the events that they're associated * with.

See Also:

AWS * API Reference

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

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline const Aws::Map& GetResults() const{ return m_results; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline void SetResults(const Aws::Map& value) { m_resultsHasBeenSet = true; m_results = value; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline void SetResults(Aws::Map&& value) { m_resultsHasBeenSet = true; m_results = std::move(value); } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& WithResults(const Aws::Map& value) { SetResults(value); return *this;} /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& WithResults(Aws::Map&& value) { SetResults(std::move(value)); return *this;} /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(const Aws::String& key, const ItemResponse& value) { m_resultsHasBeenSet = true; m_results.emplace(key, value); return *this; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(Aws::String&& key, const ItemResponse& value) { m_resultsHasBeenSet = true; m_results.emplace(std::move(key), value); return *this; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(const Aws::String& key, ItemResponse&& value) { m_resultsHasBeenSet = true; m_results.emplace(key, std::move(value)); return *this; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(Aws::String&& key, ItemResponse&& value) { m_resultsHasBeenSet = true; m_results.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(const char* key, ItemResponse&& value) { m_resultsHasBeenSet = true; m_results.emplace(key, std::move(value)); return *this; } /** *

A map that contains a multipart response for each endpoint. For each item in * this object, the endpoint ID is the key and the item response is the value. If * no item response exists, the value can also be one of the following: 202, the * request was processed successfully; or 400, the payload wasn't valid or required * fields were missing.

*/ inline EventsResponse& AddResults(const char* key, const ItemResponse& value) { m_resultsHasBeenSet = true; m_results.emplace(key, value); return *this; } private: Aws::Map m_results; bool m_resultsHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws