AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateGlossaryResult.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/GlossaryStatus.h>
12#include <aws/datazone/model/GlossaryUsageRestriction.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 UpdateGlossaryResult() = default;
32
34
38 inline const Aws::String& GetDomainId() const { return m_domainId; }
39 template <typename DomainIdT = Aws::String>
40 void SetDomainId(DomainIdT&& value) {
41 m_domainIdHasBeenSet = true;
42 m_domainId = std::forward<DomainIdT>(value);
43 }
44 template <typename DomainIdT = Aws::String>
45 UpdateGlossaryResult& WithDomainId(DomainIdT&& value) {
46 SetDomainId(std::forward<DomainIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetId() const { return m_id; }
56 template <typename IdT = Aws::String>
57 void SetId(IdT&& value) {
58 m_idHasBeenSet = true;
59 m_id = std::forward<IdT>(value);
60 }
61 template <typename IdT = Aws::String>
63 SetId(std::forward<IdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
90 template <typename OwningProjectIdT = Aws::String>
91 void SetOwningProjectId(OwningProjectIdT&& value) {
92 m_owningProjectIdHasBeenSet = true;
93 m_owningProjectId = std::forward<OwningProjectIdT>(value);
94 }
95 template <typename OwningProjectIdT = Aws::String>
96 UpdateGlossaryResult& WithOwningProjectId(OwningProjectIdT&& value) {
97 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetDescription() const { return m_description; }
108 template <typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) {
110 m_descriptionHasBeenSet = true;
111 m_description = std::forward<DescriptionT>(value);
112 }
113 template <typename DescriptionT = Aws::String>
114 UpdateGlossaryResult& WithDescription(DescriptionT&& value) {
115 SetDescription(std::forward<DescriptionT>(value));
116 return *this;
117 }
119
121
125 inline GlossaryStatus GetStatus() const { return m_status; }
126 inline void SetStatus(GlossaryStatus value) {
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
140 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
141 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
142 void SetUsageRestrictions(UsageRestrictionsT&& value) {
143 m_usageRestrictionsHasBeenSet = true;
144 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
145 }
146 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
147 UpdateGlossaryResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
148 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
149 return *this;
150 }
152 m_usageRestrictionsHasBeenSet = true;
153 m_usageRestrictions.push_back(value);
154 return *this;
155 }
157
159
160 inline const Aws::String& GetRequestId() const { return m_requestId; }
161 template <typename RequestIdT = Aws::String>
162 void SetRequestId(RequestIdT&& value) {
163 m_requestIdHasBeenSet = true;
164 m_requestId = std::forward<RequestIdT>(value);
165 }
166 template <typename RequestIdT = Aws::String>
167 UpdateGlossaryResult& WithRequestId(RequestIdT&& value) {
168 SetRequestId(std::forward<RequestIdT>(value));
169 return *this;
170 }
172 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
173
174 private:
175 Aws::String m_domainId;
176
177 Aws::String m_id;
178
179 Aws::String m_name;
180
181 Aws::String m_owningProjectId;
182
183 Aws::String m_description;
184
186
187 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
188
189 Aws::String m_requestId;
190 Aws::Http::HttpResponseCode m_HttpResponseCode;
191 bool m_domainIdHasBeenSet = false;
192 bool m_idHasBeenSet = false;
193 bool m_nameHasBeenSet = false;
194 bool m_owningProjectIdHasBeenSet = false;
195 bool m_descriptionHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_usageRestrictionsHasBeenSet = false;
198 bool m_requestIdHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace DataZone
203} // namespace Aws
UpdateGlossaryResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
UpdateGlossaryResult & WithDescription(DescriptionT &&value)
void SetOwningProjectId(OwningProjectIdT &&value)
void SetUsageRestrictions(UsageRestrictionsT &&value)
AWS_DATAZONE_API UpdateGlossaryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateGlossaryResult & WithStatus(GlossaryStatus value)
UpdateGlossaryResult & WithId(IdT &&value)
AWS_DATAZONE_API UpdateGlossaryResult()=default
UpdateGlossaryResult & AddUsageRestrictions(GlossaryUsageRestriction value)
AWS_DATAZONE_API UpdateGlossaryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateGlossaryResult & WithDomainId(DomainIdT &&value)
UpdateGlossaryResult & WithName(NameT &&value)
UpdateGlossaryResult & WithOwningProjectId(OwningProjectIdT &&value)
UpdateGlossaryResult & WithUsageRestrictions(UsageRestrictionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue