AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TrackingIdT = Aws::String>
46 void SetTrackingId(TrackingIdT&& value) { m_trackingIdHasBeenSet = true; m_trackingId = std::forward<TrackingIdT>(value); }
47 template<typename TrackingIdT = Aws::String>
48 PutEventsRequest& WithTrackingId(TrackingIdT&& value) { SetTrackingId(std::forward<TrackingIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetUserId() const { return m_userId; }
56 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
57 template<typename UserIdT = Aws::String>
58 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
59 template<typename UserIdT = Aws::String>
60 PutEventsRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
62
64
72 inline const Aws::String& GetSessionId() const { return m_sessionId; }
73 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
74 template<typename SessionIdT = Aws::String>
75 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
76 template<typename SessionIdT = Aws::String>
77 PutEventsRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Event>& GetEventList() const { return m_eventList; }
85 inline bool EventListHasBeenSet() const { return m_eventListHasBeenSet; }
86 template<typename EventListT = Aws::Vector<Event>>
87 void SetEventList(EventListT&& value) { m_eventListHasBeenSet = true; m_eventList = std::forward<EventListT>(value); }
88 template<typename EventListT = Aws::Vector<Event>>
89 PutEventsRequest& WithEventList(EventListT&& value) { SetEventList(std::forward<EventListT>(value)); return *this;}
90 template<typename EventListT = Event>
91 PutEventsRequest& AddEventList(EventListT&& value) { m_eventListHasBeenSet = true; m_eventList.emplace_back(std::forward<EventListT>(value)); return *this; }
93 private:
94
95 Aws::String m_trackingId;
96 bool m_trackingIdHasBeenSet = false;
97
98 Aws::String m_userId;
99 bool m_userIdHasBeenSet = false;
100
101 Aws::String m_sessionId;
102 bool m_sessionIdHasBeenSet = false;
103
104 Aws::Vector<Event> m_eventList;
105 bool m_eventListHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace PersonalizeEvents
110} // 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