AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutActionInteractionsRequest.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/ActionInteraction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZEEVENTS_API PutActionInteractionsRequest();
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 "PutActionInteractions"; }
33
34 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetTrackingId() const{ return m_trackingId; }
46 inline bool TrackingIdHasBeenSet() const { return m_trackingIdHasBeenSet; }
47 inline void SetTrackingId(const Aws::String& value) { m_trackingIdHasBeenSet = true; m_trackingId = value; }
48 inline void SetTrackingId(Aws::String&& value) { m_trackingIdHasBeenSet = true; m_trackingId = std::move(value); }
49 inline void SetTrackingId(const char* value) { m_trackingIdHasBeenSet = true; m_trackingId.assign(value); }
50 inline PutActionInteractionsRequest& WithTrackingId(const Aws::String& value) { SetTrackingId(value); return *this;}
51 inline PutActionInteractionsRequest& WithTrackingId(Aws::String&& value) { SetTrackingId(std::move(value)); return *this;}
52 inline PutActionInteractionsRequest& WithTrackingId(const char* value) { SetTrackingId(value); return *this;}
54
56
59 inline const Aws::Vector<ActionInteraction>& GetActionInteractions() const{ return m_actionInteractions; }
60 inline bool ActionInteractionsHasBeenSet() const { return m_actionInteractionsHasBeenSet; }
61 inline void SetActionInteractions(const Aws::Vector<ActionInteraction>& value) { m_actionInteractionsHasBeenSet = true; m_actionInteractions = value; }
62 inline void SetActionInteractions(Aws::Vector<ActionInteraction>&& value) { m_actionInteractionsHasBeenSet = true; m_actionInteractions = std::move(value); }
65 inline PutActionInteractionsRequest& AddActionInteractions(const ActionInteraction& value) { m_actionInteractionsHasBeenSet = true; m_actionInteractions.push_back(value); return *this; }
66 inline PutActionInteractionsRequest& AddActionInteractions(ActionInteraction&& value) { m_actionInteractionsHasBeenSet = true; m_actionInteractions.push_back(std::move(value)); return *this; }
68 private:
69
70 Aws::String m_trackingId;
71 bool m_trackingIdHasBeenSet = false;
72
73 Aws::Vector<ActionInteraction> m_actionInteractions;
74 bool m_actionInteractionsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace PersonalizeEvents
79} // namespace Aws
void SetActionInteractions(Aws::Vector< ActionInteraction > &&value)
PutActionInteractionsRequest & AddActionInteractions(ActionInteraction &&value)
const Aws::Vector< ActionInteraction > & GetActionInteractions() const
PutActionInteractionsRequest & WithTrackingId(Aws::String &&value)
void SetActionInteractions(const Aws::Vector< ActionInteraction > &value)
PutActionInteractionsRequest & AddActionInteractions(const ActionInteraction &value)
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutActionInteractionsRequest & WithActionInteractions(Aws::Vector< ActionInteraction > &&value)
PutActionInteractionsRequest & WithActionInteractions(const Aws::Vector< ActionInteraction > &value)
PutActionInteractionsRequest & WithTrackingId(const char *value)
PutActionInteractionsRequest & WithTrackingId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector