AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
PutActionsRequest.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/Action.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PersonalizeEvents {
17namespace Model {
18
22 public:
23 AWS_PERSONALIZEEVENTS_API PutActionsRequest() = 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 "PutActions"; }
30
31 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
39 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
40 template <typename DatasetArnT = Aws::String>
41 void SetDatasetArn(DatasetArnT&& value) {
42 m_datasetArnHasBeenSet = true;
43 m_datasetArn = std::forward<DatasetArnT>(value);
44 }
45 template <typename DatasetArnT = Aws::String>
46 PutActionsRequest& WithDatasetArn(DatasetArnT&& value) {
47 SetDatasetArn(std::forward<DatasetArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
57 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
58 template <typename ActionsT = Aws::Vector<Action>>
59 void SetActions(ActionsT&& value) {
60 m_actionsHasBeenSet = true;
61 m_actions = std::forward<ActionsT>(value);
62 }
63 template <typename ActionsT = Aws::Vector<Action>>
64 PutActionsRequest& WithActions(ActionsT&& value) {
65 SetActions(std::forward<ActionsT>(value));
66 return *this;
67 }
68 template <typename ActionsT = Action>
69 PutActionsRequest& AddActions(ActionsT&& value) {
70 m_actionsHasBeenSet = true;
71 m_actions.emplace_back(std::forward<ActionsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_datasetArn;
77
78 Aws::Vector<Action> m_actions;
79 bool m_datasetArnHasBeenSet = false;
80 bool m_actionsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace PersonalizeEvents
85} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Action > & GetActions() const
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
PutActionsRequest & WithActions(ActionsT &&value)
PutActionsRequest & AddActions(ActionsT &&value)
PutActionsRequest & WithDatasetArn(DatasetArnT &&value)
AWS_PERSONALIZEEVENTS_API PutActionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector