AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataTableAttribute.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/DataTableAttributeValueType.h>
9#include <aws/connect/model/DataTableLockVersion.h>
10#include <aws/connect/model/Validation.h>
11#include <aws/core/utils/DateTime.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 Connect {
24namespace Model {
25
35 public:
36 AWS_CONNECT_API DataTableAttribute() = default;
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAttributeId() const { return m_attributeId; }
46 inline bool AttributeIdHasBeenSet() const { return m_attributeIdHasBeenSet; }
47 template <typename AttributeIdT = Aws::String>
48 void SetAttributeId(AttributeIdT&& value) {
49 m_attributeIdHasBeenSet = true;
50 m_attributeId = std::forward<AttributeIdT>(value);
51 }
52 template <typename AttributeIdT = Aws::String>
53 DataTableAttribute& WithAttributeId(AttributeIdT&& value) {
54 SetAttributeId(std::forward<AttributeIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 DataTableAttribute& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
84 inline DataTableAttributeValueType GetValueType() const { return m_valueType; }
85 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
87 m_valueTypeHasBeenSet = true;
88 m_valueType = value;
89 }
91 SetValueType(value);
92 return *this;
93 }
95
97
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
109 DataTableAttribute& WithDescription(DescriptionT&& value) {
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDataTableId() const { return m_dataTableId; }
120 inline bool DataTableIdHasBeenSet() const { return m_dataTableIdHasBeenSet; }
121 template <typename DataTableIdT = Aws::String>
122 void SetDataTableId(DataTableIdT&& value) {
123 m_dataTableIdHasBeenSet = true;
124 m_dataTableId = std::forward<DataTableIdT>(value);
125 }
126 template <typename DataTableIdT = Aws::String>
127 DataTableAttribute& WithDataTableId(DataTableIdT&& value) {
128 SetDataTableId(std::forward<DataTableIdT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetDataTableArn() const { return m_dataTableArn; }
139 inline bool DataTableArnHasBeenSet() const { return m_dataTableArnHasBeenSet; }
140 template <typename DataTableArnT = Aws::String>
141 void SetDataTableArn(DataTableArnT&& value) {
142 m_dataTableArnHasBeenSet = true;
143 m_dataTableArn = std::forward<DataTableArnT>(value);
144 }
145 template <typename DataTableArnT = Aws::String>
146 DataTableAttribute& WithDataTableArn(DataTableArnT&& value) {
147 SetDataTableArn(std::forward<DataTableArnT>(value));
148 return *this;
149 }
151
153
158 inline bool GetPrimary() const { return m_primary; }
159 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
160 inline void SetPrimary(bool value) {
161 m_primaryHasBeenSet = true;
162 m_primary = value;
163 }
164 inline DataTableAttribute& WithPrimary(bool value) {
165 SetPrimary(value);
166 return *this;
167 }
169
171
175 inline const Aws::String& GetVersion() const { return m_version; }
176 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
177 template <typename VersionT = Aws::String>
178 void SetVersion(VersionT&& value) {
179 m_versionHasBeenSet = true;
180 m_version = std::forward<VersionT>(value);
181 }
182 template <typename VersionT = Aws::String>
183 DataTableAttribute& WithVersion(VersionT&& value) {
184 SetVersion(std::forward<VersionT>(value));
185 return *this;
186 }
188
190
194 inline const DataTableLockVersion& GetLockVersion() const { return m_lockVersion; }
195 inline bool LockVersionHasBeenSet() const { return m_lockVersionHasBeenSet; }
196 template <typename LockVersionT = DataTableLockVersion>
197 void SetLockVersion(LockVersionT&& value) {
198 m_lockVersionHasBeenSet = true;
199 m_lockVersion = std::forward<LockVersionT>(value);
200 }
201 template <typename LockVersionT = DataTableLockVersion>
202 DataTableAttribute& WithLockVersion(LockVersionT&& value) {
203 SetLockVersion(std::forward<LockVersionT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
213 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
214 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
215 void SetLastModifiedTime(LastModifiedTimeT&& value) {
216 m_lastModifiedTimeHasBeenSet = true;
217 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
218 }
219 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
220 DataTableAttribute& WithLastModifiedTime(LastModifiedTimeT&& value) {
221 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
232 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
233 template <typename LastModifiedRegionT = Aws::String>
234 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
235 m_lastModifiedRegionHasBeenSet = true;
236 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
237 }
238 template <typename LastModifiedRegionT = Aws::String>
239 DataTableAttribute& WithLastModifiedRegion(LastModifiedRegionT&& value) {
240 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
241 return *this;
242 }
244
246
251 inline const Validation& GetValidation() const { return m_validation; }
252 inline bool ValidationHasBeenSet() const { return m_validationHasBeenSet; }
253 template <typename ValidationT = Validation>
254 void SetValidation(ValidationT&& value) {
255 m_validationHasBeenSet = true;
256 m_validation = std::forward<ValidationT>(value);
257 }
258 template <typename ValidationT = Validation>
259 DataTableAttribute& WithValidation(ValidationT&& value) {
260 SetValidation(std::forward<ValidationT>(value));
261 return *this;
262 }
264 private:
265 Aws::String m_attributeId;
266
267 Aws::String m_name;
268
270
271 Aws::String m_description;
272
273 Aws::String m_dataTableId;
274
275 Aws::String m_dataTableArn;
276
277 bool m_primary{false};
278
279 Aws::String m_version;
280
281 DataTableLockVersion m_lockVersion;
282
283 Aws::Utils::DateTime m_lastModifiedTime{};
284
285 Aws::String m_lastModifiedRegion;
286
287 Validation m_validation;
288 bool m_attributeIdHasBeenSet = false;
289 bool m_nameHasBeenSet = false;
290 bool m_valueTypeHasBeenSet = false;
291 bool m_descriptionHasBeenSet = false;
292 bool m_dataTableIdHasBeenSet = false;
293 bool m_dataTableArnHasBeenSet = false;
294 bool m_primaryHasBeenSet = false;
295 bool m_versionHasBeenSet = false;
296 bool m_lockVersionHasBeenSet = false;
297 bool m_lastModifiedTimeHasBeenSet = false;
298 bool m_lastModifiedRegionHasBeenSet = false;
299 bool m_validationHasBeenSet = false;
300};
301
302} // namespace Model
303} // namespace Connect
304} // namespace Aws
DataTableAttribute & WithName(NameT &&value)
AWS_CONNECT_API DataTableAttribute(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API DataTableAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModifiedTime() const
DataTableAttribute & WithDataTableId(DataTableIdT &&value)
DataTableAttribute & WithLockVersion(LockVersionT &&value)
DataTableAttributeValueType GetValueType() const
void SetDataTableArn(DataTableArnT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
DataTableAttribute & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetDataTableArn() const
AWS_CONNECT_API DataTableAttribute()=default
DataTableAttribute & WithLastModifiedRegion(LastModifiedRegionT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetAttributeId() const
DataTableAttribute & WithVersion(VersionT &&value)
const Aws::String & GetDataTableId() const
void SetAttributeId(AttributeIdT &&value)
const Aws::String & GetLastModifiedRegion() const
const DataTableLockVersion & GetLockVersion() const
DataTableAttribute & WithValidation(ValidationT &&value)
DataTableAttribute & WithDescription(DescriptionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
DataTableAttribute & WithAttributeId(AttributeIdT &&value)
const Aws::String & GetDescription() const
DataTableAttribute & WithPrimary(bool value)
DataTableAttribute & WithValueType(DataTableAttributeValueType value)
void SetValueType(DataTableAttributeValueType value)
DataTableAttribute & WithDataTableArn(DataTableArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue