AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DeleteSubscriptionGrantResult.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 DeleteSubscriptionGrantResult() = 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
75 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
76 template <typename UpdatedByT = Aws::String>
77 void SetUpdatedBy(UpdatedByT&& value) {
78 m_updatedByHasBeenSet = true;
79 m_updatedBy = std::forward<UpdatedByT>(value);
80 }
81 template <typename UpdatedByT = Aws::String>
83 SetUpdatedBy(std::forward<UpdatedByT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetDomainId() const { return m_domainId; }
94 template <typename DomainIdT = Aws::String>
95 void SetDomainId(DomainIdT&& value) {
96 m_domainIdHasBeenSet = true;
97 m_domainId = std::forward<DomainIdT>(value);
98 }
99 template <typename DomainIdT = Aws::String>
101 SetDomainId(std::forward<DomainIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 template <typename CreatedAtT = Aws::Utils::DateTime>
112 void SetCreatedAt(CreatedAtT&& value) {
113 m_createdAtHasBeenSet = true;
114 m_createdAt = std::forward<CreatedAtT>(value);
115 }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
118 SetCreatedAt(std::forward<CreatedAtT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
128 template <typename UpdatedAtT = Aws::Utils::DateTime>
129 void SetUpdatedAt(UpdatedAtT&& value) {
130 m_updatedAtHasBeenSet = true;
131 m_updatedAt = std::forward<UpdatedAtT>(value);
132 }
133 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 SetUpdatedAt(std::forward<UpdatedAtT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
145 template <typename EnvironmentIdT = Aws::String>
146 void SetEnvironmentId(EnvironmentIdT&& value) {
147 m_environmentIdHasBeenSet = true;
148 m_environmentId = std::forward<EnvironmentIdT>(value);
149 }
150 template <typename EnvironmentIdT = Aws::String>
152 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
163 template <typename SubscriptionTargetIdT = Aws::String>
164 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
165 m_subscriptionTargetIdHasBeenSet = true;
166 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
167 }
168 template <typename SubscriptionTargetIdT = Aws::String>
170 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
171 return *this;
172 }
174
176
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
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 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
245
246 private:
247 Aws::String m_id;
248
249 Aws::String m_createdBy;
250
251 Aws::String m_updatedBy;
252
253 Aws::String m_domainId;
254
255 Aws::Utils::DateTime m_createdAt{};
256
257 Aws::Utils::DateTime m_updatedAt{};
258
259 Aws::String m_environmentId;
260
261 Aws::String m_subscriptionTargetId;
262
263 GrantedEntity m_grantedEntity;
264
266
268
269 Aws::String m_requestId;
270 Aws::Http::HttpResponseCode m_HttpResponseCode;
271 bool m_idHasBeenSet = false;
272 bool m_createdByHasBeenSet = false;
273 bool m_updatedByHasBeenSet = false;
274 bool m_domainIdHasBeenSet = false;
275 bool m_createdAtHasBeenSet = false;
276 bool m_updatedAtHasBeenSet = false;
277 bool m_environmentIdHasBeenSet = false;
278 bool m_subscriptionTargetIdHasBeenSet = false;
279 bool m_grantedEntityHasBeenSet = false;
280 bool m_statusHasBeenSet = false;
281 bool m_assetsHasBeenSet = false;
282 bool m_requestIdHasBeenSet = false;
283};
284
285} // namespace Model
286} // namespace DataZone
287} // 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