AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateSubscriptionGrantStatusResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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/GrantedEntity.h>
12#include <aws/datazone/model/SubscribedAsset.h>
13#include <aws/datazone/model/SubscriptionGrantOverallStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DataZone {
27namespace Model {
29 public:
30 AWS_DATAZONE_API UpdateSubscriptionGrantStatusResult() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 template <typename IdT = Aws::String>
40 void SetId(IdT&& value) {
41 m_idHasBeenSet = true;
42 m_id = std::forward<IdT>(value);
43 }
44 template <typename IdT = Aws::String>
46 SetId(std::forward<IdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
57 template <typename CreatedByT = Aws::String>
58 void SetCreatedBy(CreatedByT&& value) {
59 m_createdByHasBeenSet = true;
60 m_createdBy = std::forward<CreatedByT>(value);
61 }
62 template <typename CreatedByT = Aws::String>
64 SetCreatedBy(std::forward<CreatedByT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
74 template <typename UpdatedByT = Aws::String>
75 void SetUpdatedBy(UpdatedByT&& value) {
76 m_updatedByHasBeenSet = true;
77 m_updatedBy = std::forward<UpdatedByT>(value);
78 }
79 template <typename UpdatedByT = Aws::String>
81 SetUpdatedBy(std::forward<UpdatedByT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetDomainId() const { return m_domainId; }
92 template <typename DomainIdT = Aws::String>
93 void SetDomainId(DomainIdT&& value) {
94 m_domainIdHasBeenSet = true;
95 m_domainId = std::forward<DomainIdT>(value);
96 }
97 template <typename DomainIdT = Aws::String>
99 SetDomainId(std::forward<DomainIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
109 template <typename CreatedAtT = Aws::Utils::DateTime>
110 void SetCreatedAt(CreatedAtT&& value) {
111 m_createdAtHasBeenSet = true;
112 m_createdAt = std::forward<CreatedAtT>(value);
113 }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
116 SetCreatedAt(std::forward<CreatedAtT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
126 template <typename UpdatedAtT = Aws::Utils::DateTime>
127 void SetUpdatedAt(UpdatedAtT&& value) {
128 m_updatedAtHasBeenSet = true;
129 m_updatedAt = std::forward<UpdatedAtT>(value);
130 }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
133 SetUpdatedAt(std::forward<UpdatedAtT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
143 template <typename EnvironmentIdT = Aws::String>
144 void SetEnvironmentId(EnvironmentIdT&& value) {
145 m_environmentIdHasBeenSet = true;
146 m_environmentId = std::forward<EnvironmentIdT>(value);
147 }
148 template <typename EnvironmentIdT = Aws::String>
150 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
161 template <typename SubscriptionTargetIdT = Aws::String>
162 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
163 m_subscriptionTargetIdHasBeenSet = true;
164 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
165 }
166 template <typename SubscriptionTargetIdT = Aws::String>
168 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
169 return *this;
170 }
172
174
178 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
179 template <typename GrantedEntityT = GrantedEntity>
180 void SetGrantedEntity(GrantedEntityT&& value) {
181 m_grantedEntityHasBeenSet = true;
182 m_grantedEntity = std::forward<GrantedEntityT>(value);
183 }
184 template <typename GrantedEntityT = GrantedEntity>
186 SetGrantedEntity(std::forward<GrantedEntityT>(value));
187 return *this;
188 }
190
192
196 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
198 m_statusHasBeenSet = true;
199 m_status = value;
200 }
202 SetStatus(value);
203 return *this;
204 }
206
208
211 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
212 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
213 void SetAssets(AssetsT&& value) {
214 m_assetsHasBeenSet = true;
215 m_assets = std::forward<AssetsT>(value);
216 }
217 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
219 SetAssets(std::forward<AssetsT>(value));
220 return *this;
221 }
222 template <typename AssetsT = SubscribedAsset>
224 m_assetsHasBeenSet = true;
225 m_assets.emplace_back(std::forward<AssetsT>(value));
226 return *this;
227 }
229
231
232 inline const Aws::String& GetRequestId() const { return m_requestId; }
233 template <typename RequestIdT = Aws::String>
234 void SetRequestId(RequestIdT&& value) {
235 m_requestIdHasBeenSet = true;
236 m_requestId = std::forward<RequestIdT>(value);
237 }
238 template <typename RequestIdT = Aws::String>
240 SetRequestId(std::forward<RequestIdT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_id;
246
247 Aws::String m_createdBy;
248
249 Aws::String m_updatedBy;
250
251 Aws::String m_domainId;
252
253 Aws::Utils::DateTime m_createdAt{};
254
255 Aws::Utils::DateTime m_updatedAt{};
256
257 Aws::String m_environmentId;
258
259 Aws::String m_subscriptionTargetId;
260
261 GrantedEntity m_grantedEntity;
262
264
266
267 Aws::String m_requestId;
268 bool m_idHasBeenSet = false;
269 bool m_createdByHasBeenSet = false;
270 bool m_updatedByHasBeenSet = false;
271 bool m_domainIdHasBeenSet = false;
272 bool m_createdAtHasBeenSet = false;
273 bool m_updatedAtHasBeenSet = false;
274 bool m_environmentIdHasBeenSet = false;
275 bool m_subscriptionTargetIdHasBeenSet = false;
276 bool m_grantedEntityHasBeenSet = false;
277 bool m_statusHasBeenSet = false;
278 bool m_assetsHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace DataZone
284} // 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