AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ConnectCases {
25namespace Model {
26
33 public:
34 AWS_CONNECTCASES_API GetFieldResponse() = default;
35 AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API GetFieldResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFieldId() const { return m_fieldId; }
44 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
45 template <typename FieldIdT = Aws::String>
46 void SetFieldId(FieldIdT&& value) {
47 m_fieldIdHasBeenSet = true;
48 m_fieldId = std::forward<FieldIdT>(value);
49 }
50 template <typename FieldIdT = Aws::String>
51 GetFieldResponse& WithFieldId(FieldIdT&& value) {
52 SetFieldId(std::forward<FieldIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 GetFieldResponse& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetFieldArn() const { return m_fieldArn; }
80 inline bool FieldArnHasBeenSet() const { return m_fieldArnHasBeenSet; }
81 template <typename FieldArnT = Aws::String>
82 void SetFieldArn(FieldArnT&& value) {
83 m_fieldArnHasBeenSet = true;
84 m_fieldArn = std::forward<FieldArnT>(value);
85 }
86 template <typename FieldArnT = Aws::String>
87 GetFieldResponse& WithFieldArn(FieldArnT&& value) {
88 SetFieldArn(std::forward<FieldArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 GetFieldResponse& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline FieldType GetType() const { return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(FieldType value) {
118 m_typeHasBeenSet = true;
119 m_type = value;
120 }
122 SetType(value);
123 return *this;
124 }
126
128
131 inline FieldNamespace GetNamespace() const { return m_namespace; }
132 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
133 inline void SetNamespace(FieldNamespace value) {
134 m_namespaceHasBeenSet = true;
135 m_namespace = value;
136 }
138 SetNamespace(value);
139 return *this;
140 }
142
144
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 GetFieldResponse& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 GetFieldResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
172 inline bool GetDeleted() const { return m_deleted; }
173 inline bool DeletedHasBeenSet() const { return m_deletedHasBeenSet; }
174 inline void SetDeleted(bool value) {
175 m_deletedHasBeenSet = true;
176 m_deleted = value;
177 }
178 inline GetFieldResponse& WithDeleted(bool value) {
179 SetDeleted(value);
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
189 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
190 template <typename CreatedTimeT = Aws::Utils::DateTime>
191 void SetCreatedTime(CreatedTimeT&& value) {
192 m_createdTimeHasBeenSet = true;
193 m_createdTime = std::forward<CreatedTimeT>(value);
194 }
195 template <typename CreatedTimeT = Aws::Utils::DateTime>
196 GetFieldResponse& WithCreatedTime(CreatedTimeT&& value) {
197 SetCreatedTime(std::forward<CreatedTimeT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
207 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
208 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
209 void SetLastModifiedTime(LastModifiedTimeT&& value) {
210 m_lastModifiedTimeHasBeenSet = true;
211 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
212 }
213 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
214 GetFieldResponse& WithLastModifiedTime(LastModifiedTimeT&& value) {
215 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
216 return *this;
217 }
219
221
224 inline const FieldAttributes& GetAttributes() const { return m_attributes; }
225 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
226 template <typename AttributesT = FieldAttributes>
227 void SetAttributes(AttributesT&& value) {
228 m_attributesHasBeenSet = true;
229 m_attributes = std::forward<AttributesT>(value);
230 }
231 template <typename AttributesT = FieldAttributes>
232 GetFieldResponse& WithAttributes(AttributesT&& value) {
233 SetAttributes(std::forward<AttributesT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_fieldId;
239
240 Aws::String m_name;
241
242 Aws::String m_fieldArn;
243
244 Aws::String m_description;
245
247
249
251
252 bool m_deleted{false};
253
254 Aws::Utils::DateTime m_createdTime{};
255
256 Aws::Utils::DateTime m_lastModifiedTime{};
257
258 FieldAttributes m_attributes;
259 bool m_fieldIdHasBeenSet = false;
260 bool m_nameHasBeenSet = false;
261 bool m_fieldArnHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_typeHasBeenSet = false;
264 bool m_namespaceHasBeenSet = false;
265 bool m_tagsHasBeenSet = false;
266 bool m_deletedHasBeenSet = false;
267 bool m_createdTimeHasBeenSet = false;
268 bool m_lastModifiedTimeHasBeenSet = false;
269 bool m_attributesHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace ConnectCases
274} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECTCASES_API GetFieldResponse(Aws::Utils::Json::JsonView jsonValue)
GetFieldResponse & WithType(FieldType value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
GetFieldResponse & WithTags(TagsT &&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)
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