/** * 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 create or update an * endpoint that's associated with an event.

See Also:

AWS * API Reference

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

The response that was received after the endpoint data was accepted.

*/ inline const EndpointItemResponse& GetEndpointItemResponse() const{ return m_endpointItemResponse; } /** *

The response that was received after the endpoint data was accepted.

*/ inline bool EndpointItemResponseHasBeenSet() const { return m_endpointItemResponseHasBeenSet; } /** *

The response that was received after the endpoint data was accepted.

*/ inline void SetEndpointItemResponse(const EndpointItemResponse& value) { m_endpointItemResponseHasBeenSet = true; m_endpointItemResponse = value; } /** *

The response that was received after the endpoint data was accepted.

*/ inline void SetEndpointItemResponse(EndpointItemResponse&& value) { m_endpointItemResponseHasBeenSet = true; m_endpointItemResponse = std::move(value); } /** *

The response that was received after the endpoint data was accepted.

*/ inline ItemResponse& WithEndpointItemResponse(const EndpointItemResponse& value) { SetEndpointItemResponse(value); return *this;} /** *

The response that was received after the endpoint data was accepted.

*/ inline ItemResponse& WithEndpointItemResponse(EndpointItemResponse&& value) { SetEndpointItemResponse(std::move(value)); return *this;} /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline const Aws::Map& GetEventsItemResponse() const{ return m_eventsItemResponse; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline bool EventsItemResponseHasBeenSet() const { return m_eventsItemResponseHasBeenSet; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline void SetEventsItemResponse(const Aws::Map& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse = value; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline void SetEventsItemResponse(Aws::Map&& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse = std::move(value); } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& WithEventsItemResponse(const Aws::Map& value) { SetEventsItemResponse(value); return *this;} /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& WithEventsItemResponse(Aws::Map&& value) { SetEventsItemResponse(std::move(value)); return *this;} /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(const Aws::String& key, const EventItemResponse& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(key, value); return *this; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(Aws::String&& key, const EventItemResponse& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(std::move(key), value); return *this; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(const Aws::String& key, EventItemResponse&& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(key, std::move(value)); return *this; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(Aws::String&& key, EventItemResponse&& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(std::move(key), std::move(value)); return *this; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(const char* key, EventItemResponse&& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(key, std::move(value)); return *this; } /** *

A multipart response object that contains a key and a value for each event in * the request. In each object, the event ID is the key and an EventItemResponse * object is the value.

*/ inline ItemResponse& AddEventsItemResponse(const char* key, const EventItemResponse& value) { m_eventsItemResponseHasBeenSet = true; m_eventsItemResponse.emplace(key, value); return *this; } private: EndpointItemResponse m_endpointItemResponse; bool m_endpointItemResponseHasBeenSet = false; Aws::Map m_eventsItemResponse; bool m_eventsItemResponseHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws