AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateGlossaryResult.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 CreateGlossaryResult() = 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 CreateGlossaryResult& 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 CreateGlossaryResult& WithOwningProjectId(OwningProjectIdT&& value) {
97 SetOwningProjectId(std::forward<OwningProjectIdT>(value));
98 return *this;
99 }
101
103
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 CreateGlossaryResult& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
123 inline GlossaryStatus GetStatus() const { return m_status; }
124 inline void SetStatus(GlossaryStatus value) {
125 m_statusHasBeenSet = true;
126 m_status = value;
127 }
129 SetStatus(value);
130 return *this;
131 }
133
135
138 inline const Aws::Vector<GlossaryUsageRestriction>& GetUsageRestrictions() const { return m_usageRestrictions; }
139 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
140 void SetUsageRestrictions(UsageRestrictionsT&& value) {
141 m_usageRestrictionsHasBeenSet = true;
142 m_usageRestrictions = std::forward<UsageRestrictionsT>(value);
143 }
144 template <typename UsageRestrictionsT = Aws::Vector<GlossaryUsageRestriction>>
145 CreateGlossaryResult& WithUsageRestrictions(UsageRestrictionsT&& value) {
146 SetUsageRestrictions(std::forward<UsageRestrictionsT>(value));
147 return *this;
148 }
150 m_usageRestrictionsHasBeenSet = true;
151 m_usageRestrictions.push_back(value);
152 return *this;
153 }
155
157
158 inline const Aws::String& GetRequestId() const { return m_requestId; }
159 template <typename RequestIdT = Aws::String>
160 void SetRequestId(RequestIdT&& value) {
161 m_requestIdHasBeenSet = true;
162 m_requestId = std::forward<RequestIdT>(value);
163 }
164 template <typename RequestIdT = Aws::String>
165 CreateGlossaryResult& WithRequestId(RequestIdT&& value) {
166 SetRequestId(std::forward<RequestIdT>(value));
167 return *this;
168 }
170 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
171
172 private:
173 Aws::String m_domainId;
174
175 Aws::String m_id;
176
177 Aws::String m_name;
178
179 Aws::String m_owningProjectId;
180
181 Aws::String m_description;
182
184
185 Aws::Vector<GlossaryUsageRestriction> m_usageRestrictions;
186
187 Aws::String m_requestId;
188 Aws::Http::HttpResponseCode m_HttpResponseCode;
189 bool m_domainIdHasBeenSet = false;
190 bool m_idHasBeenSet = false;
191 bool m_nameHasBeenSet = false;
192 bool m_owningProjectIdHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194 bool m_statusHasBeenSet = false;
195 bool m_usageRestrictionsHasBeenSet = false;
196 bool m_requestIdHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace DataZone
201} // namespace Aws
void SetUsageRestrictions(UsageRestrictionsT &&value)
AWS_DATAZONE_API CreateGlossaryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API CreateGlossaryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGlossaryResult & WithDomainId(DomainIdT &&value)
CreateGlossaryResult & WithStatus(GlossaryStatus value)
CreateGlossaryResult & WithName(NameT &&value)
CreateGlossaryResult & WithDescription(DescriptionT &&value)
CreateGlossaryResult & WithOwningProjectId(OwningProjectIdT &&value)
AWS_DATAZONE_API CreateGlossaryResult()=default
void SetOwningProjectId(OwningProjectIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< GlossaryUsageRestriction > & GetUsageRestrictions() const
CreateGlossaryResult & WithUsageRestrictions(UsageRestrictionsT &&value)
CreateGlossaryResult & WithRequestId(RequestIdT &&value)
CreateGlossaryResult & AddUsageRestrictions(GlossaryUsageRestriction value)
CreateGlossaryResult & WithId(IdT &&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