AWS SDK for C++

AWS SDK for C++ Version 1.11.753

Loading...
Searching...
No Matches
SubscriptionGrantSummary.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 {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DataZone {
25namespace Model {
26
33 public:
34 AWS_DATAZONE_API SubscriptionGrantSummary() = default;
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
62 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
63 template <typename CreatedByT = Aws::String>
64 void SetCreatedBy(CreatedByT&& value) {
65 m_createdByHasBeenSet = true;
66 m_createdBy = std::forward<CreatedByT>(value);
67 }
68 template <typename CreatedByT = Aws::String>
70 SetCreatedBy(std::forward<CreatedByT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
80 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
81 template <typename UpdatedByT = Aws::String>
82 void SetUpdatedBy(UpdatedByT&& value) {
83 m_updatedByHasBeenSet = true;
84 m_updatedBy = std::forward<UpdatedByT>(value);
85 }
86 template <typename UpdatedByT = Aws::String>
88 SetUpdatedBy(std::forward<UpdatedByT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDomainId() const { return m_domainId; }
99 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
100 template <typename DomainIdT = Aws::String>
101 void SetDomainId(DomainIdT&& value) {
102 m_domainIdHasBeenSet = true;
103 m_domainId = std::forward<DomainIdT>(value);
104 }
105 template <typename DomainIdT = Aws::String>
107 SetDomainId(std::forward<DomainIdT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
117 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
118 template <typename CreatedAtT = Aws::Utils::DateTime>
119 void SetCreatedAt(CreatedAtT&& value) {
120 m_createdAtHasBeenSet = true;
121 m_createdAt = std::forward<CreatedAtT>(value);
122 }
123 template <typename CreatedAtT = Aws::Utils::DateTime>
125 SetCreatedAt(std::forward<CreatedAtT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
135 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
137 void SetUpdatedAt(UpdatedAtT&& value) {
138 m_updatedAtHasBeenSet = true;
139 m_updatedAt = std::forward<UpdatedAtT>(value);
140 }
141 template <typename UpdatedAtT = Aws::Utils::DateTime>
143 SetUpdatedAt(std::forward<UpdatedAtT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
153 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
154 template <typename EnvironmentIdT = Aws::String>
155 void SetEnvironmentId(EnvironmentIdT&& value) {
156 m_environmentIdHasBeenSet = true;
157 m_environmentId = std::forward<EnvironmentIdT>(value);
158 }
159 template <typename EnvironmentIdT = Aws::String>
161 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
171 inline bool SubscriptionTargetIdHasBeenSet() const { return m_subscriptionTargetIdHasBeenSet; }
172 template <typename SubscriptionTargetIdT = Aws::String>
173 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) {
174 m_subscriptionTargetIdHasBeenSet = true;
175 m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value);
176 }
177 template <typename SubscriptionTargetIdT = Aws::String>
178 SubscriptionGrantSummary& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) {
179 SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value));
180 return *this;
181 }
183
185
188 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
189 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
190 template <typename GrantedEntityT = GrantedEntity>
191 void SetGrantedEntity(GrantedEntityT&& value) {
192 m_grantedEntityHasBeenSet = true;
193 m_grantedEntity = std::forward<GrantedEntityT>(value);
194 }
195 template <typename GrantedEntityT = GrantedEntity>
197 SetGrantedEntity(std::forward<GrantedEntityT>(value));
198 return *this;
199 }
201
203
206 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
207 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
209 m_statusHasBeenSet = true;
210 m_status = value;
211 }
213 SetStatus(value);
214 return *this;
215 }
217
219
222 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
223 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
224 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
225 void SetAssets(AssetsT&& value) {
226 m_assetsHasBeenSet = true;
227 m_assets = std::forward<AssetsT>(value);
228 }
229 template <typename AssetsT = Aws::Vector<SubscribedAsset>>
231 SetAssets(std::forward<AssetsT>(value));
232 return *this;
233 }
234 template <typename AssetsT = SubscribedAsset>
236 m_assetsHasBeenSet = true;
237 m_assets.emplace_back(std::forward<AssetsT>(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 bool m_idHasBeenSet = false;
264 bool m_createdByHasBeenSet = false;
265 bool m_updatedByHasBeenSet = false;
266 bool m_domainIdHasBeenSet = false;
267 bool m_createdAtHasBeenSet = false;
268 bool m_updatedAtHasBeenSet = false;
269 bool m_environmentIdHasBeenSet = false;
270 bool m_subscriptionTargetIdHasBeenSet = false;
271 bool m_grantedEntityHasBeenSet = false;
272 bool m_statusHasBeenSet = false;
273 bool m_assetsHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace DataZone
278} // namespace Aws
SubscriptionGrantSummary & WithDomainId(DomainIdT &&value)
AWS_DATAZONE_API SubscriptionGrantSummary()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionGrantOverallStatus GetStatus() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetSubscriptionTargetId(SubscriptionTargetIdT &&value)
SubscriptionGrantSummary & WithSubscriptionTargetId(SubscriptionTargetIdT &&value)
SubscriptionGrantSummary & WithStatus(SubscriptionGrantOverallStatus value)
SubscriptionGrantSummary & WithId(IdT &&value)
SubscriptionGrantSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
SubscriptionGrantSummary & WithCreatedBy(CreatedByT &&value)
SubscriptionGrantSummary & WithUpdatedBy(UpdatedByT &&value)
void SetStatus(SubscriptionGrantOverallStatus value)
SubscriptionGrantSummary & WithGrantedEntity(GrantedEntityT &&value)
SubscriptionGrantSummary & WithAssets(AssetsT &&value)
SubscriptionGrantSummary & AddAssets(AssetsT &&value)
SubscriptionGrantSummary & WithEnvironmentId(EnvironmentIdT &&value)
SubscriptionGrantSummary & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API SubscriptionGrantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API SubscriptionGrantSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SubscribedAsset > & GetAssets() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue