AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
DeleteSubscriptionGrantResult.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 DeleteSubscriptionGrantResult() = 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
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
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
195 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
197 m_statusHasBeenSet = true;
198 m_status = value;
199 }
201 SetStatus(value);
202 return *this;
203 }
205
207
210 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
211 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
212 void SetAssets(AssetsT&& value) {
213 m_assetsHasBeenSet = true;
214 m_assets = std::forward<AssetsT>(value);
215 }
216 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
218 SetAssets(std::forward<AssetsT>(value));
219 return *this;
220 }
221 template <typename AssetsT = SubscribedAsset>
223 m_assetsHasBeenSet = true;
224 m_assets.emplace_back(std::forward<AssetsT>(value));
225 return *this;
226 }
228
230
231 inline const Aws::String& GetRequestId() const { return m_requestId; }
232 template <typename RequestIdT = Aws::String>
233 void SetRequestId(RequestIdT&& value) {
234 m_requestIdHasBeenSet = true;
235 m_requestId = std::forward<RequestIdT>(value);
236 }
237 template <typename RequestIdT = Aws::String>
239 SetRequestId(std::forward<RequestIdT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_id;
245
246 Aws::String m_createdBy;
247
248 Aws::String m_updatedBy;
249
250 Aws::String m_domainId;
251
252 Aws::Utils::DateTime m_createdAt{};
253
254 Aws::Utils::DateTime m_updatedAt{};
255
256 Aws::String m_environmentId;
257
258 Aws::String m_subscriptionTargetId;
259
260 GrantedEntity m_grantedEntity;
261
263
265
266 Aws::String m_requestId;
267 bool m_idHasBeenSet = false;
268 bool m_createdByHasBeenSet = false;
269 bool m_updatedByHasBeenSet = false;
270 bool m_domainIdHasBeenSet = false;
271 bool m_createdAtHasBeenSet = false;
272 bool m_updatedAtHasBeenSet = false;
273 bool m_environmentIdHasBeenSet = false;
274 bool m_subscriptionTargetIdHasBeenSet = false;
275 bool m_grantedEntityHasBeenSet = false;
276 bool m_statusHasBeenSet = false;
277 bool m_assetsHasBeenSet = false;
278 bool m_requestIdHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace DataZone
283} // namespace Aws
const Aws::Vector< SubscribedAsset > & GetAssets() const
DeleteSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
DeleteSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
DeleteSubscriptionGrantResult & WithId(IdT &&value)
DeleteSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult()=default
DeleteSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
DeleteSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
DeleteSubscriptionGrantResult & AddAssets(AssetsT &&value)
DeleteSubscriptionGrantResult & WithAssets(AssetsT &&value)
AWS_DATAZONE_API DeleteSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DeleteSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
DeleteSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
DeleteSubscriptionGrantResult & WithEnvironmentId(EnvironmentIdT &&value)
DeleteSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&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