AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateSubscriptionGrantStatusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datazone/DataZone_EXPORTS.h>
12#include <aws/datazone/model/GrantedEntity.h>
13#include <aws/datazone/model/SubscribedAsset.h>
14#include <aws/datazone/model/SubscriptionGrantOverallStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone {
28namespace Model {
30 public:
31 AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
58 template <typename CreatedByT = Aws::String>
59 void SetCreatedBy(CreatedByT&& value) {
60 m_createdByHasBeenSet = true;
61 m_createdBy = std::forward<CreatedByT>(value);
62 }
63 template <typename CreatedByT = Aws::String>
65 SetCreatedBy(std::forward<CreatedByT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
75 template <typename UpdatedByT = Aws::String>
76 void SetUpdatedBy(UpdatedByT&& value) {
77 m_updatedByHasBeenSet = true;
78 m_updatedBy = std::forward<UpdatedByT>(value);
79 }
80 template <typename UpdatedByT = Aws::String>
82 SetUpdatedBy(std::forward<UpdatedByT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetDomainId() const { return m_domainId; }
93 template <typename DomainIdT = Aws::String>
94 void SetDomainId(DomainIdT&& value) {
95 m_domainIdHasBeenSet = true;
96 m_domainId = std::forward<DomainIdT>(value);
97 }
98 template <typename DomainIdT = Aws::String>
100 SetDomainId(std::forward<DomainIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
110 template <typename CreatedAtT = Aws::Utils::DateTime>
111 void SetCreatedAt(CreatedAtT&& value) {
112 m_createdAtHasBeenSet = true;
113 m_createdAt = std::forward<CreatedAtT>(value);
114 }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
117 SetCreatedAt(std::forward<CreatedAtT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
127 template <typename UpdatedAtT = Aws::Utils::DateTime>
128 void SetUpdatedAt(UpdatedAtT&& value) {
129 m_updatedAtHasBeenSet = true;
130 m_updatedAt = std::forward<UpdatedAtT>(value);
131 }
132 template <typename UpdatedAtT = Aws::Utils::DateTime>
134 SetUpdatedAt(std::forward<UpdatedAtT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
144 template <typename EnvironmentIdT = Aws::String>
145 void SetEnvironmentId(EnvironmentIdT&& value) {
146 m_environmentIdHasBeenSet = true;
147 m_environmentId = std::forward<EnvironmentIdT>(value);
148 }
149 template <typename EnvironmentIdT = Aws::String>
151 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
162 template <typename SubscriptionTargetIdT = Aws::String>
163 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
164 m_subscriptionTargetIdHasBeenSet = true;
165 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
166 }
167 template <typename SubscriptionTargetIdT = Aws::String>
169 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
170 return *this;
171 }
173
175
179 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
180 template <typename GrantedEntityT = GrantedEntity>
181 void SetGrantedEntity(GrantedEntityT&& value) {
182 m_grantedEntityHasBeenSet = true;
183 m_grantedEntity = std::forward<GrantedEntityT>(value);
184 }
185 template <typename GrantedEntityT = GrantedEntity>
187 SetGrantedEntity(std::forward<GrantedEntityT>(value));
188 return *this;
189 }
191
193
197 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
199 m_statusHasBeenSet = true;
200 m_status = value;
201 }
203 SetStatus(value);
204 return *this;
205 }
207
209
212 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
213 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
214 void SetAssets(AssetsT&& value) {
215 m_assetsHasBeenSet = true;
216 m_assets = std::forward<AssetsT>(value);
217 }
218 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
220 SetAssets(std::forward<AssetsT>(value));
221 return *this;
222 }
223 template <typename AssetsT = SubscribedAsset>
225 m_assetsHasBeenSet = true;
226 m_assets.emplace_back(std::forward<AssetsT>(value));
227 return *this;
228 }
230
232
233 inline const Aws::String& GetRequestId() const { return m_requestId; }
234 template <typename RequestIdT = Aws::String>
235 void SetRequestId(RequestIdT&& value) {
236 m_requestIdHasBeenSet = true;
237 m_requestId = std::forward<RequestIdT>(value);
238 }
239 template <typename RequestIdT = Aws::String>
241 SetRequestId(std::forward<RequestIdT>(value));
242 return *this;
243 }
245 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
246
247 private:
248 Aws::String m_id;
249
250 Aws::String m_createdBy;
251
252 Aws::String m_updatedBy;
253
254 Aws::String m_domainId;
255
256 Aws::Utils::DateTime m_createdAt{};
257
258 Aws::Utils::DateTime m_updatedAt{};
259
260 Aws::String m_environmentId;
261
262 Aws::String m_subscriptionTargetId;
263
264 GrantedEntity m_grantedEntity;
265
267
269
270 Aws::String m_requestId;
271 Aws::Http::HttpResponseCode m_HttpResponseCode;
272 bool m_idHasBeenSet = false;
273 bool m_createdByHasBeenSet = false;
274 bool m_updatedByHasBeenSet = false;
275 bool m_domainIdHasBeenSet = false;
276 bool m_createdAtHasBeenSet = false;
277 bool m_updatedAtHasBeenSet = false;
278 bool m_environmentIdHasBeenSet = false;
279 bool m_subscriptionTargetIdHasBeenSet = false;
280 bool m_grantedEntityHasBeenSet = false;
281 bool m_statusHasBeenSet = false;
282 bool m_assetsHasBeenSet = false;
283 bool m_requestIdHasBeenSet = false;
284};
285
286} // namespace Model
287} // namespace DataZone
288} // namespace Aws
UpdateSubscriptionGrantStatusResult & WithDomainId(DomainIdT &&value)
UpdateSubscriptionGrantStatusResult & WithEnvironmentId(EnvironmentIdT &&value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
UpdateSubscriptionGrantStatusResult & WithCreatedAt(CreatedAtT &&value)
UpdateSubscriptionGrantStatusResult & WithAssets(AssetsT &&value)
AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateSubscriptionGrantStatusResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateSubscriptionGrantStatusResult & WithUpdatedBy(UpdatedByT &&value)
UpdateSubscriptionGrantStatusResult & WithCreatedBy(CreatedByT &&value)
UpdateSubscriptionGrantStatusResult & AddAssets(AssetsT &&value)
UpdateSubscriptionGrantStatusResult & WithStatus(SubscriptionGrantOverallStatus value)
UpdateSubscriptionGrantStatusResult & WithGrantedEntity(GrantedEntityT &&value)
UpdateSubscriptionGrantStatusResult & WithRequestId(RequestIdT &&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