AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetSubscriptionGrantResult.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 GetSubscriptionGrantResult() = 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
55 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
56 template <typename CreatedByT = Aws::String>
57 void SetCreatedBy(CreatedByT&& value) {
58 m_createdByHasBeenSet = true;
59 m_createdBy = std::forward<CreatedByT>(value);
60 }
61 template <typename CreatedByT = Aws::String>
63 SetCreatedBy(std::forward<CreatedByT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
73 template <typename UpdatedByT = Aws::String>
74 void SetUpdatedBy(UpdatedByT&& value) {
75 m_updatedByHasBeenSet = true;
76 m_updatedBy = std::forward<UpdatedByT>(value);
77 }
78 template <typename UpdatedByT = Aws::String>
80 SetUpdatedBy(std::forward<UpdatedByT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetDomainId() const { return m_domainId; }
91 template <typename DomainIdT = Aws::String>
92 void SetDomainId(DomainIdT&& value) {
93 m_domainIdHasBeenSet = true;
94 m_domainId = std::forward<DomainIdT>(value);
95 }
96 template <typename DomainIdT = Aws::String>
98 SetDomainId(std::forward<DomainIdT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
109 void SetCreatedAt(CreatedAtT&& value) {
110 m_createdAtHasBeenSet = true;
111 m_createdAt = std::forward<CreatedAtT>(value);
112 }
113 template <typename CreatedAtT = Aws::Utils::DateTime>
115 SetCreatedAt(std::forward<CreatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
125 template <typename UpdatedAtT = Aws::Utils::DateTime>
126 void SetUpdatedAt(UpdatedAtT&& value) {
127 m_updatedAtHasBeenSet = true;
128 m_updatedAt = std::forward<UpdatedAtT>(value);
129 }
130 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 SetUpdatedAt(std::forward<UpdatedAtT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
142 template <typename EnvironmentIdT = Aws::String>
143 void SetEnvironmentId(EnvironmentIdT&& value) {
144 m_environmentIdHasBeenSet = true;
145 m_environmentId = std::forward<EnvironmentIdT>(value);
146 }
147 template <typename EnvironmentIdT = Aws::String>
149 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
159 template <typename SubscriptionTargetIdT = Aws::String>
160 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
161 m_subscriptionTargetIdHasBeenSet = true;
162 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
163 }
164 template <typename SubscriptionTargetIdT = Aws::String>
165 GetSubscriptionGrantResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) {
166 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
167 return *this;
168 }
170
172
175 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
176 template <typename GrantedEntityT = GrantedEntity>
177 void SetGrantedEntity(GrantedEntityT&& value) {
178 m_grantedEntityHasBeenSet = true;
179 m_grantedEntity = std::forward<GrantedEntityT>(value);
180 }
181 template <typename GrantedEntityT = GrantedEntity>
183 SetGrantedEntity(std::forward<GrantedEntityT>(value));
184 return *this;
185 }
187
189
192 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
194 m_statusHasBeenSet = true;
195 m_status = value;
196 }
198 SetStatus(value);
199 return *this;
200 }
202
204
207 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
208 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
209 void SetAssets(AssetsT&& value) {
210 m_assetsHasBeenSet = true;
211 m_assets = std::forward<AssetsT>(value);
212 }
213 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
215 SetAssets(std::forward<AssetsT>(value));
216 return *this;
217 }
218 template <typename AssetsT = SubscribedAsset>
220 m_assetsHasBeenSet = true;
221 m_assets.emplace_back(std::forward<AssetsT>(value));
222 return *this;
223 }
225
227
228 inline const Aws::String& GetRequestId() const { return m_requestId; }
229 template <typename RequestIdT = Aws::String>
230 void SetRequestId(RequestIdT&& value) {
231 m_requestIdHasBeenSet = true;
232 m_requestId = std::forward<RequestIdT>(value);
233 }
234 template <typename RequestIdT = Aws::String>
236 SetRequestId(std::forward<RequestIdT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_id;
242
243 Aws::String m_createdBy;
244
245 Aws::String m_updatedBy;
246
247 Aws::String m_domainId;
248
249 Aws::Utils::DateTime m_createdAt{};
250
251 Aws::Utils::DateTime m_updatedAt{};
252
253 Aws::String m_environmentId;
254
255 Aws::String m_subscriptionTargetId;
256
257 GrantedEntity m_grantedEntity;
258
260
262
263 Aws::String m_requestId;
264 bool m_idHasBeenSet = false;
265 bool m_createdByHasBeenSet = false;
266 bool m_updatedByHasBeenSet = false;
267 bool m_domainIdHasBeenSet = false;
268 bool m_createdAtHasBeenSet = false;
269 bool m_updatedAtHasBeenSet = false;
270 bool m_environmentIdHasBeenSet = false;
271 bool m_subscriptionTargetIdHasBeenSet = false;
272 bool m_grantedEntityHasBeenSet = false;
273 bool m_statusHasBeenSet = false;
274 bool m_assetsHasBeenSet = false;
275 bool m_requestIdHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace DataZone
280} // namespace Aws
GetSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
GetSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
GetSubscriptionGrantResult & AddAssets(AssetsT &&value)
GetSubscriptionGrantResult & WithId(IdT &&value)
GetSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
GetSubscriptionGrantResult & WithAssets(AssetsT &&value)
GetSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&value)
GetSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API GetSubscriptionGrantResult()=default
const Aws::Vector< SubscribedAsset > & GetAssets() const
GetSubscriptionGrantResult & WithEnvironmentId(EnvironmentIdT &&value)
GetSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
GetSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
GetSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAZONE_API GetSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
void SetSubscriptionTargetId(SubscriptionTargetIdT &&value)
void SetStatus(SubscriptionGrantOverallStatus 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