AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/amplifyuibuilder/model/MutationActionSetStateParameter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyUIBuilder
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_AMPLIFYUIBUILDER_API ActionParameters();
42 AWS_AMPLIFYUIBUILDER_API ActionParameters(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AMPLIFYUIBUILDER_API ActionParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const ComponentProperty& GetType() const{ return m_type; }
53 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
54 inline void SetType(const ComponentProperty& value) { m_typeHasBeenSet = true; m_type = value; }
55 inline void SetType(ComponentProperty&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
56 inline ActionParameters& WithType(const ComponentProperty& value) { SetType(value); return *this;}
57 inline ActionParameters& WithType(ComponentProperty&& value) { SetType(std::move(value)); return *this;}
59
61
65 inline const ComponentProperty& GetUrl() const{ return m_url; }
66 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
67 inline void SetUrl(const ComponentProperty& value) { m_urlHasBeenSet = true; m_url = value; }
68 inline void SetUrl(ComponentProperty&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
69 inline ActionParameters& WithUrl(const ComponentProperty& value) { SetUrl(value); return *this;}
70 inline ActionParameters& WithUrl(ComponentProperty&& value) { SetUrl(std::move(value)); return *this;}
72
74
78 inline const ComponentProperty& GetAnchor() const{ return m_anchor; }
79 inline bool AnchorHasBeenSet() const { return m_anchorHasBeenSet; }
80 inline void SetAnchor(const ComponentProperty& value) { m_anchorHasBeenSet = true; m_anchor = value; }
81 inline void SetAnchor(ComponentProperty&& value) { m_anchorHasBeenSet = true; m_anchor = std::move(value); }
82 inline ActionParameters& WithAnchor(const ComponentProperty& value) { SetAnchor(value); return *this;}
83 inline ActionParameters& WithAnchor(ComponentProperty&& value) { SetAnchor(std::move(value)); return *this;}
85
87
90 inline const ComponentProperty& GetTarget() const{ return m_target; }
91 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
92 inline void SetTarget(const ComponentProperty& value) { m_targetHasBeenSet = true; m_target = value; }
93 inline void SetTarget(ComponentProperty&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
94 inline ActionParameters& WithTarget(const ComponentProperty& value) { SetTarget(value); return *this;}
95 inline ActionParameters& WithTarget(ComponentProperty&& value) { SetTarget(std::move(value)); return *this;}
97
99
103 inline const ComponentProperty& GetGlobal() const{ return m_global; }
104 inline bool GlobalHasBeenSet() const { return m_globalHasBeenSet; }
105 inline void SetGlobal(const ComponentProperty& value) { m_globalHasBeenSet = true; m_global = value; }
106 inline void SetGlobal(ComponentProperty&& value) { m_globalHasBeenSet = true; m_global = std::move(value); }
107 inline ActionParameters& WithGlobal(const ComponentProperty& value) { SetGlobal(value); return *this;}
108 inline ActionParameters& WithGlobal(ComponentProperty&& value) { SetGlobal(std::move(value)); return *this;}
110
112
116 inline const Aws::String& GetModel() const{ return m_model; }
117 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
118 inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
119 inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); }
120 inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
121 inline ActionParameters& WithModel(const Aws::String& value) { SetModel(value); return *this;}
122 inline ActionParameters& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;}
123 inline ActionParameters& WithModel(const char* value) { SetModel(value); return *this;}
125
127
131 inline const ComponentProperty& GetId() const{ return m_id; }
132 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
133 inline void SetId(const ComponentProperty& value) { m_idHasBeenSet = true; m_id = value; }
134 inline void SetId(ComponentProperty&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
135 inline ActionParameters& WithId(const ComponentProperty& value) { SetId(value); return *this;}
136 inline ActionParameters& WithId(ComponentProperty&& value) { SetId(std::move(value)); return *this;}
138
140
145 inline const Aws::Map<Aws::String, ComponentProperty>& GetFields() const{ return m_fields; }
146 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
147 inline void SetFields(const Aws::Map<Aws::String, ComponentProperty>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
148 inline void SetFields(Aws::Map<Aws::String, ComponentProperty>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
150 inline ActionParameters& WithFields(Aws::Map<Aws::String, ComponentProperty>&& value) { SetFields(std::move(value)); return *this;}
151 inline ActionParameters& AddFields(const Aws::String& key, const ComponentProperty& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
152 inline ActionParameters& AddFields(Aws::String&& key, const ComponentProperty& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), value); return *this; }
153 inline ActionParameters& AddFields(const Aws::String& key, ComponentProperty&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
154 inline ActionParameters& AddFields(Aws::String&& key, ComponentProperty&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(std::move(key), std::move(value)); return *this; }
155 inline ActionParameters& AddFields(const char* key, ComponentProperty&& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, std::move(value)); return *this; }
156 inline ActionParameters& AddFields(const char* key, const ComponentProperty& value) { m_fieldsHasBeenSet = true; m_fields.emplace(key, value); return *this; }
158
160
164 inline const MutationActionSetStateParameter& GetState() const{ return m_state; }
165 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
166 inline void SetState(const MutationActionSetStateParameter& value) { m_stateHasBeenSet = true; m_state = value; }
167 inline void SetState(MutationActionSetStateParameter&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
168 inline ActionParameters& WithState(const MutationActionSetStateParameter& value) { SetState(value); return *this;}
169 inline ActionParameters& WithState(MutationActionSetStateParameter&& value) { SetState(std::move(value)); return *this;}
171 private:
172
173 ComponentProperty m_type;
174 bool m_typeHasBeenSet = false;
175
176 ComponentProperty m_url;
177 bool m_urlHasBeenSet = false;
178
179 ComponentProperty m_anchor;
180 bool m_anchorHasBeenSet = false;
181
182 ComponentProperty m_target;
183 bool m_targetHasBeenSet = false;
184
185 ComponentProperty m_global;
186 bool m_globalHasBeenSet = false;
187
188 Aws::String m_model;
189 bool m_modelHasBeenSet = false;
190
192 bool m_idHasBeenSet = false;
193
195 bool m_fieldsHasBeenSet = false;
196
198 bool m_stateHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace AmplifyUIBuilder
203} // namespace Aws
ActionParameters & WithFields(const Aws::Map< Aws::String, ComponentProperty > &value)
AWS_AMPLIFYUIBUILDER_API ActionParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionParameters & AddFields(const Aws::String &key, ComponentProperty &&value)
ActionParameters & WithModel(const Aws::String &value)
void SetFields(Aws::Map< Aws::String, ComponentProperty > &&value)
ActionParameters & WithState(MutationActionSetStateParameter &&value)
void SetType(const ComponentProperty &value)
ActionParameters & WithTarget(const ComponentProperty &value)
ActionParameters & WithTarget(ComponentProperty &&value)
void SetAnchor(const ComponentProperty &value)
ActionParameters & WithId(const ComponentProperty &value)
ActionParameters & AddFields(Aws::String &&key, ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API ActionParameters(Aws::Utils::Json::JsonView jsonValue)
ActionParameters & WithState(const MutationActionSetStateParameter &value)
void SetAnchor(ComponentProperty &&value)
const ComponentProperty & GetId() const
ActionParameters & AddFields(const char *key, ComponentProperty &&value)
ActionParameters & WithAnchor(ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API ActionParameters()
void SetUrl(const ComponentProperty &value)
ActionParameters & WithGlobal(ComponentProperty &&value)
const Aws::Map< Aws::String, ComponentProperty > & GetFields() const
void SetState(MutationActionSetStateParameter &&value)
void SetState(const MutationActionSetStateParameter &value)
const ComponentProperty & GetUrl() const
ActionParameters & WithFields(Aws::Map< Aws::String, ComponentProperty > &&value)
ActionParameters & WithType(const ComponentProperty &value)
const ComponentProperty & GetAnchor() const
void SetGlobal(const ComponentProperty &value)
ActionParameters & AddFields(const char *key, const ComponentProperty &value)
ActionParameters & AddFields(const Aws::String &key, const ComponentProperty &value)
ActionParameters & WithUrl(const ComponentProperty &value)
void SetTarget(ComponentProperty &&value)
ActionParameters & WithAnchor(const ComponentProperty &value)
ActionParameters & WithModel(const char *value)
void SetId(const ComponentProperty &value)
ActionParameters & WithId(ComponentProperty &&value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ActionParameters & WithGlobal(const ComponentProperty &value)
ActionParameters & WithUrl(ComponentProperty &&value)
void SetTarget(const ComponentProperty &value)
ActionParameters & WithType(ComponentProperty &&value)
const ComponentProperty & GetType() const
const ComponentProperty & GetGlobal() const
void SetFields(const Aws::Map< Aws::String, ComponentProperty > &value)
ActionParameters & AddFields(Aws::String &&key, const ComponentProperty &value)
const ComponentProperty & GetTarget() const
const MutationActionSetStateParameter & GetState() const
ActionParameters & WithModel(Aws::String &&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