AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ActionParameters.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/ComponentProperty.h>
9#include <aws/amplifyuibuilder/model/MutationActionSetStateParameter.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyUIBuilder {
23namespace Model {
24
35 public:
36 AWS_AMPLIFYUIBUILDER_API ActionParameters() = default;
37 AWS_AMPLIFYUIBUILDER_API ActionParameters(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API ActionParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const ComponentProperty& GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 template <typename TypeT = ComponentProperty>
49 void SetType(TypeT&& value) {
50 m_typeHasBeenSet = true;
51 m_type = std::forward<TypeT>(value);
52 }
53 template <typename TypeT = ComponentProperty>
54 ActionParameters& WithType(TypeT&& value) {
55 SetType(std::forward<TypeT>(value));
56 return *this;
57 }
59
61
65 inline const ComponentProperty& GetUrl() const { return m_url; }
66 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
67 template <typename UrlT = ComponentProperty>
68 void SetUrl(UrlT&& value) {
69 m_urlHasBeenSet = true;
70 m_url = std::forward<UrlT>(value);
71 }
72 template <typename UrlT = ComponentProperty>
73 ActionParameters& WithUrl(UrlT&& value) {
74 SetUrl(std::forward<UrlT>(value));
75 return *this;
76 }
78
80
84 inline const ComponentProperty& GetAnchor() const { return m_anchor; }
85 inline bool AnchorHasBeenSet() const { return m_anchorHasBeenSet; }
86 template <typename AnchorT = ComponentProperty>
87 void SetAnchor(AnchorT&& value) {
88 m_anchorHasBeenSet = true;
89 m_anchor = std::forward<AnchorT>(value);
90 }
91 template <typename AnchorT = ComponentProperty>
92 ActionParameters& WithAnchor(AnchorT&& value) {
93 SetAnchor(std::forward<AnchorT>(value));
94 return *this;
95 }
97
99
102 inline const ComponentProperty& GetTarget() const { return m_target; }
103 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
104 template <typename TargetT = ComponentProperty>
105 void SetTarget(TargetT&& value) {
106 m_targetHasBeenSet = true;
107 m_target = std::forward<TargetT>(value);
108 }
109 template <typename TargetT = ComponentProperty>
110 ActionParameters& WithTarget(TargetT&& value) {
111 SetTarget(std::forward<TargetT>(value));
112 return *this;
113 }
115
117
121 inline const ComponentProperty& GetGlobal() const { return m_global; }
122 inline bool GlobalHasBeenSet() const { return m_globalHasBeenSet; }
123 template <typename GlobalT = ComponentProperty>
124 void SetGlobal(GlobalT&& value) {
125 m_globalHasBeenSet = true;
126 m_global = std::forward<GlobalT>(value);
127 }
128 template <typename GlobalT = ComponentProperty>
129 ActionParameters& WithGlobal(GlobalT&& value) {
130 SetGlobal(std::forward<GlobalT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetModel() const { return m_model; }
141 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
142 template <typename ModelT = Aws::String>
143 void SetModel(ModelT&& value) {
144 m_modelHasBeenSet = true;
145 m_model = std::forward<ModelT>(value);
146 }
147 template <typename ModelT = Aws::String>
148 ActionParameters& WithModel(ModelT&& value) {
149 SetModel(std::forward<ModelT>(value));
150 return *this;
151 }
153
155
159 inline const ComponentProperty& GetId() const { return m_id; }
160 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
161 template <typename IdT = ComponentProperty>
162 void SetId(IdT&& value) {
163 m_idHasBeenSet = true;
164 m_id = std::forward<IdT>(value);
165 }
166 template <typename IdT = ComponentProperty>
167 ActionParameters& WithId(IdT&& value) {
168 SetId(std::forward<IdT>(value));
169 return *this;
170 }
172
174
179 inline const Aws::Map<Aws::String, ComponentProperty>& GetFields() const { return m_fields; }
180 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
181 template <typename FieldsT = Aws::Map<Aws::String, ComponentProperty>>
182 void SetFields(FieldsT&& value) {
183 m_fieldsHasBeenSet = true;
184 m_fields = std::forward<FieldsT>(value);
185 }
186 template <typename FieldsT = Aws::Map<Aws::String, ComponentProperty>>
187 ActionParameters& WithFields(FieldsT&& value) {
188 SetFields(std::forward<FieldsT>(value));
189 return *this;
190 }
191 template <typename FieldsKeyT = Aws::String, typename FieldsValueT = ComponentProperty>
192 ActionParameters& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
193 m_fieldsHasBeenSet = true;
194 m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value));
195 return *this;
196 }
198
200
204 inline const MutationActionSetStateParameter& GetState() const { return m_state; }
205 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
206 template <typename StateT = MutationActionSetStateParameter>
207 void SetState(StateT&& value) {
208 m_stateHasBeenSet = true;
209 m_state = std::forward<StateT>(value);
210 }
211 template <typename StateT = MutationActionSetStateParameter>
212 ActionParameters& WithState(StateT&& value) {
213 SetState(std::forward<StateT>(value));
214 return *this;
215 }
217 private:
218 ComponentProperty m_type;
219
220 ComponentProperty m_url;
221
222 ComponentProperty m_anchor;
223
224 ComponentProperty m_target;
225
226 ComponentProperty m_global;
227
228 Aws::String m_model;
229
231
233
235 bool m_typeHasBeenSet = false;
236 bool m_urlHasBeenSet = false;
237 bool m_anchorHasBeenSet = false;
238 bool m_targetHasBeenSet = false;
239 bool m_globalHasBeenSet = false;
240 bool m_modelHasBeenSet = false;
241 bool m_idHasBeenSet = false;
242 bool m_fieldsHasBeenSet = false;
243 bool m_stateHasBeenSet = false;
244};
245
246} // namespace Model
247} // namespace AmplifyUIBuilder
248} // namespace Aws
ActionParameters & WithGlobal(GlobalT &&value)
AWS_AMPLIFYUIBUILDER_API ActionParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionParameters & WithType(TypeT &&value)
ActionParameters & WithTarget(TargetT &&value)
AWS_AMPLIFYUIBUILDER_API ActionParameters(Aws::Utils::Json::JsonView jsonValue)
ActionParameters & WithModel(ModelT &&value)
const ComponentProperty & GetId() const
const Aws::Map< Aws::String, ComponentProperty > & GetFields() const
const ComponentProperty & GetUrl() const
const ComponentProperty & GetAnchor() const
ActionParameters & WithFields(FieldsT &&value)
AWS_AMPLIFYUIBUILDER_API ActionParameters()=default
ActionParameters & WithState(StateT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const ComponentProperty & GetType() const
const ComponentProperty & GetGlobal() const
ActionParameters & WithAnchor(AnchorT &&value)
const ComponentProperty & GetTarget() const
ActionParameters & AddFields(FieldsKeyT &&key, FieldsValueT &&value)
const MutationActionSetStateParameter & GetState() const
ActionParameters & WithUrl(UrlT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue