AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TypeT = ComponentProperty>
55 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
56 template<typename TypeT = ComponentProperty>
57 ActionParameters& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
69 template<typename UrlT = ComponentProperty>
70 ActionParameters& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
72
74
78 inline const ComponentProperty& GetAnchor() const { return m_anchor; }
79 inline bool AnchorHasBeenSet() const { return m_anchorHasBeenSet; }
80 template<typename AnchorT = ComponentProperty>
81 void SetAnchor(AnchorT&& value) { m_anchorHasBeenSet = true; m_anchor = std::forward<AnchorT>(value); }
82 template<typename AnchorT = ComponentProperty>
83 ActionParameters& WithAnchor(AnchorT&& value) { SetAnchor(std::forward<AnchorT>(value)); return *this;}
85
87
90 inline const ComponentProperty& GetTarget() const { return m_target; }
91 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
92 template<typename TargetT = ComponentProperty>
93 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
94 template<typename TargetT = ComponentProperty>
95 ActionParameters& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
97
99
103 inline const ComponentProperty& GetGlobal() const { return m_global; }
104 inline bool GlobalHasBeenSet() const { return m_globalHasBeenSet; }
105 template<typename GlobalT = ComponentProperty>
106 void SetGlobal(GlobalT&& value) { m_globalHasBeenSet = true; m_global = std::forward<GlobalT>(value); }
107 template<typename GlobalT = ComponentProperty>
108 ActionParameters& WithGlobal(GlobalT&& value) { SetGlobal(std::forward<GlobalT>(value)); return *this;}
110
112
116 inline const Aws::String& GetModel() const { return m_model; }
117 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
118 template<typename ModelT = Aws::String>
119 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
120 template<typename ModelT = Aws::String>
121 ActionParameters& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
123
125
129 inline const ComponentProperty& GetId() const { return m_id; }
130 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
131 template<typename IdT = ComponentProperty>
132 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
133 template<typename IdT = ComponentProperty>
134 ActionParameters& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
136
138
143 inline const Aws::Map<Aws::String, ComponentProperty>& GetFields() const { return m_fields; }
144 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
145 template<typename FieldsT = Aws::Map<Aws::String, ComponentProperty>>
146 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
147 template<typename FieldsT = Aws::Map<Aws::String, ComponentProperty>>
148 ActionParameters& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
149 template<typename FieldsKeyT = Aws::String, typename FieldsValueT = ComponentProperty>
150 ActionParameters& AddFields(FieldsKeyT&& key, FieldsValueT&& value) {
151 m_fieldsHasBeenSet = true; m_fields.emplace(std::forward<FieldsKeyT>(key), std::forward<FieldsValueT>(value)); return *this;
152 }
154
156
160 inline const MutationActionSetStateParameter& GetState() const { return m_state; }
161 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
162 template<typename StateT = MutationActionSetStateParameter>
163 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
164 template<typename StateT = MutationActionSetStateParameter>
165 ActionParameters& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
167 private:
168
169 ComponentProperty m_type;
170 bool m_typeHasBeenSet = false;
171
172 ComponentProperty m_url;
173 bool m_urlHasBeenSet = false;
174
175 ComponentProperty m_anchor;
176 bool m_anchorHasBeenSet = false;
177
178 ComponentProperty m_target;
179 bool m_targetHasBeenSet = false;
180
181 ComponentProperty m_global;
182 bool m_globalHasBeenSet = false;
183
184 Aws::String m_model;
185 bool m_modelHasBeenSet = false;
186
188 bool m_idHasBeenSet = false;
189
191 bool m_fieldsHasBeenSet = false;
192
194 bool m_stateHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace AmplifyUIBuilder
199} // 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