AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
VisualCustomAction.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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/VisualCustomActionOperation.h>
11#include <aws/quicksight/model/VisualCustomActionTrigger.h>
12#include <aws/quicksight/model/WidgetStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
32 public:
33 AWS_QUICKSIGHT_API VisualCustomAction() = default;
34 AWS_QUICKSIGHT_API VisualCustomAction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCustomActionId() const { return m_customActionId; }
43 inline bool CustomActionIdHasBeenSet() const { return m_customActionIdHasBeenSet; }
44 template <typename CustomActionIdT = Aws::String>
45 void SetCustomActionId(CustomActionIdT&& value) {
46 m_customActionIdHasBeenSet = true;
47 m_customActionId = std::forward<CustomActionIdT>(value);
48 }
49 template <typename CustomActionIdT = Aws::String>
50 VisualCustomAction& WithCustomActionId(CustomActionIdT&& value) {
51 SetCustomActionId(std::forward<CustomActionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 VisualCustomAction& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline WidgetStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(WidgetStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
98 inline VisualCustomActionTrigger GetTrigger() const { return m_trigger; }
99 inline bool TriggerHasBeenSet() const { return m_triggerHasBeenSet; }
101 m_triggerHasBeenSet = true;
102 m_trigger = value;
103 }
105 SetTrigger(value);
106 return *this;
107 }
109
111
116 inline const Aws::Vector<VisualCustomActionOperation>& GetActionOperations() const { return m_actionOperations; }
117 inline bool ActionOperationsHasBeenSet() const { return m_actionOperationsHasBeenSet; }
118 template <typename ActionOperationsT = Aws::Vector<VisualCustomActionOperation>>
119 void SetActionOperations(ActionOperationsT&& value) {
120 m_actionOperationsHasBeenSet = true;
121 m_actionOperations = std::forward<ActionOperationsT>(value);
122 }
123 template <typename ActionOperationsT = Aws::Vector<VisualCustomActionOperation>>
124 VisualCustomAction& WithActionOperations(ActionOperationsT&& value) {
125 SetActionOperations(std::forward<ActionOperationsT>(value));
126 return *this;
127 }
128 template <typename ActionOperationsT = VisualCustomActionOperation>
129 VisualCustomAction& AddActionOperations(ActionOperationsT&& value) {
130 m_actionOperationsHasBeenSet = true;
131 m_actionOperations.emplace_back(std::forward<ActionOperationsT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_customActionId;
137
138 Aws::String m_name;
139
141
143
145 bool m_customActionIdHasBeenSet = false;
146 bool m_nameHasBeenSet = false;
147 bool m_statusHasBeenSet = false;
148 bool m_triggerHasBeenSet = false;
149 bool m_actionOperationsHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace QuickSight
154} // namespace Aws
const Aws::String & GetCustomActionId() const
VisualCustomAction & WithActionOperations(ActionOperationsT &&value)
VisualCustomAction & WithStatus(WidgetStatus value)
AWS_QUICKSIGHT_API VisualCustomAction(Aws::Utils::Json::JsonView jsonValue)
void SetActionOperations(ActionOperationsT &&value)
VisualCustomActionTrigger GetTrigger() const
AWS_QUICKSIGHT_API VisualCustomAction & operator=(Aws::Utils::Json::JsonView jsonValue)
VisualCustomAction & AddActionOperations(ActionOperationsT &&value)
const Aws::Vector< VisualCustomActionOperation > & GetActionOperations() const
void SetTrigger(VisualCustomActionTrigger value)
VisualCustomAction & WithCustomActionId(CustomActionIdT &&value)
VisualCustomAction & WithName(NameT &&value)
AWS_QUICKSIGHT_API VisualCustomAction()=default
void SetCustomActionId(CustomActionIdT &&value)
VisualCustomAction & WithTrigger(VisualCustomActionTrigger value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue