AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GlossaryItem.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/GlossaryItemAdditionalAttributes.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/GlossaryStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/datazone/model/GlossaryUsageRestriction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DataZone
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DATAZONE_API GlossaryItem() = default;
40 AWS_DATAZONE_API GlossaryItem(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const GlossaryItemAdditionalAttributes& GetAdditionalAttributes() const { return m_additionalAttributes; }
50 inline bool AdditionalAttributesHasBeenSet() const { return m_additionalAttributesHasBeenSet; }
51 template<typename AdditionalAttributesT = GlossaryItemAdditionalAttributes>
52 void SetAdditionalAttributes(AdditionalAttributesT&& value) { m_additionalAttributesHasBeenSet = true; m_additionalAttributes = std::forward<AdditionalAttributesT>(value); }
53 template<typename AdditionalAttributesT = GlossaryItemAdditionalAttributes>
54 GlossaryItem& WithAdditionalAttributes(AdditionalAttributesT&& value) { SetAdditionalAttributes(std::forward<AdditionalAttributesT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 GlossaryItem& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
73 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
74 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
75 template<typename CreatedByT = Aws::String>
76 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
77 template<typename CreatedByT = Aws::String>
78 GlossaryItem& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
80
82
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 GlossaryItem& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
98 inline const Aws::String& GetDomainId() const { return m_domainId; }
99 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
100 template<typename DomainIdT = Aws::String>
101 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
102 template<typename DomainIdT = Aws::String>
103 GlossaryItem& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetId() const { return m_id; }
111 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
112 template<typename IdT = Aws::String>
113 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
114 template<typename IdT = Aws::String>
115 GlossaryItem& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
117
119
122 inline const Aws::String& GetName() const { return m_name; }
123 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
124 template<typename NameT = Aws::String>
125 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
126 template<typename NameT = Aws::String>
127 GlossaryItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
129
131
134 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
135 inline bool OwningProjectIdHasBeenSet() const { return m_owningProjectIdHasBeenSet; }
136 template<typename OwningProjectIdT = Aws::String>
137 void SetOwningProjectId(OwningProjectIdT&& value) { m_owningProjectIdHasBeenSet = true; m_owningProjectId = std::forward<OwningProjectIdT>(value); }
138 template<typename OwningProjectIdT = Aws::String>
139 GlossaryItem& WithOwningProjectId(OwningProjectIdT&& value) { SetOwningProjectId(std::forward<OwningProjectIdT>(value)); return *this;}
141
143
146 inline GlossaryStatus GetStatus() const { return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(GlossaryStatus value) { m_statusHasBeenSet = true; m_status = value; }
149 inline GlossaryItem& WithStatus(GlossaryStatus value) { SetStatus(value); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
157 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
158 template<typename UpdatedAtT = Aws::Utils::DateTime>
159 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
160 template<typename UpdatedAtT = Aws::Utils::DateTime>
161 GlossaryItem& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
163
165
168 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
169 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
170 template<typename UpdatedByT = Aws::String>
171 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
172 template<typename UpdatedByT = Aws::String>
173 GlossaryItem& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
175
177
180 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
181 inline bool UsageRestrictionsHasBeenSet() const { return m_usageRestrictionsHasBeenSet; }
182 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
183 void SetUsageRestrictions(UsageRestrictionsT&& value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions = std::forward<UsageRestrictionsT>(value); }
184 template<typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
185 GlossaryItem& WithUsageRestrictions(UsageRestrictionsT&& value) { SetUsageRestrictions(std::forward<UsageRestrictionsT>(value)); return *this;}
186 inline GlossaryItem& AddUsageRestrictions(GlossaryUsageRestriction value) { m_usageRestrictionsHasBeenSet = true; m_usageRestrictions.push_back(value); return *this; }
188 private:
189
190 GlossaryItemAdditionalAttributes m_additionalAttributes;
191 bool m_additionalAttributesHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdAt{};
194 bool m_createdAtHasBeenSet = false;
195
196 Aws::String m_createdBy;
197 bool m_createdByHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 Aws::String m_domainId;
203 bool m_domainIdHasBeenSet = false;
204
205 Aws::String m_id;
206 bool m_idHasBeenSet = false;
207
208 Aws::String m_name;
209 bool m_nameHasBeenSet = false;
210
211 Aws::String m_owningProjectId;
212 bool m_owningProjectIdHasBeenSet = false;
213
215 bool m_statusHasBeenSet = false;
216
217 Aws::Utils::DateTime m_updatedAt{};
218 bool m_updatedAtHasBeenSet = false;
219
220 Aws::String m_updatedBy;
221 bool m_updatedByHasBeenSet = false;
222
223 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
224 bool m_usageRestrictionsHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace DataZone
229} // namespace Aws
const Aws::String & GetCreatedBy() const
GlossaryItem & WithCreatedBy(CreatedByT &&value)
void SetStatus(GlossaryStatus value)
GlossaryItem & AddUsageRestrictions(GlossaryUsageRestriction value)
GlossaryItem & WithCreatedAt(CreatedAtT &&value)
GlossaryItem & WithUpdatedBy(UpdatedByT &&value)
GlossaryItem & WithDescription(DescriptionT &&value)
const Aws::String & GetUpdatedBy() const
void SetDomainId(DomainIdT &&value)
GlossaryItem & WithName(NameT &&value)
GlossaryItem & WithOwningProjectId(OwningProjectIdT &&value)
const Aws::String & GetDescription() const
void SetOwningProjectId(OwningProjectIdT &&value)
void SetAdditionalAttributes(AdditionalAttributesT &&value)
GlossaryItem & WithStatus(GlossaryStatus value)
const Aws::String & GetOwningProjectId() const
void SetCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API GlossaryItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomainId() const
GlossaryStatus GetStatus() const
void SetUsageRestrictions(UsageRestrictionsT &&value)
GlossaryItem & WithUpdatedAt(UpdatedAtT &&value)
GlossaryItem & WithAdditionalAttributes(AdditionalAttributesT &&value)
AWS_DATAZONE_API GlossaryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
const Aws::String & GetName() const
AWS_DATAZONE_API GlossaryItem()=default
void SetCreatedBy(CreatedByT &&value)
GlossaryItem & WithDomainId(DomainIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetDescription(DescriptionT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
GlossaryItem & WithUsageRestrictions(UsageRestrictionsT &&value)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
void SetUpdatedBy(UpdatedByT &&value)
GlossaryItem & WithId(IdT &&value)
const GlossaryItemAdditionalAttributes & GetAdditionalAttributes() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() 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