AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
45 inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
46 inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
47 inline PutActionsRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
48 inline PutActionsRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
49 inline PutActionsRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
51
53
56 inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
57 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
58 inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
59 inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
60 inline PutActionsRequest& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
61 inline PutActionsRequest& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
62 inline PutActionsRequest& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
63 inline PutActionsRequest& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
65 private:
66
67 Aws::String m_datasetArn;
68 bool m_datasetArnHasBeenSet = false;
69
70 Aws::Vector<Action> m_actions;
71 bool m_actionsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace PersonalizeEvents
76} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetActions(const Aws::Vector< Action > &value)
const Aws::Vector< Action > & GetActions() const
PutActionsRequest & AddActions(Action &&value)
PutActionsRequest & WithDatasetArn(const Aws::String &value)
AWS_PERSONALIZEEVENTS_API Aws::String SerializePayload() const override
void SetActions(Aws::Vector< Action > &&value)
PutActionsRequest & WithActions(const Aws::Vector< Action > &value)
PutActionsRequest & WithActions(Aws::Vector< Action > &&value)
AWS_PERSONALIZEEVENTS_API PutActionsRequest()
PutActionsRequest & WithDatasetArn(Aws::String &&value)
PutActionsRequest & WithDatasetArn(const char *value)
PutActionsRequest & AddActions(const Action &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector