AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateSubscriptionGrantResult.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 CreateSubscriptionGrantResult() = 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
159 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
160 template <typename SubscriptionTargetIdT = Aws::String>
161 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
162 m_subscriptionTargetIdHasBeenSet = true;
163 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
164 }
165 template <typename SubscriptionTargetIdT = Aws::String>
167 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
168 return *this;
169 }
171
173
176 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
177 template <typename GrantedEntityT = GrantedEntity>
178 void SetGrantedEntity(GrantedEntityT&& value) {
179 m_grantedEntityHasBeenSet = true;
180 m_grantedEntity = std::forward<GrantedEntityT>(value);
181 }
182 template <typename GrantedEntityT = GrantedEntity>
184 SetGrantedEntity(std::forward<GrantedEntityT>(value));
185 return *this;
186 }
188
190
193 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
195 m_statusHasBeenSet = true;
196 m_status = value;
197 }
199 SetStatus(value);
200 return *this;
201 }
203
205
208 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
209 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
210 void SetAssets(AssetsT&& value) {
211 m_assetsHasBeenSet = true;
212 m_assets = std::forward<AssetsT>(value);
213 }
214 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
216 SetAssets(std::forward<AssetsT>(value));
217 return *this;
218 }
219 template <typename AssetsT = SubscribedAsset>
221 m_assetsHasBeenSet = true;
222 m_assets.emplace_back(std::forward<AssetsT>(value));
223 return *this;
224 }
226
228
229 inline const Aws::String& GetRequestId() const { return m_requestId; }
230 template <typename RequestIdT = Aws::String>
231 void SetRequestId(RequestIdT&& value) {
232 m_requestIdHasBeenSet = true;
233 m_requestId = std::forward<RequestIdT>(value);
234 }
235 template <typename RequestIdT = Aws::String>
237 SetRequestId(std::forward<RequestIdT>(value));
238 return *this;
239 }
241 private:
242 Aws::String m_id;
243
244 Aws::String m_createdBy;
245
246 Aws::String m_updatedBy;
247
248 Aws::String m_domainId;
249
250 Aws::Utils::DateTime m_createdAt{};
251
252 Aws::Utils::DateTime m_updatedAt{};
253
254 Aws::String m_environmentId;
255
256 Aws::String m_subscriptionTargetId;
257
258 GrantedEntity m_grantedEntity;
259
261
263
264 Aws::String m_requestId;
265 bool m_idHasBeenSet = false;
266 bool m_createdByHasBeenSet = false;
267 bool m_updatedByHasBeenSet = false;
268 bool m_domainIdHasBeenSet = false;
269 bool m_createdAtHasBeenSet = false;
270 bool m_updatedAtHasBeenSet = false;
271 bool m_environmentIdHasBeenSet = false;
272 bool m_subscriptionTargetIdHasBeenSet = false;
273 bool m_grantedEntityHasBeenSet = false;
274 bool m_statusHasBeenSet = false;
275 bool m_assetsHasBeenSet = false;
276 bool m_requestIdHasBeenSet = false;
277};
278
279} // namespace Model
280} // namespace DataZone
281} // namespace Aws
CreateSubscriptionGrantResult & AddAssets(AssetsT &&value)
CreateSubscriptionGrantResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateSubscriptionGrantResult & WithCreatedAt(CreatedAtT &&value)
CreateSubscriptionGrantResult & WithCreatedBy(CreatedByT &&value)
CreateSubscriptionGrantResult & WithUpdatedBy(UpdatedByT &&value)
const Aws::Vector< SubscribedAsset > & GetAssets() const
CreateSubscriptionGrantResult & WithId(IdT &&value)
CreateSubscriptionGrantResult & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
CreateSubscriptionGrantResult & WithRequestId(RequestIdT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithGrantedEntity(GrantedEntityT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult()=default
CreateSubscriptionGrantResult & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API CreateSubscriptionGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionGrantResult & WithUpdatedAt(UpdatedAtT &&value)
CreateSubscriptionGrantResult & WithStatus(SubscriptionGrantOverallStatus value)
CreateSubscriptionGrantResult & WithAssets(AssetsT &&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