AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize-events/PersonalizeEvents_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PersonalizeEvents {
20namespace Model {
21
30class Action {
31 public:
32 AWS_PERSONALIZEEVENTS_API Action() = default;
33 AWS_PERSONALIZEEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PERSONALIZEEVENTS_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetActionId() const { return m_actionId; }
42 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
43 template <typename ActionIdT = Aws::String>
44 void SetActionId(ActionIdT&& value) {
45 m_actionIdHasBeenSet = true;
46 m_actionId = std::forward<ActionIdT>(value);
47 }
48 template <typename ActionIdT = Aws::String>
49 Action& WithActionId(ActionIdT&& value) {
50 SetActionId(std::forward<ActionIdT>(value));
51 return *this;
52 }
54
56
65 inline const Aws::String& GetProperties() const { return m_properties; }
66 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
67 template <typename PropertiesT = Aws::String>
68 void SetProperties(PropertiesT&& value) {
69 m_propertiesHasBeenSet = true;
70 m_properties = std::forward<PropertiesT>(value);
71 }
72 template <typename PropertiesT = Aws::String>
73 Action& WithProperties(PropertiesT&& value) {
74 SetProperties(std::forward<PropertiesT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_actionId;
80
81 Aws::String m_properties;
82 bool m_actionIdHasBeenSet = false;
83 bool m_propertiesHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace PersonalizeEvents
88} // namespace Aws
void SetActionId(ActionIdT &&value)
Definition Action.h:44
const Aws::String & GetActionId() const
Definition Action.h:41
Action & WithActionId(ActionIdT &&value)
Definition Action.h:49
AWS_PERSONALIZEEVENTS_API Action(Aws::Utils::Json::JsonView jsonValue)
Action & WithProperties(PropertiesT &&value)
Definition Action.h:73
const Aws::String & GetProperties() const
Definition Action.h:65
void SetProperties(PropertiesT &&value)
Definition Action.h:68
AWS_PERSONALIZEEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PERSONALIZEEVENTS_API Action()=default
AWS_PERSONALIZEEVENTS_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue