AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
GlossaryTermItem.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/GlossaryTermItemAdditionalAttributes.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/GlossaryTermStatus.h>
12#include <aws/datazone/model/TermRelations.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/datazone/model/GlossaryUsageRestriction.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DataZone
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DATAZONE_API GlossaryTermItem() = default;
41 AWS_DATAZONE_API GlossaryTermItem(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const GlossaryTermItemAdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
51 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
52 template<typename AdditionalAttributesT = GlossaryTermItemAdditionalAttributes>
53 void SetAdditionalAttributes(AdditionalAttributesT&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::forward<AdditionalAttributesT>(value); }
54 template<typename AdditionalAttributesT = GlossaryTermItemAdditionalAttributes>
55 GlossaryTermItem& WithAdditionalAttributes(AdditionalAttributesT&& value) { SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
63 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
64 template<typename CreatedAtT = Aws::Utils::DateTime>
65 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
66 template<typename CreatedAtT = Aws::Utils::DateTime>
67 GlossaryTermItem& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
69
71
74 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
75 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
76 template<typename CreatedByT = Aws::String>
77 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
78 template<typename CreatedByT = Aws::String>
79 GlossaryTermItem& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
81
83
87 inline const Aws::String& GetDomainId() const { return m_domainId; }
88 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
89 template<typename DomainIdT = Aws::String>
90 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
91 template<typename DomainIdT = Aws::String>
92 GlossaryTermItem& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
100 inline bool GlossaryIdHasBeenSet() const { return m_glossaryIdHasBeenSet; }
101 template<typename GlossaryIdT = Aws::String>
102 void SetGlossaryId(GlossaryIdT&& value) { m_glossaryIdHasBeenSet = true; m_glossaryId = std::forward<GlossaryIdT>(value); }
103 template<typename GlossaryIdT = Aws::String>
104 GlossaryTermItem& WithGlossaryId(GlossaryIdT&& value) { SetGlossaryId(std::forward<GlossaryIdT>(value)); return *this;}
106
108
111 inline const Aws::String& GetId() const { return m_id; }
112 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
113 template<typename IdT = Aws::String>
114 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
115 template<typename IdT = Aws::String>
116 GlossaryTermItem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
118
120
123 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
124 inline bool LongDescriptionHasBeenSet() const { return m_longDescriptionHasBeenSet; }
125 template<typename LongDescriptionT = Aws::String>
126 void SetLongDescription(LongDescriptionT&& value) { m_longDescriptionHasBeenSet = true; m_longDescription = std::forward<LongDescriptionT>(value); }
127 template<typename LongDescriptionT = Aws::String>
128 GlossaryTermItem& WithLongDescription(LongDescriptionT&& value) { SetLongDescription(std::forward<LongDescriptionT>(value)); return *this;}
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 template<typename NameT = Aws::String>
138 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
139 template<typename NameT = Aws::String>
140 GlossaryTermItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
142
144
147 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
148 inline bool ShortDescriptionHasBeenSet() const { return m_shortDescriptionHasBeenSet; }
149 template<typename ShortDescriptionT = Aws::String>
150 void SetShortDescription(ShortDescriptionT&& value) { m_shortDescriptionHasBeenSet = true; m_shortDescription = std::forward<ShortDescriptionT>(value); }
151 template<typename ShortDescriptionT = Aws::String>
152 GlossaryTermItem& WithShortDescription(ShortDescriptionT&& value) { SetShortDescription(std::forward<ShortDescriptionT>(value)); return *this;}
154
156
159 inline GlossaryTermStatus GetStatus() const { return m_status; }
160 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
161 inline void SetStatus(GlossaryTermStatus value) { m_statusHasBeenSet = true; m_status = value; }
162 inline GlossaryTermItem& WithStatus(GlossaryTermStatus value) { SetStatus(value); return *this;}
164
166
169 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
170 inline bool TermRelationsHasBeenSet() const { return m_termRelationsHasBeenSet; }
171 template<typename TermRelationsT = TermRelations>
172 void SetTermRelations(TermRelationsT&& value) { m_termRelationsHasBeenSet = true; m_termRelations = std::forward<TermRelationsT>(value); }
173 template<typename TermRelationsT = TermRelations>
174 GlossaryTermItem& WithTermRelations(TermRelationsT&& value) { SetTermRelations(std::forward<TermRelationsT>(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
182 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
183 template<typename UpdatedAtT = Aws::Utils::DateTime>
184 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
185 template<typename UpdatedAtT = Aws::Utils::DateTime>
186 GlossaryTermItem& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
188
190
193 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
194 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
195 template<typename UpdatedByT = Aws::String>
196 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
197 template<typename UpdatedByT = Aws::String>
198 GlossaryTermItem& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
200
202
205 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
206 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
207 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
208 void SetUsageRestrictions(UsageRestrictionsT&& value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions = std::forward<UsageRestrictionsT>(value); }
209 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
210 GlossaryTermItem& WithUsageRestrictions(UsageRestrictionsT&& value) { SetUsageRestrictions(std::forward<UsageRestrictionsT>(value)); return *this;}
211 inline GlossaryTermItem& AddUsageRestrictions(GlossaryUsageRestriction value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions.push_back(value); return *this; }
213 private:
214
215 GlossaryTermItemAdditionalAttributes m_additionalAttributes;
216 bool m_additionalAttributesHasBeenSet = false;
217
218 Aws::Utils::DateTime m_createdAt{};
219 bool m_createdAtHasBeenSet = false;
220
221 Aws::String m_createdBy;
222 bool m_createdByHasBeenSet = false;
223
224 Aws::String m_domainId;
225 bool m_domainIdHasBeenSet = false;
226
227 Aws::String m_glossaryId;
228 bool m_glossaryIdHasBeenSet = false;
229
230 Aws::String m_id;
231 bool m_idHasBeenSet = false;
232
233 Aws::String m_longDescription;
234 bool m_longDescriptionHasBeenSet = false;
235
236 Aws::String m_name;
237 bool m_nameHasBeenSet = false;
238
239 Aws::String m_shortDescription;
240 bool m_shortDescriptionHasBeenSet = false;
241
243 bool m_statusHasBeenSet = false;
244
245 TermRelations m_termRelations;
246 bool m_termRelationsHasBeenSet = false;
247
248 Aws::Utils::DateTime m_updatedAt{};
249 bool m_updatedAtHasBeenSet = false;
250
251 Aws::String m_updatedBy;
252 bool m_updatedByHasBeenSet = false;
253
254 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
255 bool m_usageRestrictionsHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace DataZone
260} // namespace Aws
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
GlossaryTermItem & WithName(NameT &&value)
void SetGlossaryId(GlossaryIdT &&value)
GlossaryTermItem & WithUsageRestrictions(UsageRestrictionsT &&value)
AWS_DATAZONE_API GlossaryTermItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
const GlossaryTermItemAdditionalAttributes & GetAdditionalAttributes() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetUpdatedBy() const
void SetAdditionalAttributes(AdditionalAttributesT &&value)
const Aws::String & GetGlossaryId() const
GlossaryTermItem & WithUpdatedBy(UpdatedByT &&value)
GlossaryTermItem & WithStatus(GlossaryTermStatus value)
GlossaryTermItem & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetCreatedBy() const
GlossaryTermItem & WithLongDescription(LongDescriptionT &&value)
GlossaryTermItem & WithGlossaryId(GlossaryIdT &&value)
GlossaryTermItem & WithUpdatedAt(UpdatedAtT &&value)
void SetStatus(GlossaryTermStatus value)
AWS_DATAZONE_API GlossaryTermItem(Aws::Utils::Json::JsonView jsonValue)
void SetUsageRestrictions(UsageRestrictionsT &&value)
void SetLongDescription(LongDescriptionT &&value)
GlossaryTermItem & WithAdditionalAttributes(AdditionalAttributesT &&value)
GlossaryTermItem & WithDomainId(DomainIdT &&value)
void SetTermRelations(TermRelationsT &&value)
GlossaryTermItem & AddUsageRestrictions(GlossaryUsageRestriction value)
void SetShortDescription(ShortDescriptionT &&value)
GlossaryTermItem & WithShortDescription(ShortDescriptionT &&value)
const Aws::String & GetDomainId() const
GlossaryTermItem & WithId(IdT &&value)
const TermRelations & GetTermRelations() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_DATAZONE_API GlossaryTermItem()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLongDescription() const
const Aws::String & GetShortDescription() const
GlossaryTermItem & WithCreatedAt(CreatedAtT &&value)
GlossaryTermItem & WithTermRelations(TermRelationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue