AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetGlossaryTermResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/GlossaryTermStatus.h>
12#include <aws/datazone/model/GlossaryUsageRestriction.h>
13#include <aws/datazone/model/TermRelations.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone {
27namespace Model {
29 public:
30 AWS_DATAZONE_API GetGlossaryTermResult() = default;
33
35
39 inline const Aws::String& GetDomainId() const { return m_domainId; }
40 template <typename DomainIdT = Aws::String>
41 void SetDomainId(DomainIdT&& value) {
42 m_domainIdHasBeenSet = true;
43 m_domainId = std::forward<DomainIdT>(value);
44 }
45 template <typename DomainIdT = Aws::String>
46 GetGlossaryTermResult& WithDomainId(DomainIdT&& value) {
47 SetDomainId(std::forward<DomainIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
57 template <typename GlossaryIdT = Aws::String>
58 void SetGlossaryId(GlossaryIdT&& value) {
59 m_glossaryIdHasBeenSet = true;
60 m_glossaryId = std::forward<GlossaryIdT>(value);
61 }
62 template <typename GlossaryIdT = Aws::String>
63 GetGlossaryTermResult& WithGlossaryId(GlossaryIdT&& value) {
64 SetGlossaryId(std::forward<GlossaryIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetId() const { return m_id; }
74 template <typename IdT = Aws::String>
75 void SetId(IdT&& value) {
76 m_idHasBeenSet = true;
77 m_id = std::forward<IdT>(value);
78 }
79 template <typename IdT = Aws::String>
81 SetId(std::forward<IdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 template <typename NameT = Aws::String>
92 void SetName(NameT&& value) {
93 m_nameHasBeenSet = true;
94 m_name = std::forward<NameT>(value);
95 }
96 template <typename NameT = Aws::String>
98 SetName(std::forward<NameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
108 template <typename ShortDescriptionT = Aws::String>
109 void SetShortDescription(ShortDescriptionT&& value) {
110 m_shortDescriptionHasBeenSet = true;
111 m_shortDescription = std::forward<ShortDescriptionT>(value);
112 }
113 template <typename ShortDescriptionT = Aws::String>
114 GetGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
115 SetShortDescription(std::forward<ShortDescriptionT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
125 template <typename LongDescriptionT = Aws::String>
126 void SetLongDescription(LongDescriptionT&& value) {
127 m_longDescriptionHasBeenSet = true;
128 m_longDescription = std::forward<LongDescriptionT>(value);
129 }
130 template <typename LongDescriptionT = Aws::String>
131 GetGlossaryTermResult& WithLongDescription(LongDescriptionT&& value) {
132 SetLongDescription(std::forward<LongDescriptionT>(value));
133 return *this;
134 }
136
138
141 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
142 template <typename TermRelationsT = TermRelations>
143 void SetTermRelations(TermRelationsT&& value) {
144 m_termRelationsHasBeenSet = true;
145 m_termRelations = std::forward<TermRelationsT>(value);
146 }
147 template <typename TermRelationsT = TermRelations>
148 GetGlossaryTermResult& WithTermRelations(TermRelationsT&& value) {
149 SetTermRelations(std::forward<TermRelationsT>(value));
150 return *this;
151 }
153
155
158 inline GlossaryTermStatus GetStatus() const { return m_status; }
159 inline void SetStatus(GlossaryTermStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) {
176 m_createdAtHasBeenSet = true;
177 m_createdAt = std::forward<CreatedAtT>(value);
178 }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
181 SetCreatedAt(std::forward<CreatedAtT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
191 template <typename CreatedByT = Aws::String>
192 void SetCreatedBy(CreatedByT&& value) {
193 m_createdByHasBeenSet = true;
194 m_createdBy = std::forward<CreatedByT>(value);
195 }
196 template <typename CreatedByT = Aws::String>
198 SetCreatedBy(std::forward<CreatedByT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
208 template <typename UpdatedAtT = Aws::Utils::DateTime>
209 void SetUpdatedAt(UpdatedAtT&& value) {
210 m_updatedAtHasBeenSet = true;
211 m_updatedAt = std::forward<UpdatedAtT>(value);
212 }
213 template <typename UpdatedAtT = Aws::Utils::DateTime>
215 SetUpdatedAt(std::forward<UpdatedAtT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
225 template <typename UpdatedByT = Aws::String>
226 void SetUpdatedBy(UpdatedByT&& value) {
227 m_updatedByHasBeenSet = true;
228 m_updatedBy = std::forward<UpdatedByT>(value);
229 }
230 template <typename UpdatedByT = Aws::String>
232 SetUpdatedBy(std::forward<UpdatedByT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
242 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
243 void SetUsageRestrictions(UsageRestrictionsT&& value) {
244 m_usageRestrictionsHasBeenSet = true;
245 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
246 }
247 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
248 GetGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
249 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
250 return *this;
251 }
253 m_usageRestrictionsHasBeenSet = true;
254 m_usageRestrictions.push_back(value);
255 return *this;
256 }
258
260
261 inline const Aws::String& GetRequestId() const { return m_requestId; }
262 template <typename RequestIdT = Aws::String>
263 void SetRequestId(RequestIdT&& value) {
264 m_requestIdHasBeenSet = true;
265 m_requestId = std::forward<RequestIdT>(value);
266 }
267 template <typename RequestIdT = Aws::String>
269 SetRequestId(std::forward<RequestIdT>(value));
270 return *this;
271 }
273 private:
274 Aws::String m_domainId;
275
276 Aws::String m_glossaryId;
277
278 Aws::String m_id;
279
280 Aws::String m_name;
281
282 Aws::String m_shortDescription;
283
284 Aws::String m_longDescription;
285
286 TermRelations m_termRelations;
287
289
290 Aws::Utils::DateTime m_createdAt{};
291
292 Aws::String m_createdBy;
293
294 Aws::Utils::DateTime m_updatedAt{};
295
296 Aws::String m_updatedBy;
297
298 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
299
300 Aws::String m_requestId;
301 bool m_domainIdHasBeenSet = false;
302 bool m_glossaryIdHasBeenSet = false;
303 bool m_idHasBeenSet = false;
304 bool m_nameHasBeenSet = false;
305 bool m_shortDescriptionHasBeenSet = false;
306 bool m_longDescriptionHasBeenSet = false;
307 bool m_termRelationsHasBeenSet = false;
308 bool m_statusHasBeenSet = false;
309 bool m_createdAtHasBeenSet = false;
310 bool m_createdByHasBeenSet = false;
311 bool m_updatedAtHasBeenSet = false;
312 bool m_updatedByHasBeenSet = false;
313 bool m_usageRestrictionsHasBeenSet = false;
314 bool m_requestIdHasBeenSet = false;
315};
316
317} // namespace Model
318} // namespace DataZone
319} // 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_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