AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreateGlossaryTermResult.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 CreateGlossaryTermResult() = 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
89 inline const Aws::String& GetName() const { return m_name; }
90 template <typename NameT = Aws::String>
91 void SetName(NameT&& value) {
92 m_nameHasBeenSet = true;
93 m_name = std::forward<NameT>(value);
94 }
95 template <typename NameT = Aws::String>
97 SetName(std::forward<NameT>(value));
98 return *this;
99 }
101
103
106 inline GlossaryTermStatus GetStatus() const { return m_status; }
107 inline void SetStatus(GlossaryTermStatus value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetShortDescription() const { return m_shortDescription; }
122 template <typename ShortDescriptionT = Aws::String>
123 void SetShortDescription(ShortDescriptionT&& value) {
124 m_shortDescriptionHasBeenSet = true;
125 m_shortDescription = std::forward<ShortDescriptionT>(value);
126 }
127 template <typename ShortDescriptionT = Aws::String>
128 CreateGlossaryTermResult& WithShortDescription(ShortDescriptionT&& value) {
129 SetShortDescription(std::forward<ShortDescriptionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetLongDescription() const { return m_longDescription; }
139 template <typename LongDescriptionT = Aws::String>
140 void SetLongDescription(LongDescriptionT&& value) {
141 m_longDescriptionHasBeenSet = true;
142 m_longDescription = std::forward<LongDescriptionT>(value);
143 }
144 template <typename LongDescriptionT = Aws::String>
146 SetLongDescription(std::forward<LongDescriptionT>(value));
147 return *this;
148 }
150
152
155 inline const TermRelations& GetTermRelations() const { return m_termRelations; }
156 template <typename TermRelationsT = TermRelations>
157 void SetTermRelations(TermRelationsT&& value) {
158 m_termRelationsHasBeenSet = true;
159 m_termRelations = std::forward<TermRelationsT>(value);
160 }
161 template <typename TermRelationsT = TermRelations>
163 SetTermRelations(std::forward<TermRelationsT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
173 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
174 void SetUsageRestrictions(UsageRestrictionsT&& value) {
175 m_usageRestrictionsHasBeenSet = true;
176 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
177 }
178 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
179 CreateGlossaryTermResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
180 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
181 return *this;
182 }
184 m_usageRestrictionsHasBeenSet = true;
185 m_usageRestrictions.push_back(value);
186 return *this;
187 }
189
191
192 inline const Aws::String& GetRequestId() const { return m_requestId; }
193 template <typename RequestIdT = Aws::String>
194 void SetRequestId(RequestIdT&& value) {
195 m_requestIdHasBeenSet = true;
196 m_requestId = std::forward<RequestIdT>(value);
197 }
198 template <typename RequestIdT = Aws::String>
200 SetRequestId(std::forward<RequestIdT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_id;
206
207 Aws::String m_domainId;
208
209 Aws::String m_glossaryId;
210
211 Aws::String m_name;
212
214
215 Aws::String m_shortDescription;
216
217 Aws::String m_longDescription;
218
219 TermRelations m_termRelations;
220
221 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
222
223 Aws::String m_requestId;
224 bool m_idHasBeenSet = false;
225 bool m_domainIdHasBeenSet = false;
226 bool m_glossaryIdHasBeenSet = false;
227 bool m_nameHasBeenSet = false;
228 bool m_statusHasBeenSet = false;
229 bool m_shortDescriptionHasBeenSet = false;
230 bool m_longDescriptionHasBeenSet = false;
231 bool m_termRelationsHasBeenSet = false;
232 bool m_usageRestrictionsHasBeenSet = false;
233 bool m_requestIdHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace DataZone
238} // 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_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