AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateGlossaryTermResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/GlossaryTermStatus.h>
11#include <aws/datazone/model/GlossaryUsageRestriction.h>
12#include <aws/datazone/model/TermRelations.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
28 public:
29 AWS_DATAZONE_API UpdateGlossaryTermResult() = default;
32
34
37 inline const Aws::String& GetId() const { return m_id; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetDomainId() const { return m_domainId; }
56 template <typename DomainIdT = Aws::String>
57 void SetDomainId(DomainIdT&& value) {
58 m_domainIdHasBeenSet = true;
59 m_domainId = std::forward<DomainIdT>(value);
60 }
61 template <typename DomainIdT = Aws::String>
63 SetDomainId(std::forward<DomainIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetGlossaryId() const { return m_glossaryId; }
73 template <typename GlossaryIdT = Aws::String>
74 void SetGlossaryId(GlossaryIdT&& value) {
75 m_glossaryIdHasBeenSet = true;
76 m_glossaryId = std::forward<GlossaryIdT>(value);
77 }
78 template <typename GlossaryIdT = Aws::String>
80 SetGlossaryId(std::forward<GlossaryIdT>(value));
81 return *this;
82 }
84
86
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
108 inline GlossaryTermStatus GetStatus() const { return m_status; }
109 inline void SetStatus(GlossaryTermStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
124 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
125 template <typename ShortDescriptionT = Aws::String>
126 void SetShortDescription(ShortDescriptionT&& value) {
127 m_shortDescriptionHasBeenSet = true;
128 m_shortDescription = std::forward<ShortDescriptionT>(value);
129 }
130 template <typename ShortDescriptionT = Aws::String>
131 UpdateGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
132 SetShortDescription(std::forward<ShortDescriptionT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
143 template <typename LongDescriptionT = Aws::String>
144 void SetLongDescription(LongDescriptionT&& value) {
145 m_longDescriptionHasBeenSet = true;
146 m_longDescription = std::forward<LongDescriptionT>(value);
147 }
148 template <typename LongDescriptionT = Aws::String>
150 SetLongDescription(std::forward<LongDescriptionT>(value));
151 return *this;
152 }
154
156
160 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
161 template <typename TermRelationsT = TermRelations>
162 void SetTermRelations(TermRelationsT&& value) {
163 m_termRelationsHasBeenSet = true;
164 m_termRelations = std::forward<TermRelationsT>(value);
165 }
166 template <typename TermRelationsT = TermRelations>
168 SetTermRelations(std::forward<TermRelationsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
178 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
179 void SetUsageRestrictions(UsageRestrictionsT&& value) {
180 m_usageRestrictionsHasBeenSet = true;
181 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
182 }
183 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
184 UpdateGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
185 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
186 return *this;
187 }
189 m_usageRestrictionsHasBeenSet = true;
190 m_usageRestrictions.push_back(value);
191 return *this;
192 }
194
196
197 inline const Aws::String& GetRequestId() const { return m_requestId; }
198 template <typename RequestIdT = Aws::String>
199 void SetRequestId(RequestIdT&& value) {
200 m_requestIdHasBeenSet = true;
201 m_requestId = std::forward<RequestIdT>(value);
202 }
203 template <typename RequestIdT = Aws::String>
205 SetRequestId(std::forward<RequestIdT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_id;
211
212 Aws::String m_domainId;
213
214 Aws::String m_glossaryId;
215
216 Aws::String m_name;
217
219
220 Aws::String m_shortDescription;
221
222 Aws::String m_longDescription;
223
224 TermRelations m_termRelations;
225
226 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
227
228 Aws::String m_requestId;
229 bool m_idHasBeenSet = false;
230 bool m_domainIdHasBeenSet = false;
231 bool m_glossaryIdHasBeenSet = false;
232 bool m_nameHasBeenSet = false;
233 bool m_statusHasBeenSet = false;
234 bool m_shortDescriptionHasBeenSet = false;
235 bool m_longDescriptionHasBeenSet = false;
236 bool m_termRelationsHasBeenSet = false;
237 bool m_usageRestrictionsHasBeenSet = false;
238 bool m_requestIdHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace DataZone
243} // 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)
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