AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventsBatch.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/PublicEndpoint.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/Event.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PINPOINT_API EventsBatch();
39 AWS_PINPOINT_API EventsBatch(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API EventsBatch& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const PublicEndpoint& GetEndpoint() const{ return m_endpoint; }
49 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
50 inline void SetEndpoint(const PublicEndpoint& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
51 inline void SetEndpoint(PublicEndpoint&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
52 inline EventsBatch& WithEndpoint(const PublicEndpoint& value) { SetEndpoint(value); return *this;}
53 inline EventsBatch& WithEndpoint(PublicEndpoint&& value) { SetEndpoint(std::move(value)); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Event>& GetEvents() const{ return m_events; }
61 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
62 inline void SetEvents(const Aws::Map<Aws::String, Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
63 inline void SetEvents(Aws::Map<Aws::String, Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
64 inline EventsBatch& WithEvents(const Aws::Map<Aws::String, Event>& value) { SetEvents(value); return *this;}
65 inline EventsBatch& WithEvents(Aws::Map<Aws::String, Event>&& value) { SetEvents(std::move(value)); return *this;}
66 inline EventsBatch& AddEvents(const Aws::String& key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
67 inline EventsBatch& AddEvents(Aws::String&& key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
68 inline EventsBatch& AddEvents(const Aws::String& key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
69 inline EventsBatch& AddEvents(Aws::String&& key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; }
70 inline EventsBatch& AddEvents(const char* key, Event&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
71 inline EventsBatch& AddEvents(const char* key, const Event& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
73 private:
74
75 PublicEndpoint m_endpoint;
76 bool m_endpointHasBeenSet = false;
77
79 bool m_eventsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Pinpoint
84} // namespace Aws
EventsBatch & AddEvents(const char *key, Event &&value)
Definition EventsBatch.h:70
const Aws::Map< Aws::String, Event > & GetEvents() const
Definition EventsBatch.h:60
EventsBatch & WithEvents(Aws::Map< Aws::String, Event > &&value)
Definition EventsBatch.h:65
AWS_PINPOINT_API EventsBatch & operator=(Aws::Utils::Json::JsonView jsonValue)
EventsBatch & WithEvents(const Aws::Map< Aws::String, Event > &value)
Definition EventsBatch.h:64
EventsBatch & AddEvents(Aws::String &&key, Event &&value)
Definition EventsBatch.h:69
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EventsBatch & AddEvents(const Aws::String &key, const Event &value)
Definition EventsBatch.h:66
const PublicEndpoint & GetEndpoint() const
Definition EventsBatch.h:48
EventsBatch & WithEndpoint(const PublicEndpoint &value)
Definition EventsBatch.h:52
EventsBatch & AddEvents(Aws::String &&key, const Event &value)
Definition EventsBatch.h:67
EventsBatch & AddEvents(const Aws::String &key, Event &&value)
Definition EventsBatch.h:68
void SetEvents(const Aws::Map< Aws::String, Event > &value)
Definition EventsBatch.h:62
void SetEvents(Aws::Map< Aws::String, Event > &&value)
Definition EventsBatch.h:63
EventsBatch & WithEndpoint(PublicEndpoint &&value)
Definition EventsBatch.h:53
AWS_PINPOINT_API EventsBatch(Aws::Utils::Json::JsonView jsonValue)
EventsBatch & AddEvents(const char *key, const Event &value)
Definition EventsBatch.h:71
void SetEndpoint(PublicEndpoint &&value)
Definition EventsBatch.h:51
void SetEndpoint(const PublicEndpoint &value)
Definition EventsBatch.h:50
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue