AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
PutEventsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/personalize-events/PersonalizeEventsRequest.h>
10#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
11#include <aws/personalize-events/model/Event.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PersonalizeEvents {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZEEVENTS_API PutEventsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutEvents"; }
30
31 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetTrackingId() const { return m_trackingId; }
40 inline bool TrackingIdHasBeenSet() const { return m_trackingIdHasBeenSet; }
41 template <typename TrackingIdT = Aws::String>
42 void SetTrackingId(TrackingIdT&& value) {
43 m_trackingIdHasBeenSet = true;
44 m_trackingId = std::forward<TrackingIdT>(value);
45 }
46 template <typename TrackingIdT = Aws::String>
47 PutEventsRequest& WithTrackingId(TrackingIdT&& value) {
48 SetTrackingId(std::forward<TrackingIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUserId() const { return m_userId; }
58 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
59 template <typename UserIdT = Aws::String>
60 void SetUserId(UserIdT&& value) {
61 m_userIdHasBeenSet = true;
62 m_userId = std::forward<UserIdT>(value);
63 }
64 template <typename UserIdT = Aws::String>
65 PutEventsRequest& WithUserId(UserIdT&& value) {
66 SetUserId(std::forward<UserIdT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::String& GetSessionId() const { return m_sessionId; }
81 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
82 template <typename SessionIdT = Aws::String>
83 void SetSessionId(SessionIdT&& value) {
84 m_sessionIdHasBeenSet = true;
85 m_sessionId = std::forward<SessionIdT>(value);
86 }
87 template <typename SessionIdT = Aws::String>
88 PutEventsRequest& WithSessionId(SessionIdT&& value) {
89 SetSessionId(std::forward<SessionIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Vector<Event>& GetEventList() const { return m_eventList; }
99 inline bool EventListHasBeenSet() const { return m_eventListHasBeenSet; }
100 template <typename EventListT = Aws::Vector<Event>>
101 void SetEventList(EventListT&& value) {
102 m_eventListHasBeenSet = true;
103 m_eventList = std::forward<EventListT>(value);
104 }
105 template <typename EventListT = Aws::Vector<Event>>
106 PutEventsRequest& WithEventList(EventListT&& value) {
107 SetEventList(std::forward<EventListT>(value));
108 return *this;
109 }
110 template <typename EventListT = Event>
111 PutEventsRequest& AddEventList(EventListT&& value) {
112 m_eventListHasBeenSet = true;
113 m_eventList.emplace_back(std::forward<EventListT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_trackingId;
119 bool m_trackingIdHasBeenSet = false;
120
121 Aws::String m_userId;
122 bool m_userIdHasBeenSet = false;
123
124 Aws::String m_sessionId;
125 bool m_sessionIdHasBeenSet = false;
126
127 Aws::Vector<Event> m_eventList;
128 bool m_eventListHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace PersonalizeEvents
133} // namespace Aws
virtual const char * GetServiceRequestName() const override
PutEventsRequest & WithSessionId(SessionIdT &&value)
PutEventsRequest & WithTrackingId(TrackingIdT &&value)
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutEventsRequest & WithEventList(EventListT &&value)
PutEventsRequest & AddEventList(EventListT &&value)
PutEventsRequest & WithUserId(UserIdT &&value)
AWS_PERSONALIZEEVENTS_API PutEventsRequest()=default
const Aws::Vector< Event > & GetEventList() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector