AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ConnectorEntityField.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/DestinationFieldProperties.h>
9#include <aws/appflow/model/SourceFieldProperties.h>
10#include <aws/appflow/model/SupportedFieldTypeDetails.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow {
24namespace Model {
25
34 public:
35 AWS_APPFLOW_API ConnectorEntityField() = default;
38 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIdentifier() const { return m_identifier; }
45 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
46 template <typename IdentifierT = Aws::String>
47 void SetIdentifier(IdentifierT&& value) {
48 m_identifierHasBeenSet = true;
49 m_identifier = std::forward<IdentifierT>(value);
50 }
51 template <typename IdentifierT = Aws::String>
52 ConnectorEntityField& WithIdentifier(IdentifierT&& value) {
53 SetIdentifier(std::forward<IdentifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetParentIdentifier() const { return m_parentIdentifier; }
63 inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; }
64 template <typename ParentIdentifierT = Aws::String>
65 void SetParentIdentifier(ParentIdentifierT&& value) {
66 m_parentIdentifierHasBeenSet = true;
67 m_parentIdentifier = std::forward<ParentIdentifierT>(value);
68 }
69 template <typename ParentIdentifierT = Aws::String>
70 ConnectorEntityField& WithParentIdentifier(ParentIdentifierT&& value) {
71 SetParentIdentifier(std::forward<ParentIdentifierT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLabel() const { return m_label; }
81 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
82 template <typename LabelT = Aws::String>
83 void SetLabel(LabelT&& value) {
84 m_labelHasBeenSet = true;
85 m_label = std::forward<LabelT>(value);
86 }
87 template <typename LabelT = Aws::String>
89 SetLabel(std::forward<LabelT>(value));
90 return *this;
91 }
93
95
99 inline bool GetIsPrimaryKey() const { return m_isPrimaryKey; }
100 inline bool IsPrimaryKeyHasBeenSet() const { return m_isPrimaryKeyHasBeenSet; }
101 inline void SetIsPrimaryKey(bool value) {
102 m_isPrimaryKeyHasBeenSet = true;
103 m_isPrimaryKey = value;
104 }
106 SetIsPrimaryKey(value);
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
116 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
117 template <typename DefaultValueT = Aws::String>
118 void SetDefaultValue(DefaultValueT&& value) {
119 m_defaultValueHasBeenSet = true;
120 m_defaultValue = std::forward<DefaultValueT>(value);
121 }
122 template <typename DefaultValueT = Aws::String>
123 ConnectorEntityField& WithDefaultValue(DefaultValueT&& value) {
124 SetDefaultValue(std::forward<DefaultValueT>(value));
125 return *this;
126 }
128
130
133 inline bool GetIsDeprecated() const { return m_isDeprecated; }
134 inline bool IsDeprecatedHasBeenSet() const { return m_isDeprecatedHasBeenSet; }
135 inline void SetIsDeprecated(bool value) {
136 m_isDeprecatedHasBeenSet = true;
137 m_isDeprecated = value;
138 }
140 SetIsDeprecated(value);
141 return *this;
142 }
144
146
151 inline const SupportedFieldTypeDetails& GetSupportedFieldTypeDetails() const { return m_supportedFieldTypeDetails; }
152 inline bool SupportedFieldTypeDetailsHasBeenSet() const { return m_supportedFieldTypeDetailsHasBeenSet; }
153 template <typename SupportedFieldTypeDetailsT = SupportedFieldTypeDetails>
154 void SetSupportedFieldTypeDetails(SupportedFieldTypeDetailsT&& value) {
155 m_supportedFieldTypeDetailsHasBeenSet = true;
156 m_supportedFieldTypeDetails = std::forward<SupportedFieldTypeDetailsT>(value);
157 }
158 template <typename SupportedFieldTypeDetailsT = SupportedFieldTypeDetails>
159 ConnectorEntityField& WithSupportedFieldTypeDetails(SupportedFieldTypeDetailsT&& value) {
160 SetSupportedFieldTypeDetails(std::forward<SupportedFieldTypeDetailsT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 template <typename DescriptionT = Aws::String>
172 void SetDescription(DescriptionT&& value) {
173 m_descriptionHasBeenSet = true;
174 m_description = std::forward<DescriptionT>(value);
175 }
176 template <typename DescriptionT = Aws::String>
177 ConnectorEntityField& WithDescription(DescriptionT&& value) {
178 SetDescription(std::forward<DescriptionT>(value));
179 return *this;
180 }
182
184
188 inline const SourceFieldProperties& GetSourceProperties() const { return m_sourceProperties; }
189 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
190 template <typename SourcePropertiesT = SourceFieldProperties>
191 void SetSourceProperties(SourcePropertiesT&& value) {
192 m_sourcePropertiesHasBeenSet = true;
193 m_sourceProperties = std::forward<SourcePropertiesT>(value);
194 }
195 template <typename SourcePropertiesT = SourceFieldProperties>
196 ConnectorEntityField& WithSourceProperties(SourcePropertiesT&& value) {
197 SetSourceProperties(std::forward<SourcePropertiesT>(value));
198 return *this;
199 }
201
203
207 inline const DestinationFieldProperties& GetDestinationProperties() const { return m_destinationProperties; }
208 inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; }
209 template <typename DestinationPropertiesT = DestinationFieldProperties>
210 void SetDestinationProperties(DestinationPropertiesT&& value) {
211 m_destinationPropertiesHasBeenSet = true;
212 m_destinationProperties = std::forward<DestinationPropertiesT>(value);
213 }
214 template <typename DestinationPropertiesT = DestinationFieldProperties>
215 ConnectorEntityField& WithDestinationProperties(DestinationPropertiesT&& value) {
216 SetDestinationProperties(std::forward<DestinationPropertiesT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProperties() const { return m_customProperties; }
226 inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; }
227 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
228 void SetCustomProperties(CustomPropertiesT&& value) {
229 m_customPropertiesHasBeenSet = true;
230 m_customProperties = std::forward<CustomPropertiesT>(value);
231 }
232 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
233 ConnectorEntityField& WithCustomProperties(CustomPropertiesT&& value) {
234 SetCustomProperties(std::forward<CustomPropertiesT>(value));
235 return *this;
236 }
237 template <typename CustomPropertiesKeyT = Aws::String, typename CustomPropertiesValueT = Aws::String>
238 ConnectorEntityField& AddCustomProperties(CustomPropertiesKeyT&& key, CustomPropertiesValueT&& value) {
239 m_customPropertiesHasBeenSet = true;
240 m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_identifier;
246
247 Aws::String m_parentIdentifier;
248
249 Aws::String m_label;
250
251 bool m_isPrimaryKey{false};
252
253 Aws::String m_defaultValue;
254
255 bool m_isDeprecated{false};
256
257 SupportedFieldTypeDetails m_supportedFieldTypeDetails;
258
259 Aws::String m_description;
260
261 SourceFieldProperties m_sourceProperties;
262
263 DestinationFieldProperties m_destinationProperties;
264
265 Aws::Map<Aws::String, Aws::String> m_customProperties;
266 bool m_identifierHasBeenSet = false;
267 bool m_parentIdentifierHasBeenSet = false;
268 bool m_labelHasBeenSet = false;
269 bool m_isPrimaryKeyHasBeenSet = false;
270 bool m_defaultValueHasBeenSet = false;
271 bool m_isDeprecatedHasBeenSet = false;
272 bool m_supportedFieldTypeDetailsHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_sourcePropertiesHasBeenSet = false;
275 bool m_destinationPropertiesHasBeenSet = false;
276 bool m_customPropertiesHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace Appflow
281} // namespace Aws
ConnectorEntityField & AddCustomProperties(CustomPropertiesKeyT &&key, CustomPropertiesValueT &&value)
ConnectorEntityField & WithParentIdentifier(ParentIdentifierT &&value)
ConnectorEntityField & WithIsDeprecated(bool value)
const Aws::Map< Aws::String, Aws::String > & GetCustomProperties() const
ConnectorEntityField & WithCustomProperties(CustomPropertiesT &&value)
void SetDestinationProperties(DestinationPropertiesT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const DestinationFieldProperties & GetDestinationProperties() const
void SetSourceProperties(SourcePropertiesT &&value)
ConnectorEntityField & WithIdentifier(IdentifierT &&value)
ConnectorEntityField & WithDescription(DescriptionT &&value)
AWS_APPFLOW_API ConnectorEntityField()=default
ConnectorEntityField & WithSupportedFieldTypeDetails(SupportedFieldTypeDetailsT &&value)
ConnectorEntityField & WithSourceProperties(SourcePropertiesT &&value)
ConnectorEntityField & WithLabel(LabelT &&value)
void SetCustomProperties(CustomPropertiesT &&value)
const Aws::String & GetParentIdentifier() const
const SourceFieldProperties & GetSourceProperties() const
ConnectorEntityField & WithIsPrimaryKey(bool value)
ConnectorEntityField & WithDestinationProperties(DestinationPropertiesT &&value)
const SupportedFieldTypeDetails & GetSupportedFieldTypeDetails() const
AWS_APPFLOW_API ConnectorEntityField(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedFieldTypeDetails(SupportedFieldTypeDetailsT &&value)
AWS_APPFLOW_API ConnectorEntityField & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorEntityField & WithDefaultValue(DefaultValueT &&value)
void SetParentIdentifier(ParentIdentifierT &&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