AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssets(const Aws::Vector<SubscribedAsset>& value) { m_assetsHasBeenSet = true; m_assets = value; }
52 inline void SetAssets(Aws::Vector<SubscribedAsset>&& value) { m_assetsHasBeenSet = true; m_assets = std::move(value); }
53 inline SubscriptionGrantSummary& WithAssets(const Aws::Vector<SubscribedAsset>& value) { SetAssets(value); return *this;}
54 inline SubscriptionGrantSummary& WithAssets(Aws::Vector<SubscribedAsset>&& value) { SetAssets(std::move(value)); return *this;}
55 inline SubscriptionGrantSummary& AddAssets(const SubscribedAsset& value) { m_assetsHasBeenSet = true; m_assets.push_back(value); return *this; }
56 inline SubscriptionGrantSummary& AddAssets(SubscribedAsset&& value) { m_assetsHasBeenSet = true; m_assets.push_back(std::move(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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
66 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
67 inline SubscriptionGrantSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
68 inline SubscriptionGrantSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
76 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
77 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
78 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
79 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
80 inline SubscriptionGrantSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
81 inline SubscriptionGrantSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
82 inline SubscriptionGrantSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
84
86
90 inline const Aws::String& GetDomainId() const{ return m_domainId; }
91 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
92 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
93 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
94 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
95 inline SubscriptionGrantSummary& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
96 inline SubscriptionGrantSummary& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
97 inline SubscriptionGrantSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;}
99
101
104 inline const GrantedEntity& GetGrantedEntity() const{ return m_grantedEntity; }
105 inline bool GrantedEntityHasBeenSet() const { return m_grantedEntityHasBeenSet; }
106 inline void SetGrantedEntity(const GrantedEntity& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = value; }
107 inline void SetGrantedEntity(GrantedEntity&& value) { m_grantedEntityHasBeenSet = true; m_grantedEntity = std::move(value); }
108 inline SubscriptionGrantSummary& WithGrantedEntity(const GrantedEntity& value) { SetGrantedEntity(value); return *this;}
109 inline SubscriptionGrantSummary& WithGrantedEntity(GrantedEntity&& value) { SetGrantedEntity(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetId() const{ return m_id; }
117 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
118 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
119 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
120 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
121 inline SubscriptionGrantSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
122 inline SubscriptionGrantSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
123 inline SubscriptionGrantSummary& WithId(const char* value) { SetId(value); return *this;}
125
127
130 inline const SubscriptionGrantOverallStatus& GetStatus() const{ return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(const SubscriptionGrantOverallStatus& value) { m_statusHasBeenSet = true; m_status = value; }
133 inline void SetStatus(SubscriptionGrantOverallStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
135 inline SubscriptionGrantSummary& WithStatus(SubscriptionGrantOverallStatus&& value) { SetStatus(std::move(value)); return *this;}
137
139
142 inline const Aws::String& GetSubscriptionTargetId() const{ return m_subscriptionTargetId; }
143 inline bool SubscriptionTargetIdHasBeenSet() const { return m_subscriptionTargetIdHasBeenSet; }
144 inline void SetSubscriptionTargetId(const Aws::String& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = value; }
145 inline void SetSubscriptionTargetId(Aws::String&& value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId = std::move(value); }
146 inline void SetSubscriptionTargetId(const char* value) { m_subscriptionTargetIdHasBeenSet = true; m_subscriptionTargetId.assign(value); }
149 inline SubscriptionGrantSummary& WithSubscriptionTargetId(const char* value) { SetSubscriptionTargetId(value); return *this;}
151
153
156 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
157 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
158 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
159 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
160 inline SubscriptionGrantSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
161 inline SubscriptionGrantSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
163
165
168 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
169 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
170 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
171 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
172 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
173 inline SubscriptionGrantSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
174 inline SubscriptionGrantSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
175 inline SubscriptionGrantSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
177 private:
178
180 bool m_assetsHasBeenSet = false;
181
182 Aws::Utils::DateTime m_createdAt;
183 bool m_createdAtHasBeenSet = false;
184
185 Aws::String m_createdBy;
186 bool m_createdByHasBeenSet = false;
187
188 Aws::String m_domainId;
189 bool m_domainIdHasBeenSet = false;
190
191 GrantedEntity m_grantedEntity;
192 bool m_grantedEntityHasBeenSet = false;
193
194 Aws::String m_id;
195 bool m_idHasBeenSet = false;
196
198 bool m_statusHasBeenSet = false;
199
200 Aws::String m_subscriptionTargetId;
201 bool m_subscriptionTargetIdHasBeenSet = false;
202
203 Aws::Utils::DateTime m_updatedAt;
204 bool m_updatedAtHasBeenSet = false;
205
206 Aws::String m_updatedBy;
207 bool m_updatedByHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace DataZone
212} // namespace Aws
SubscriptionGrantSummary & AddAssets(SubscribedAsset &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
SubscriptionGrantSummary & WithAssets(const Aws::Vector< SubscribedAsset > &value)
SubscriptionGrantSummary & WithStatus(SubscriptionGrantOverallStatus &&value)
SubscriptionGrantSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
SubscriptionGrantSummary & WithId(const char *value)
void SetAssets(Aws::Vector< SubscribedAsset > &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SubscriptionGrantSummary & WithGrantedEntity(GrantedEntity &&value)
SubscriptionGrantSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionGrantSummary & WithUpdatedBy(const char *value)
SubscriptionGrantSummary & WithSubscriptionTargetId(const Aws::String &value)
SubscriptionGrantSummary & WithStatus(const SubscriptionGrantOverallStatus &value)
SubscriptionGrantSummary & WithId(Aws::String &&value)
SubscriptionGrantSummary & WithDomainId(const Aws::String &value)
SubscriptionGrantSummary & WithUpdatedBy(const Aws::String &value)
void SetStatus(SubscriptionGrantOverallStatus &&value)
SubscriptionGrantSummary & WithDomainId(const char *value)
SubscriptionGrantSummary & AddAssets(const SubscribedAsset &value)
SubscriptionGrantSummary & WithDomainId(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionGrantSummary & WithGrantedEntity(const GrantedEntity &value)
SubscriptionGrantSummary & WithCreatedBy(const char *value)
SubscriptionGrantSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
SubscriptionGrantSummary & WithId(const Aws::String &value)
SubscriptionGrantSummary & WithSubscriptionTargetId(const char *value)
SubscriptionGrantSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
SubscriptionGrantSummary & WithSubscriptionTargetId(Aws::String &&value)
void SetAssets(const Aws::Vector< SubscribedAsset > &value)
const SubscriptionGrantOverallStatus & GetStatus() const
SubscriptionGrantSummary & WithUpdatedBy(Aws::String &&value)
AWS_DATAZONE_API SubscriptionGrantSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionGrantSummary & WithCreatedBy(Aws::String &&value)
void SetStatus(const SubscriptionGrantOverallStatus &value)
SubscriptionGrantSummary & WithAssets(Aws::Vector< SubscribedAsset > &&value)
AWS_DATAZONE_API SubscriptionGrantSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SubscribedAsset > & GetAssets() const
SubscriptionGrantSummary & WithCreatedBy(const Aws::String &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