AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscriptionSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/SubscriptionStatus.h>
11#include <aws/datazone/model/SubscribedListing.h>
12#include <aws/datazone/model/SubscribedPrincipal.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DATAZONE_API SubscriptionSummary();
41 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
49 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
51 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
52 inline SubscriptionSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
53 inline SubscriptionSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
61 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
62 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
63 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
64 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
65 inline SubscriptionSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
66 inline SubscriptionSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
67 inline SubscriptionSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
69
71
75 inline const Aws::String& GetDomainId() const{ return m_domainId; }
76 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
77 inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; }
78 inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); }
79 inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); }
80 inline SubscriptionSummary& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
81 inline SubscriptionSummary& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
82 inline SubscriptionSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;}
84
86
89 inline const Aws::String& GetId() const{ return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
92 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
93 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
94 inline SubscriptionSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
95 inline SubscriptionSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
96 inline SubscriptionSummary& WithId(const char* value) { SetId(value); return *this;}
98
100
103 inline bool GetRetainPermissions() const{ return m_retainPermissions; }
104 inline bool RetainPermissionsHasBeenSet() const { return m_retainPermissionsHasBeenSet; }
105 inline void SetRetainPermissions(bool value) { m_retainPermissionsHasBeenSet = true; m_retainPermissions = value; }
106 inline SubscriptionSummary& WithRetainPermissions(bool value) { SetRetainPermissions(value); return *this;}
108
110
113 inline const SubscriptionStatus& GetStatus() const{ return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(const SubscriptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
116 inline void SetStatus(SubscriptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
117 inline SubscriptionSummary& WithStatus(const SubscriptionStatus& value) { SetStatus(value); return *this;}
118 inline SubscriptionSummary& WithStatus(SubscriptionStatus&& value) { SetStatus(std::move(value)); return *this;}
120
122
125 inline const SubscribedListing& GetSubscribedListing() const{ return m_subscribedListing; }
126 inline bool SubscribedListingHasBeenSet() const { return m_subscribedListingHasBeenSet; }
127 inline void SetSubscribedListing(const SubscribedListing& value) { m_subscribedListingHasBeenSet = true; m_subscribedListing = value; }
128 inline void SetSubscribedListing(SubscribedListing&& value) { m_subscribedListingHasBeenSet = true; m_subscribedListing = std::move(value); }
130 inline SubscriptionSummary& WithSubscribedListing(SubscribedListing&& value) { SetSubscribedListing(std::move(value)); return *this;}
132
134
137 inline const SubscribedPrincipal& GetSubscribedPrincipal() const{ return m_subscribedPrincipal; }
138 inline bool SubscribedPrincipalHasBeenSet() const { return m_subscribedPrincipalHasBeenSet; }
139 inline void SetSubscribedPrincipal(const SubscribedPrincipal& value) { m_subscribedPrincipalHasBeenSet = true; m_subscribedPrincipal = value; }
140 inline void SetSubscribedPrincipal(SubscribedPrincipal&& value) { m_subscribedPrincipalHasBeenSet = true; m_subscribedPrincipal = std::move(value); }
144
146
149 inline const Aws::String& GetSubscriptionRequestId() const{ return m_subscriptionRequestId; }
150 inline bool SubscriptionRequestIdHasBeenSet() const { return m_subscriptionRequestIdHasBeenSet; }
151 inline void SetSubscriptionRequestId(const Aws::String& value) { m_subscriptionRequestIdHasBeenSet = true; m_subscriptionRequestId = value; }
152 inline void SetSubscriptionRequestId(Aws::String&& value) { m_subscriptionRequestIdHasBeenSet = true; m_subscriptionRequestId = std::move(value); }
153 inline void SetSubscriptionRequestId(const char* value) { m_subscriptionRequestIdHasBeenSet = true; m_subscriptionRequestId.assign(value); }
155 inline SubscriptionSummary& WithSubscriptionRequestId(Aws::String&& value) { SetSubscriptionRequestId(std::move(value)); return *this;}
156 inline SubscriptionSummary& WithSubscriptionRequestId(const char* value) { SetSubscriptionRequestId(value); return *this;}
158
160
163 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
164 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
165 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
166 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
167 inline SubscriptionSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
168 inline SubscriptionSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
176 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
177 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
178 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
179 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
180 inline SubscriptionSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
181 inline SubscriptionSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
182 inline SubscriptionSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
184 private:
185
186 Aws::Utils::DateTime m_createdAt;
187 bool m_createdAtHasBeenSet = false;
188
189 Aws::String m_createdBy;
190 bool m_createdByHasBeenSet = false;
191
192 Aws::String m_domainId;
193 bool m_domainIdHasBeenSet = false;
194
195 Aws::String m_id;
196 bool m_idHasBeenSet = false;
197
198 bool m_retainPermissions;
199 bool m_retainPermissionsHasBeenSet = false;
200
201 SubscriptionStatus m_status;
202 bool m_statusHasBeenSet = false;
203
204 SubscribedListing m_subscribedListing;
205 bool m_subscribedListingHasBeenSet = false;
206
207 SubscribedPrincipal m_subscribedPrincipal;
208 bool m_subscribedPrincipalHasBeenSet = false;
209
210 Aws::String m_subscriptionRequestId;
211 bool m_subscriptionRequestIdHasBeenSet = false;
212
213 Aws::Utils::DateTime m_updatedAt;
214 bool m_updatedAtHasBeenSet = false;
215
216 Aws::String m_updatedBy;
217 bool m_updatedByHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace DataZone
222} // namespace Aws
SubscriptionSummary & WithUpdatedBy(Aws::String &&value)
SubscriptionSummary & WithStatus(SubscriptionStatus &&value)
const SubscribedPrincipal & GetSubscribedPrincipal() const
AWS_DATAZONE_API SubscriptionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
SubscriptionSummary & WithRetainPermissions(bool value)
void SetSubscribedListing(const SubscribedListing &value)
void SetSubscribedPrincipal(SubscribedPrincipal &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AWS_DATAZONE_API SubscriptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetSubscribedPrincipal(const SubscribedPrincipal &value)
SubscriptionSummary & WithCreatedBy(const char *value)
SubscriptionSummary & WithSubscribedListing(const SubscribedListing &value)
SubscriptionSummary & WithId(Aws::String &&value)
const SubscriptionStatus & GetStatus() const
SubscriptionSummary & WithSubscribedPrincipal(SubscribedPrincipal &&value)
SubscriptionSummary & WithSubscriptionRequestId(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionSummary & WithId(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
SubscriptionSummary & WithStatus(const SubscriptionStatus &value)
void SetSubscriptionRequestId(const Aws::String &value)
SubscriptionSummary & WithSubscribedPrincipal(const SubscribedPrincipal &value)
void SetUpdatedBy(const Aws::String &value)
SubscriptionSummary & WithSubscriptionRequestId(const char *value)
void SetDomainId(const Aws::String &value)
SubscriptionSummary & WithDomainId(Aws::String &&value)
SubscriptionSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetSubscribedListing(SubscribedListing &&value)
SubscriptionSummary & WithSubscribedListing(SubscribedListing &&value)
SubscriptionSummary & WithCreatedBy(Aws::String &&value)
const Aws::String & GetSubscriptionRequestId() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const SubscriptionStatus &value)
void SetStatus(SubscriptionStatus &&value)
SubscriptionSummary & WithSubscriptionRequestId(Aws::String &&value)
SubscriptionSummary & WithId(const Aws::String &value)
SubscriptionSummary & WithUpdatedBy(const char *value)
SubscriptionSummary & WithDomainId(const char *value)
SubscriptionSummary & WithUpdatedBy(const Aws::String &value)
SubscriptionSummary & WithDomainId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
SubscriptionSummary & WithCreatedBy(const Aws::String &value)
const SubscribedListing & GetSubscribedListing() const
void SetCreatedBy(const Aws::String &value)
SubscriptionSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue