AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentBindingPropertiesValueProperties.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/Predicate.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23
33 public:
34 AWS_AMPLIFYUIBUILDER_API ComponentBindingPropertiesValueProperties() = default;
37 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetModel() const { return m_model; }
44 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
45 template <typename ModelT = Aws::String>
46 void SetModel(ModelT&& value) {
47 m_modelHasBeenSet = true;
48 m_model = std::forward<ModelT>(value);
49 }
50 template <typename ModelT = Aws::String>
52 SetModel(std::forward<ModelT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetField() const { return m_field; }
62 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
63 template <typename FieldT = Aws::String>
64 void SetField(FieldT&& value) {
65 m_fieldHasBeenSet = true;
66 m_field = std::forward<FieldT>(value);
67 }
68 template <typename FieldT = Aws::String>
70 SetField(std::forward<FieldT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Predicate>& GetPredicates() const { return m_predicates; }
80 inline bool PredicatesHasBeenSet() const { return m_predicatesHasBeenSet; }
81 template <typename PredicatesT = Aws::Vector<Predicate>>
82 void SetPredicates(PredicatesT&& value) {
83 m_predicatesHasBeenSet = true;
84 m_predicates = std::forward<PredicatesT>(value);
85 }
86 template <typename PredicatesT = Aws::Vector<Predicate>>
88 SetPredicates(std::forward<PredicatesT>(value));
89 return *this;
90 }
91 template <typename PredicatesT = Predicate>
93 m_predicatesHasBeenSet = true;
94 m_predicates.emplace_back(std::forward<PredicatesT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetUserAttribute() const { return m_userAttribute; }
104 inline bool UserAttributeHasBeenSet() const { return m_userAttributeHasBeenSet; }
105 template <typename UserAttributeT = Aws::String>
106 void SetUserAttribute(UserAttributeT&& value) {
107 m_userAttributeHasBeenSet = true;
108 m_userAttribute = std::forward<UserAttributeT>(value);
109 }
110 template <typename UserAttributeT = Aws::String>
112 SetUserAttribute(std::forward<UserAttributeT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetBucket() const { return m_bucket; }
122 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
123 template <typename BucketT = Aws::String>
124 void SetBucket(BucketT&& value) {
125 m_bucketHasBeenSet = true;
126 m_bucket = std::forward<BucketT>(value);
127 }
128 template <typename BucketT = Aws::String>
130 SetBucket(std::forward<BucketT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetKey() const { return m_key; }
140 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
141 template <typename KeyT = Aws::String>
142 void SetKey(KeyT&& value) {
143 m_keyHasBeenSet = true;
144 m_key = std::forward<KeyT>(value);
145 }
146 template <typename KeyT = Aws::String>
148 SetKey(std::forward<KeyT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
158 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
159 template <typename DefaultValueT = Aws::String>
160 void SetDefaultValue(DefaultValueT&& value) {
161 m_defaultValueHasBeenSet = true;
162 m_defaultValue = std::forward<DefaultValueT>(value);
163 }
164 template <typename DefaultValueT = Aws::String>
166 SetDefaultValue(std::forward<DefaultValueT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetSlotName() const { return m_slotName; }
176 inline bool SlotNameHasBeenSet() const { return m_slotNameHasBeenSet; }
177 template <typename SlotNameT = Aws::String>
178 void SetSlotName(SlotNameT&& value) {
179 m_slotNameHasBeenSet = true;
180 m_slotName = std::forward<SlotNameT>(value);
181 }
182 template <typename SlotNameT = Aws::String>
184 SetSlotName(std::forward<SlotNameT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_model;
190
191 Aws::String m_field;
192
193 Aws::Vector<Predicate> m_predicates;
194
195 Aws::String m_userAttribute;
196
197 Aws::String m_bucket;
198
199 Aws::String m_key;
200
201 Aws::String m_defaultValue;
202
203 Aws::String m_slotName;
204 bool m_modelHasBeenSet = false;
205 bool m_fieldHasBeenSet = false;
206 bool m_predicatesHasBeenSet = false;
207 bool m_userAttributeHasBeenSet = false;
208 bool m_bucketHasBeenSet = false;
209 bool m_keyHasBeenSet = false;
210 bool m_defaultValueHasBeenSet = false;
211 bool m_slotNameHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace AmplifyUIBuilder
216} // namespace Aws
AWS_AMPLIFYUIBUILDER_API ComponentBindingPropertiesValueProperties()=default
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentBindingPropertiesValueProperties & WithUserAttribute(UserAttributeT &&value)
ComponentBindingPropertiesValueProperties & WithPredicates(PredicatesT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentBindingPropertiesValueProperties(Aws::Utils::Json::JsonView jsonValue)
ComponentBindingPropertiesValueProperties & AddPredicates(PredicatesT &&value)
ComponentBindingPropertiesValueProperties & WithDefaultValue(DefaultValueT &&value)
AWS_AMPLIFYUIBUILDER_API ComponentBindingPropertiesValueProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue