AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateSubscriptionGrantResult.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 CreateSubscriptionGrantResult() = 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
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
177 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
178 template <typename GrantedEntityT = GrantedEntity>
179 void SetGrantedEntity(GrantedEntityT&& value) {
180 m_grantedEntityHasBeenSet = true;
181 m_grantedEntity = std::forward<GrantedEntityT>(value);
182 }
183 template <typename GrantedEntityT = GrantedEntity>
185 SetGrantedEntity(std::forward<GrantedEntityT>(value));
186 return *this;
187 }
189
191
194 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
196 m_statusHasBeenSet = true;
197 m_status = value;
198 }
200 SetStatus(value);
201 return *this;
202 }
204
206
209 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
210 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
211 void SetAssets(AssetsT&& value) {
212 m_assetsHasBeenSet = true;
213 m_assets = std::forward<AssetsT>(value);
214 }
215 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
217 SetAssets(std::forward<AssetsT>(value));
218 return *this;
219 }
220 template <typename AssetsT = SubscribedAsset>
222 m_assetsHasBeenSet = true;
223 m_assets.emplace_back(std::forward<AssetsT>(value));
224 return *this;
225 }
227
229
230 inline const Aws::String& GetRequestId() const { return m_requestId; }
231 template <typename RequestIdT = Aws::String>
232 void SetRequestId(RequestIdT&& value) {
233 m_requestIdHasBeenSet = true;
234 m_requestId = std::forward<RequestIdT>(value);
235 }
236 template <typename RequestIdT = Aws::String>
238 SetRequestId(std::forward<RequestIdT>(value));
239 return *this;
240 }
242 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
243
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 Aws::Http::HttpResponseCode m_HttpResponseCode;
269 bool m_idHasBeenSet = false;
270 bool m_createdByHasBeenSet = false;
271 bool m_updatedByHasBeenSet = false;
272 bool m_domainIdHasBeenSet = false;
273 bool m_createdAtHasBeenSet = false;
274 bool m_updatedAtHasBeenSet = false;
275 bool m_environmentIdHasBeenSet = false;
276 bool m_subscriptionTargetIdHasBeenSet = false;
277 bool m_grantedEntityHasBeenSet = false;
278 bool m_statusHasBeenSet = false;
279 bool m_assetsHasBeenSet = false;
280 bool m_requestIdHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace DataZone
285} // 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