AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
PutActionInteractionsRequest.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/ActionInteraction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PersonalizeEvents {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZEEVENTS_API PutActionInteractionsRequest() = 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 "PutActionInteractions"; }
30
31 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetTrackingId() const { return m_trackingId; }
42 inline bool TrackingIdHasBeenSet() const { return m_trackingIdHasBeenSet; }
43 template <typename TrackingIdT = Aws::String>
44 void SetTrackingId(TrackingIdT&& value) {
45 m_trackingIdHasBeenSet = true;
46 m_trackingId = std::forward<TrackingIdT>(value);
47 }
48 template <typename TrackingIdT = Aws::String>
50 SetTrackingId(std::forward<TrackingIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<ActionInteraction>& GetActionInteractions() const { return m_actionInteractions; }
60 inline bool ActionInteractionsHasBeenSet() const { return m_actionInteractionsHasBeenSet; }
61 template <typename ActionInteractionsT = Aws::Vector<ActionInteraction>>
62 void SetActionInteractions(ActionInteractionsT&& value) {
63 m_actionInteractionsHasBeenSet = true;
64 m_actionInteractions = std::forward<ActionInteractionsT>(value);
65 }
66 template <typename ActionInteractionsT = Aws::Vector<ActionInteraction>>
68 SetActionInteractions(std::forward<ActionInteractionsT>(value));
69 return *this;
70 }
71 template <typename ActionInteractionsT = ActionInteraction>
73 m_actionInteractionsHasBeenSet = true;
74 m_actionInteractions.emplace_back(std::forward<ActionInteractionsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_trackingId;
80
81 Aws::Vector<ActionInteraction> m_actionInteractions;
82 bool m_trackingIdHasBeenSet = false;
83 bool m_actionInteractionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace PersonalizeEvents
88} // namespace Aws
PutActionInteractionsRequest & AddActionInteractions(ActionInteractionsT &&value)
AWS_PERSONALIZEEVENTS_API PutActionInteractionsRequest()=default
const Aws::Vector< ActionInteraction > & GetActionInteractions() const
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutActionInteractionsRequest & WithTrackingId(TrackingIdT &&value)
PutActionInteractionsRequest & WithActionInteractions(ActionInteractionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector