AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateGlossaryTermResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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 UpdateGlossaryTermResult() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetDomainId() const { return m_domainId; }
57 template <typename DomainIdT = Aws::String>
58 void SetDomainId(DomainIdT&& value) {
59 m_domainIdHasBeenSet = true;
60 m_domainId = std::forward<DomainIdT>(value);
61 }
62 template <typename DomainIdT = Aws::String>
64 SetDomainId(std::forward<DomainIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
74 template <typename GlossaryIdT = Aws::String>
75 void SetGlossaryId(GlossaryIdT&& value) {
76 m_glossaryIdHasBeenSet = true;
77 m_glossaryId = std::forward<GlossaryIdT>(value);
78 }
79 template <typename GlossaryIdT = Aws::String>
81 SetGlossaryId(std::forward<GlossaryIdT>(value));
82 return *this;
83 }
85
87
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
109 inline GlossaryTermStatus GetStatus() const { return m_status; }
110 inline void SetStatus(GlossaryTermStatus value) {
111 m_statusHasBeenSet = true;
112 m_status = value;
113 }
115 SetStatus(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
126 template <typename ShortDescriptionT = Aws::String>
127 void SetShortDescription(ShortDescriptionT&& value) {
128 m_shortDescriptionHasBeenSet = true;
129 m_shortDescription = std::forward<ShortDescriptionT>(value);
130 }
131 template <typename ShortDescriptionT = Aws::String>
132 UpdateGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
133 SetShortDescription(std::forward<ShortDescriptionT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
144 template <typename LongDescriptionT = Aws::String>
145 void SetLongDescription(LongDescriptionT&& value) {
146 m_longDescriptionHasBeenSet = true;
147 m_longDescription = std::forward<LongDescriptionT>(value);
148 }
149 template <typename LongDescriptionT = Aws::String>
151 SetLongDescription(std::forward<LongDescriptionT>(value));
152 return *this;
153 }
155
157
161 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
162 template <typename TermRelationsT = TermRelations>
163 void SetTermRelations(TermRelationsT&& value) {
164 m_termRelationsHasBeenSet = true;
165 m_termRelations = std::forward<TermRelationsT>(value);
166 }
167 template <typename TermRelationsT = TermRelations>
169 SetTermRelations(std::forward<TermRelationsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
179 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
180 void SetUsageRestrictions(UsageRestrictionsT&& value) {
181 m_usageRestrictionsHasBeenSet = true;
182 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
183 }
184 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
185 UpdateGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
186 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
187 return *this;
188 }
190 m_usageRestrictionsHasBeenSet = true;
191 m_usageRestrictions.push_back(value);
192 return *this;
193 }
195
197
198 inline const Aws::String& GetRequestId() const { return m_requestId; }
199 template <typename RequestIdT = Aws::String>
200 void SetRequestId(RequestIdT&& value) {
201 m_requestIdHasBeenSet = true;
202 m_requestId = std::forward<RequestIdT>(value);
203 }
204 template <typename RequestIdT = Aws::String>
206 SetRequestId(std::forward<RequestIdT>(value));
207 return *this;
208 }
210 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
211
212 private:
213 Aws::String m_id;
214
215 Aws::String m_domainId;
216
217 Aws::String m_glossaryId;
218
219 Aws::String m_name;
220
222
223 Aws::String m_shortDescription;
224
225 Aws::String m_longDescription;
226
227 TermRelations m_termRelations;
228
229 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
230
231 Aws::String m_requestId;
232 Aws::Http::HttpResponseCode m_HttpResponseCode;
233 bool m_idHasBeenSet = false;
234 bool m_domainIdHasBeenSet = false;
235 bool m_glossaryIdHasBeenSet = false;
236 bool m_nameHasBeenSet = false;
237 bool m_statusHasBeenSet = false;
238 bool m_shortDescriptionHasBeenSet = false;
239 bool m_longDescriptionHasBeenSet = false;
240 bool m_termRelationsHasBeenSet = false;
241 bool m_usageRestrictionsHasBeenSet = false;
242 bool m_requestIdHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace DataZone
247} // namespace Aws
UpdateGlossaryTermResult & WithTermRelations(TermRelationsT &&value)
UpdateGlossaryTermResult & WithLongDescription(LongDescriptionT &&value)
UpdateGlossaryTermResult & WithShortDescription(ShortDescriptionT &&value)
UpdateGlossaryTermResult & WithStatus(GlossaryTermStatus value)
UpdateGlossaryTermResult & AddUsageRestrictions(GlossaryUsageRestriction value)
UpdateGlossaryTermResult & WithUsageRestrictions(UsageRestrictionsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateGlossaryTermResult & WithName(NameT &&value)
UpdateGlossaryTermResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API UpdateGlossaryTermResult()=default
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
UpdateGlossaryTermResult & WithId(IdT &&value)
AWS_DATAZONE_API UpdateGlossaryTermResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateGlossaryTermResult & WithGlossaryId(GlossaryIdT &&value)
UpdateGlossaryTermResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API UpdateGlossaryTermResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue