AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetSubscriptionGrantResult.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 GetSubscriptionGrantResult() = 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
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>
166 GetSubscriptionGrantResult& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) {
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 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
242
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 Aws::Http::HttpResponseCode m_HttpResponseCode;
268 bool m_idHasBeenSet = false;
269 bool m_createdByHasBeenSet = false;
270 bool m_updatedByHasBeenSet = false;
271 bool m_domainIdHasBeenSet = false;
272 bool m_createdAtHasBeenSet = false;
273 bool m_updatedAtHasBeenSet = false;
274 bool m_environmentIdHasBeenSet = false;
275 bool m_subscriptionTargetIdHasBeenSet = false;
276 bool m_grantedEntityHasBeenSet = false;
277 bool m_statusHasBeenSet = false;
278 bool m_assetsHasBeenSet = false;
279 bool m_requestIdHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace DataZone
284} // 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