AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubscriptionGrantSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/GrantedEntity.h>
12#include <aws/datazone/model/SubscriptionGrantOverallStatus.h>
13#include <aws/datazone/model/SubscribedAsset.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DataZone
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DATAZONE_API SubscriptionGrantSummary() = default;
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<SubscribedAsset>& GetAssets() const { return m_assets; }
50 inline bool AssetsHasBeenSet() const { return m_assetsHasBeenSet; }
51 template<typename AssetsT = Aws::Vector<SubscribedAsset>>
52 void SetAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets = std::forward<AssetsT>(value); }
53 template<typename AssetsT = Aws::Vector<SubscribedAsset>>
54 SubscriptionGrantSummary& WithAssets(AssetsT&& value) { SetAssets(std::forward<AssetsT>(value)); return *this;}
55 template<typename AssetsT = SubscribedAsset>
56 SubscriptionGrantSummary& AddAssets(AssetsT&& value) { m_assetsHasBeenSet = true; m_assets.emplace_back(std::forward<AssetsT>(value)); return *this; }
58
60
63 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
64 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
67 template<typename CreatedAtT = Aws::Utils::DateTime>
68 SubscriptionGrantSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
70
72
75 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
76 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
77 template<typename CreatedByT = Aws::String>
78 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
79 template<typename CreatedByT = Aws::String>
80 SubscriptionGrantSummary& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
82
84
88 inline const Aws::String& GetDomainId() const { return m_domainId; }
89 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
90 template<typename DomainIdT = Aws::String>
91 void SetDomainId(DomainIdT&& value) { m_domainIdHasBeenSet = true; m_domainId = std::forward<DomainIdT>(value); }
92 template<typename DomainIdT = Aws::String>
93 SubscriptionGrantSummary& WithDomainId(DomainIdT&& value) { SetDomainId(std::forward<DomainIdT>(value)); return *this;}
95
97
100 inline const GrantedEntity& GetGrantedEntity() const { return m_grantedEntity; }
101 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
102 template<typename GrantedEntityT = GrantedEntity>
103 void SetGrantedEntity(GrantedEntityT&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::forward<GrantedEntityT>(value); }
104 template<typename GrantedEntityT = GrantedEntity>
105 SubscriptionGrantSummary& WithGrantedEntity(GrantedEntityT&& value) { SetGrantedEntity(std::forward<GrantedEntityT>(value)); return *this;}
107
109
112 inline const Aws::String& GetId() const { return m_id; }
113 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
114 template<typename IdT = Aws::String>
115 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
116 template<typename IdT = Aws::String>
117 SubscriptionGrantSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
119
121
124 inline SubscriptionGrantOverallStatus GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(SubscriptionGrantOverallStatus value) { m_statusHasBeenSet = true; m_status = value; }
129
131
134 inline const Aws::String& GetSubscriptionTargetId() const { return m_subscriptionTargetId; }
135 inline bool SubscriptionTargetIdHasBeenSet() const { return m_subscriptionTargetIdHasBeenSet; }
136 template<typename SubscriptionTargetIdT = Aws::String>
137 void SetSubscriptionTargetId(SubscriptionTargetIdT&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::forward<SubscriptionTargetIdT>(value); }
138 template<typename SubscriptionTargetIdT = Aws::String>
139 SubscriptionGrantSummary& WithSubscriptionTargetId(SubscriptionTargetIdT&& value) { SetSubscriptionTargetId(std::forward<SubscriptionTargetIdT>(value)); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
148 template<typename UpdatedAtT = Aws::Utils::DateTime>
149 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
150 template<typename UpdatedAtT = Aws::Utils::DateTime>
151 SubscriptionGrantSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
153
155
158 inline const Aws::String& GetUpdatedBy() const { return m_updatedBy; }
159 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
160 template<typename UpdatedByT = Aws::String>
161 void SetUpdatedBy(UpdatedByT&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::forward<UpdatedByT>(value); }
162 template<typename UpdatedByT = Aws::String>
163 SubscriptionGrantSummary& WithUpdatedBy(UpdatedByT&& value) { SetUpdatedBy(std::forward<UpdatedByT>(value)); return *this;}
165 private:
166
168 bool m_assetsHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdAt{};
171 bool m_createdAtHasBeenSet = false;
172
173 Aws::String m_createdBy;
174 bool m_createdByHasBeenSet = false;
175
176 Aws::String m_domainId;
177 bool m_domainIdHasBeenSet = false;
178
179 GrantedEntity m_grantedEntity;
180 bool m_grantedEntityHasBeenSet = false;
181
182 Aws::String m_id;
183 bool m_idHasBeenSet = false;
184
186 bool m_statusHasBeenSet = false;
187
188 Aws::String m_subscriptionTargetId;
189 bool m_subscriptionTargetIdHasBeenSet = false;
190
191 Aws::Utils::DateTime m_updatedAt{};
192 bool m_updatedAtHasBeenSet = false;
193
194 Aws::String m_updatedBy;
195 bool m_updatedByHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace DataZone
200} // 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 & 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