AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutEventsRequest.h
1
6#pragma once
7#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
8#include <aws/personalize-events/PersonalizeEventsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/personalize-events/model/Event.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZEEVENTS_API PutEventsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutEvents"; }
33
34 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetTrackingId() const{ return m_trackingId; }
44 inline bool TrackingIdHasBeenSet() const { return m_trackingIdHasBeenSet; }
45 inline void SetTrackingId(const Aws::String& value) { m_trackingIdHasBeenSet = true; m_trackingId = value; }
46 inline void SetTrackingId(Aws::String&& value) { m_trackingIdHasBeenSet = true; m_trackingId = std::move(value); }
47 inline void SetTrackingId(const char* value) { m_trackingIdHasBeenSet = true; m_trackingId.assign(value); }
48 inline PutEventsRequest& WithTrackingId(const Aws::String& value) { SetTrackingId(value); return *this;}
49 inline PutEventsRequest& WithTrackingId(Aws::String&& value) { SetTrackingId(std::move(value)); return *this;}
50 inline PutEventsRequest& WithTrackingId(const char* value) { SetTrackingId(value); return *this;}
52
54
57 inline const Aws::String& GetUserId() const{ return m_userId; }
58 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
59 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
60 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
61 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
62 inline PutEventsRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
63 inline PutEventsRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
64 inline PutEventsRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
66
68
76 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
77 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
78 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
79 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
80 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
81 inline PutEventsRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
82 inline PutEventsRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
83 inline PutEventsRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;}
85
87
90 inline const Aws::Vector<Event>& GetEventList() const{ return m_eventList; }
91 inline bool EventListHasBeenSet() const { return m_eventListHasBeenSet; }
92 inline void SetEventList(const Aws::Vector<Event>& value) { m_eventListHasBeenSet = true; m_eventList = value; }
93 inline void SetEventList(Aws::Vector<Event>&& value) { m_eventListHasBeenSet = true; m_eventList = std::move(value); }
94 inline PutEventsRequest& WithEventList(const Aws::Vector<Event>& value) { SetEventList(value); return *this;}
95 inline PutEventsRequest& WithEventList(Aws::Vector<Event>&& value) { SetEventList(std::move(value)); return *this;}
96 inline PutEventsRequest& AddEventList(const Event& value) { m_eventListHasBeenSet = true; m_eventList.push_back(value); return *this; }
97 inline PutEventsRequest& AddEventList(Event&& value) { m_eventListHasBeenSet = true; m_eventList.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_trackingId;
102 bool m_trackingIdHasBeenSet = false;
103
104 Aws::String m_userId;
105 bool m_userIdHasBeenSet = false;
106
107 Aws::String m_sessionId;
108 bool m_sessionIdHasBeenSet = false;
109
110 Aws::Vector<Event> m_eventList;
111 bool m_eventListHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace PersonalizeEvents
116} // namespace Aws
PutEventsRequest & WithUserId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutEventsRequest & WithEventList(const Aws::Vector< Event > &value)
PutEventsRequest & WithEventList(Aws::Vector< Event > &&value)
void SetEventList(const Aws::Vector< Event > &value)
AWS_PERSONALIZEEVENTS_API PutEventsRequest()
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutEventsRequest & WithTrackingId(const char *value)
PutEventsRequest & AddEventList(const Event &value)
PutEventsRequest & WithUserId(Aws::String &&value)
void SetEventList(Aws::Vector< Event > &&value)
PutEventsRequest & WithSessionId(const Aws::String &value)
PutEventsRequest & WithSessionId(const char *value)
PutEventsRequest & WithTrackingId(const Aws::String &value)
PutEventsRequest & AddEventList(Event &&value)
const Aws::Vector< Event > & GetEventList() const
PutEventsRequest & WithUserId(const char *value)
PutEventsRequest & WithTrackingId(Aws::String &&value)
PutEventsRequest & WithSessionId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector