AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateGlossaryResult.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/GlossaryStatus.h>
11#include <aws/datazone/model/GlossaryUsageRestriction.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
27 public:
28 AWS_DATAZONE_API UpdateGlossaryResult() = default;
31
33
37 inline const Aws::String& GetDomainId() const { return m_domainId; }
38 template <typename DomainIdT = Aws::String>
39 void SetDomainId(DomainIdT&& value) {
40 m_domainIdHasBeenSet = true;
41 m_domainId = std::forward<DomainIdT>(value);
42 }
43 template <typename DomainIdT = Aws::String>
44 UpdateGlossaryResult& WithDomainId(DomainIdT&& value) {
45 SetDomainId(std::forward<DomainIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetOwningProjectId() const { return m_owningProjectId; }
89 template <typename OwningProjectIdT = Aws::String>
90 void SetOwningProjectId(OwningProjectIdT&& value) {
91 m_owningProjectIdHasBeenSet = true;
92 m_owningProjectId = std::forward<OwningProjectIdT>(value);
93 }
94 template <typename OwningProjectIdT = Aws::String>
95 UpdateGlossaryResult& WithOwningProjectId(OwningProjectIdT&& value) {
96 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetDescription() const { return m_description; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 UpdateGlossaryResult& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
124 inline GlossaryStatus GetStatus() const { return m_status; }
125 inline void SetStatus(GlossaryStatus value) {
126 m_statusHasBeenSet = true;
127 m_status = value;
128 }
130 SetStatus(value);
131 return *this;
132 }
134
136
139 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
140 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
141 void SetUsageRestrictions(UsageRestrictionsT&& value) {
142 m_usageRestrictionsHasBeenSet = true;
143 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
144 }
145 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
146 UpdateGlossaryResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
147 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
148 return *this;
149 }
151 m_usageRestrictionsHasBeenSet = true;
152 m_usageRestrictions.push_back(value);
153 return *this;
154 }
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template <typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) {
162 m_requestIdHasBeenSet = true;
163 m_requestId = std::forward<RequestIdT>(value);
164 }
165 template <typename RequestIdT = Aws::String>
166 UpdateGlossaryResult& WithRequestId(RequestIdT&& value) {
167 SetRequestId(std::forward<RequestIdT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_domainId;
173
174 Aws::String m_id;
175
176 Aws::String m_name;
177
178 Aws::String m_owningProjectId;
179
180 Aws::String m_description;
181
183
184 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
185
186 Aws::String m_requestId;
187 bool m_domainIdHasBeenSet = false;
188 bool m_idHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_owningProjectIdHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_statusHasBeenSet = false;
193 bool m_usageRestrictionsHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace DataZone
199} // namespace Aws
UpdateGlossaryResult & WithRequestId(RequestIdT &&value)
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