/** * 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 { /** *

Specifies a batch of endpoints and events to process.

See * Also:

AWS * API Reference

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

A set of properties and attributes that are associated with the endpoint.

*/ inline const PublicEndpoint& GetEndpoint() const{ return m_endpoint; } /** *

A set of properties and attributes that are associated with the endpoint.

*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *

A set of properties and attributes that are associated with the endpoint.

*/ inline void SetEndpoint(const PublicEndpoint& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *

A set of properties and attributes that are associated with the endpoint.

*/ inline void SetEndpoint(PublicEndpoint&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *

A set of properties and attributes that are associated with the endpoint.

*/ inline EventsBatch& WithEndpoint(const PublicEndpoint& value) { SetEndpoint(value); return *this;} /** *

A set of properties and attributes that are associated with the endpoint.

*/ inline EventsBatch& WithEndpoint(PublicEndpoint&& value) { SetEndpoint(std::move(value)); return *this;} /** *

A set of properties that are associated with the event.

*/ inline const Aws::Map& GetEvents() const{ return m_events; } /** *

A set of properties that are associated with the event.

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

A set of properties that are associated with the event.

*/ inline void SetEvents(const Aws::Map& value) { m_eventsHasBeenSet = true; m_events = value; } /** *

A set of properties that are associated with the event.

*/ inline void SetEvents(Aws::Map&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& WithEvents(const Aws::Map& value) { SetEvents(value); return *this;} /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& WithEvents(Aws::Map&& value) { SetEvents(std::move(value)); return *this;} /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(const Aws::String& key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(Aws::String&& key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(const Aws::String& key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(Aws::String&& key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(const char* key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; } /** *

A set of properties that are associated with the event.

*/ inline EventsBatch& AddEvents(const char* key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; } private: PublicEndpoint m_endpoint; bool m_endpointHasBeenSet = false; Aws::Map m_events; bool m_eventsHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws