AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutActionsRequest.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/Action.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PersonalizeEvents
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZEEVENTS_API PutActionsRequest() = 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 "PutActions"; }
33
34 AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
43 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
44 template<typename DatasetArnT = Aws::String>
45 void SetDatasetArn(DatasetArnT&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::forward<DatasetArnT>(value); }
46 template<typename DatasetArnT = Aws::String>
47 PutActionsRequest& WithDatasetArn(DatasetArnT&& value) { SetDatasetArn(std::forward<DatasetArnT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Action>& GetActions() const { return m_actions; }
55 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
56 template<typename ActionsT = Aws::Vector<Action>>
57 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
58 template<typename ActionsT = Aws::Vector<Action>>
59 PutActionsRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
60 template<typename ActionsT = Action>
61 PutActionsRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
63 private:
64
65 Aws::String m_datasetArn;
66 bool m_datasetArnHasBeenSet = false;
67
68 Aws::Vector<Action> m_actions;
69 bool m_actionsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace PersonalizeEvents
74} // 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