AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateGlossaryTermResult.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 CreateGlossaryTermResult() = 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
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 GlossaryTermStatus GetStatus() const { return m_status; }
108 inline void SetStatus(GlossaryTermStatus value) {
109 m_statusHasBeenSet = true;
110 m_status = value;
111 }
113 SetStatus(value);
114 return *this;
115 }
117
119
122 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
123 template <typename ShortDescriptionT = Aws::String>
124 void SetShortDescription(ShortDescriptionT&& value) {
125 m_shortDescriptionHasBeenSet = true;
126 m_shortDescription = std::forward<ShortDescriptionT>(value);
127 }
128 template <typename ShortDescriptionT = Aws::String>
129 CreateGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
130 SetShortDescription(std::forward<ShortDescriptionT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
140 template <typename LongDescriptionT = Aws::String>
141 void SetLongDescription(LongDescriptionT&& value) {
142 m_longDescriptionHasBeenSet = true;
143 m_longDescription = std::forward<LongDescriptionT>(value);
144 }
145 template <typename LongDescriptionT = Aws::String>
147 SetLongDescription(std::forward<LongDescriptionT>(value));
148 return *this;
149 }
151
153
156 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
157 template <typename TermRelationsT = TermRelations>
158 void SetTermRelations(TermRelationsT&& value) {
159 m_termRelationsHasBeenSet = true;
160 m_termRelations = std::forward<TermRelationsT>(value);
161 }
162 template <typename TermRelationsT = TermRelations>
164 SetTermRelations(std::forward<TermRelationsT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
174 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
175 void SetUsageRestrictions(UsageRestrictionsT&& value) {
176 m_usageRestrictionsHasBeenSet = true;
177 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
178 }
179 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
180 CreateGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
181 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
182 return *this;
183 }
185 m_usageRestrictionsHasBeenSet = true;
186 m_usageRestrictions.push_back(value);
187 return *this;
188 }
190
192
193 inline const Aws::String& GetRequestId() const { return m_requestId; }
194 template <typename RequestIdT = Aws::String>
195 void SetRequestId(RequestIdT&& value) {
196 m_requestIdHasBeenSet = true;
197 m_requestId = std::forward<RequestIdT>(value);
198 }
199 template <typename RequestIdT = Aws::String>
201 SetRequestId(std::forward<RequestIdT>(value));
202 return *this;
203 }
205 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
206
207 private:
208 Aws::String m_id;
209
210 Aws::String m_domainId;
211
212 Aws::String m_glossaryId;
213
214 Aws::String m_name;
215
217
218 Aws::String m_shortDescription;
219
220 Aws::String m_longDescription;
221
222 TermRelations m_termRelations;
223
224 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
225
226 Aws::String m_requestId;
227 Aws::Http::HttpResponseCode m_HttpResponseCode;
228 bool m_idHasBeenSet = false;
229 bool m_domainIdHasBeenSet = false;
230 bool m_glossaryIdHasBeenSet = false;
231 bool m_nameHasBeenSet = false;
232 bool m_statusHasBeenSet = false;
233 bool m_shortDescriptionHasBeenSet = false;
234 bool m_longDescriptionHasBeenSet = false;
235 bool m_termRelationsHasBeenSet = false;
236 bool m_usageRestrictionsHasBeenSet = false;
237 bool m_requestIdHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace DataZone
242} // namespace Aws
AWS_DATAZONE_API CreateGlossaryTermResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGlossaryTermResult & WithGlossaryId(GlossaryIdT &&value)
CreateGlossaryTermResult & WithShortDescription(ShortDescriptionT &&value)
CreateGlossaryTermResult & WithLongDescription(LongDescriptionT &&value)
CreateGlossaryTermResult & WithDomainId(DomainIdT &&value)
CreateGlossaryTermResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API CreateGlossaryTermResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGlossaryTermResult & WithName(NameT &&value)
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
CreateGlossaryTermResult & WithTermRelations(TermRelationsT &&value)
CreateGlossaryTermResult & WithId(IdT &&value)
CreateGlossaryTermResult & AddUsageRestrictions(GlossaryUsageRestriction value)
CreateGlossaryTermResult & WithUsageRestrictions(UsageRestrictionsT &&value)
CreateGlossaryTermResult & WithStatus(GlossaryTermStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_DATAZONE_API CreateGlossaryTermResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue