AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetGlossaryTermResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/GlossaryTermStatus.h>
13#include <aws/datazone/model/GlossaryUsageRestriction.h>
14#include <aws/datazone/model/TermRelations.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
30 public:
31 AWS_DATAZONE_API GetGlossaryTermResult() = default;
34
36
40 inline const Aws::String& GetDomainId() const { return m_domainId; }
41 template <typename DomainIdT = Aws::String>
42 void SetDomainId(DomainIdT&& value) {
43 m_domainIdHasBeenSet = true;
44 m_domainId = std::forward<DomainIdT>(value);
45 }
46 template <typename DomainIdT = Aws::String>
47 GetGlossaryTermResult& WithDomainId(DomainIdT&& value) {
48 SetDomainId(std::forward<DomainIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
58 template <typename GlossaryIdT = Aws::String>
59 void SetGlossaryId(GlossaryIdT&& value) {
60 m_glossaryIdHasBeenSet = true;
61 m_glossaryId = std::forward<GlossaryIdT>(value);
62 }
63 template <typename GlossaryIdT = Aws::String>
64 GetGlossaryTermResult& WithGlossaryId(GlossaryIdT&& value) {
65 SetGlossaryId(std::forward<GlossaryIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 template <typename IdT = Aws::String>
76 void SetId(IdT&& value) {
77 m_idHasBeenSet = true;
78 m_id = std::forward<IdT>(value);
79 }
80 template <typename IdT = Aws::String>
82 SetId(std::forward<IdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
109 template <typename ShortDescriptionT = Aws::String>
110 void SetShortDescription(ShortDescriptionT&& value) {
111 m_shortDescriptionHasBeenSet = true;
112 m_shortDescription = std::forward<ShortDescriptionT>(value);
113 }
114 template <typename ShortDescriptionT = Aws::String>
115 GetGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
116 SetShortDescription(std::forward<ShortDescriptionT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
126 template <typename LongDescriptionT = Aws::String>
127 void SetLongDescription(LongDescriptionT&& value) {
128 m_longDescriptionHasBeenSet = true;
129 m_longDescription = std::forward<LongDescriptionT>(value);
130 }
131 template <typename LongDescriptionT = Aws::String>
132 GetGlossaryTermResult& WithLongDescription(LongDescriptionT&& value) {
133 SetLongDescription(std::forward<LongDescriptionT>(value));
134 return *this;
135 }
137
139
142 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
143 template <typename TermRelationsT = TermRelations>
144 void SetTermRelations(TermRelationsT&& value) {
145 m_termRelationsHasBeenSet = true;
146 m_termRelations = std::forward<TermRelationsT>(value);
147 }
148 template <typename TermRelationsT = TermRelations>
149 GetGlossaryTermResult& WithTermRelations(TermRelationsT&& value) {
150 SetTermRelations(std::forward<TermRelationsT>(value));
151 return *this;
152 }
154
156
159 inline GlossaryTermStatus GetStatus() const { return m_status; }
160 inline void SetStatus(GlossaryTermStatus value) {
161 m_statusHasBeenSet = true;
162 m_status = value;
163 }
165 SetStatus(value);
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
175 template <typename CreatedAtT = Aws::Utils::DateTime>
176 void SetCreatedAt(CreatedAtT&& value) {
177 m_createdAtHasBeenSet = true;
178 m_createdAt = std::forward<CreatedAtT>(value);
179 }
180 template <typename CreatedAtT = Aws::Utils::DateTime>
182 SetCreatedAt(std::forward<CreatedAtT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
192 template <typename CreatedByT = Aws::String>
193 void SetCreatedBy(CreatedByT&& value) {
194 m_createdByHasBeenSet = true;
195 m_createdBy = std::forward<CreatedByT>(value);
196 }
197 template <typename CreatedByT = Aws::String>
199 SetCreatedBy(std::forward<CreatedByT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
209 template <typename UpdatedAtT = Aws::Utils::DateTime>
210 void SetUpdatedAt(UpdatedAtT&& value) {
211 m_updatedAtHasBeenSet = true;
212 m_updatedAt = std::forward<UpdatedAtT>(value);
213 }
214 template <typename UpdatedAtT = Aws::Utils::DateTime>
216 SetUpdatedAt(std::forward<UpdatedAtT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
226 template <typename UpdatedByT = Aws::String>
227 void SetUpdatedBy(UpdatedByT&& value) {
228 m_updatedByHasBeenSet = true;
229 m_updatedBy = std::forward<UpdatedByT>(value);
230 }
231 template <typename UpdatedByT = Aws::String>
233 SetUpdatedBy(std::forward<UpdatedByT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
243 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
244 void SetUsageRestrictions(UsageRestrictionsT&& value) {
245 m_usageRestrictionsHasBeenSet = true;
246 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
247 }
248 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
249 GetGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
250 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
251 return *this;
252 }
254 m_usageRestrictionsHasBeenSet = true;
255 m_usageRestrictions.push_back(value);
256 return *this;
257 }
259
261
262 inline const Aws::String& GetRequestId() const { return m_requestId; }
263 template <typename RequestIdT = Aws::String>
264 void SetRequestId(RequestIdT&& value) {
265 m_requestIdHasBeenSet = true;
266 m_requestId = std::forward<RequestIdT>(value);
267 }
268 template <typename RequestIdT = Aws::String>
270 SetRequestId(std::forward<RequestIdT>(value));
271 return *this;
272 }
274 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
275
276 private:
277 Aws::String m_domainId;
278
279 Aws::String m_glossaryId;
280
281 Aws::String m_id;
282
283 Aws::String m_name;
284
285 Aws::String m_shortDescription;
286
287 Aws::String m_longDescription;
288
289 TermRelations m_termRelations;
290
292
293 Aws::Utils::DateTime m_createdAt{};
294
295 Aws::String m_createdBy;
296
297 Aws::Utils::DateTime m_updatedAt{};
298
299 Aws::String m_updatedBy;
300
301 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
302
303 Aws::String m_requestId;
304 Aws::Http::HttpResponseCode m_HttpResponseCode;
305 bool m_domainIdHasBeenSet = false;
306 bool m_glossaryIdHasBeenSet = false;
307 bool m_idHasBeenSet = false;
308 bool m_nameHasBeenSet = false;
309 bool m_shortDescriptionHasBeenSet = false;
310 bool m_longDescriptionHasBeenSet = false;
311 bool m_termRelationsHasBeenSet = false;
312 bool m_statusHasBeenSet = false;
313 bool m_createdAtHasBeenSet = false;
314 bool m_createdByHasBeenSet = false;
315 bool m_updatedAtHasBeenSet = false;
316 bool m_updatedByHasBeenSet = false;
317 bool m_usageRestrictionsHasBeenSet = false;
318 bool m_requestIdHasBeenSet = false;
319};
320
321} // namespace Model
322} // namespace DataZone
323} // namespace Aws
void SetLongDescription(LongDescriptionT &&value)
GetGlossaryTermResult & WithLongDescription(LongDescriptionT &&value)
GetGlossaryTermResult & WithUpdatedBy(UpdatedByT &&value)
GetGlossaryTermResult & WithShortDescription(ShortDescriptionT &&value)
GetGlossaryTermResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
GetGlossaryTermResult & WithTermRelations(TermRelationsT &&value)
void SetShortDescription(ShortDescriptionT &&value)
GetGlossaryTermResult & WithUpdatedAt(UpdatedAtT &&value)
GetGlossaryTermResult & WithCreatedBy(CreatedByT &&value)
void SetUsageRestrictions(UsageRestrictionsT &&value)
GetGlossaryTermResult & WithStatus(GlossaryTermStatus value)
GetGlossaryTermResult & WithUsageRestrictions(UsageRestrictionsT &&value)
GetGlossaryTermResult & WithGlossaryId(GlossaryIdT &&value)
GetGlossaryTermResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API GetGlossaryTermResult()=default
GetGlossaryTermResult & AddUsageRestrictions(GlossaryUsageRestriction value)
GetGlossaryTermResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API GetGlossaryTermResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetGlossaryTermResult & WithName(NameT &&value)
GetGlossaryTermResult & WithId(IdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DATAZONE_API GetGlossaryTermResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue