AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetFieldResponse.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/FieldAttributes.h>
9#include <aws/connectcases/model/FieldNamespace.h>
10#include <aws/connectcases/model/FieldType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/Optional.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConnectCases {
26namespace Model {
27
34 public:
35 AWS_CONNECTCASES_API GetFieldResponse() = default;
36 AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API GetFieldResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFieldId() const { return m_fieldId; }
45 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
46 template <typename FieldIdT = Aws::String>
47 void SetFieldId(FieldIdT&& value) {
48 m_fieldIdHasBeenSet = true;
49 m_fieldId = std::forward<FieldIdT>(value);
50 }
51 template <typename FieldIdT = Aws::String>
52 GetFieldResponse& WithFieldId(FieldIdT&& value) {
53 SetFieldId(std::forward<FieldIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 GetFieldResponse& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetFieldArn() const { return m_fieldArn; }
81 inline bool FieldArnHasBeenSet() const { return m_fieldArnHasBeenSet; }
82 template <typename FieldArnT = Aws::String>
83 void SetFieldArn(FieldArnT&& value) {
84 m_fieldArnHasBeenSet = true;
85 m_fieldArn = std::forward<FieldArnT>(value);
86 }
87 template <typename FieldArnT = Aws::String>
88 GetFieldResponse& WithFieldArn(FieldArnT&& value) {
89 SetFieldArn(std::forward<FieldArnT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 GetFieldResponse& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline FieldType GetType() const { return m_type; }
117 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
118 inline void SetType(FieldType value) {
119 m_typeHasBeenSet = true;
120 m_type = value;
121 }
123 SetType(value);
124 return *this;
125 }
127
129
132 inline FieldNamespace GetNamespace() const { return m_namespace; }
133 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
134 inline void SetNamespace(FieldNamespace value) {
135 m_namespaceHasBeenSet = true;
136 m_namespace = value;
137 }
139 SetNamespace(value);
140 return *this;
141 }
143
145
149 inline const Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
157 GetFieldResponse& WithTags(TagsT&& value) {
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::Crt::Optional<Aws::String>>
162 GetFieldResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
167 inline GetFieldResponse& AddTags(Aws::String key, Aws::Crt::Optional<Aws::String> value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(key, value);
170 return *this;
171 }
173
175
178 inline bool GetDeleted() const { return m_deleted; }
179 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
180 inline void SetDeleted(bool value) {
181 m_deletedHasBeenSet = true;
182 m_deleted = value;
183 }
184 inline GetFieldResponse& WithDeleted(bool value) {
185 SetDeleted(value);
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
195 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
196 template <typename CreatedTimeT = Aws::Utils::DateTime>
197 void SetCreatedTime(CreatedTimeT&& value) {
198 m_createdTimeHasBeenSet = true;
199 m_createdTime = std::forward<CreatedTimeT>(value);
200 }
201 template <typename CreatedTimeT = Aws::Utils::DateTime>
202 GetFieldResponse& WithCreatedTime(CreatedTimeT&& value) {
203 SetCreatedTime(std::forward<CreatedTimeT>(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 GetFieldResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
221 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
222 return *this;
223 }
225
227
230 inline const FieldAttributes& GetAttributes() const { return m_attributes; }
231 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
232 template <typename AttributesT = FieldAttributes>
233 void SetAttributes(AttributesT&& value) {
234 m_attributesHasBeenSet = true;
235 m_attributes = std::forward<AttributesT>(value);
236 }
237 template <typename AttributesT = FieldAttributes>
238 GetFieldResponse& WithAttributes(AttributesT&& value) {
239 SetAttributes(std::forward<AttributesT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_fieldId;
245
246 Aws::String m_name;
247
248 Aws::String m_fieldArn;
249
250 Aws::String m_description;
251
253
255
257
258 bool m_deleted{false};
259
260 Aws::Utils::DateTime m_createdTime{};
261
262 Aws::Utils::DateTime m_lastModifiedTime{};
263
264 FieldAttributes m_attributes;
265 bool m_fieldIdHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267 bool m_fieldArnHasBeenSet = false;
268 bool m_descriptionHasBeenSet = false;
269 bool m_typeHasBeenSet = false;
270 bool m_namespaceHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272 bool m_deletedHasBeenSet = false;
273 bool m_createdTimeHasBeenSet = false;
274 bool m_lastModifiedTimeHasBeenSet = false;
275 bool m_attributesHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace ConnectCases
280} // namespace Aws
AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue)
GetFieldResponse & WithType(FieldType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
GetFieldResponse & WithTags(TagsT &&value)
GetFieldResponse & AddTags(Aws::String key, Aws::Crt::Optional< Aws::String > value)
GetFieldResponse & WithDeleted(bool value)
const FieldAttributes & GetAttributes() const
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECTCASES_API GetFieldResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
GetFieldResponse & WithAttributes(AttributesT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetDescription() const
GetFieldResponse & WithFieldArn(FieldArnT &&value)
GetFieldResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetFieldResponse & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Map< Aws::String, Aws::Crt::Optional< Aws::String > > & GetTags() const
GetFieldResponse & WithName(NameT &&value)
GetFieldResponse & WithCreatedTime(CreatedTimeT &&value)
GetFieldResponse & WithFieldId(FieldIdT &&value)
GetFieldResponse & WithDescription(DescriptionT &&value)
AWS_CONNECTCASES_API GetFieldResponse()=default
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
GetFieldResponse & WithNamespace(FieldNamespace 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