AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscriptionRequestSummary.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/SubscriptionRequestStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datazone/model/SubscribedListing.h>
13#include <aws/datazone/model/SubscribedPrincipal.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 SubscriptionRequestSummary();
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
50 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
52 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
53 inline SubscriptionRequestSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
54 inline SubscriptionRequestSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
62 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
63 inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
64 inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
65 inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
66 inline SubscriptionRequestSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
67 inline SubscriptionRequestSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
68 inline SubscriptionRequestSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
70
72
75 inline const Aws::String& GetDecisionComment() const{ return m_decisionComment; }
76 inline bool DecisionCommentHasBeenSet() const { return m_decisionCommentHasBeenSet; }
77 inline void SetDecisionComment(const Aws::String& value) { m_decisionCommentHasBeenSet = true; m_decisionComment = value; }
78 inline void SetDecisionComment(Aws::String&& value) { m_decisionCommentHasBeenSet = true; m_decisionComment = std::move(value); }
79 inline void SetDecisionComment(const char* value) { m_decisionCommentHasBeenSet = true; m_decisionComment.assign(value); }
81 inline SubscriptionRequestSummary& WithDecisionComment(Aws::String&& value) { SetDecisionComment(std::move(value)); return *this;}
82 inline SubscriptionRequestSummary& WithDecisionComment(const char* value) { SetDecisionComment(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 SubscriptionRequestSummary& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
96 inline SubscriptionRequestSummary& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
97 inline SubscriptionRequestSummary& WithDomainId(const char* value) { SetDomainId(value); return *this;}
99
101
104 inline const Aws::String& GetId() const{ return m_id; }
105 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
106 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
107 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
108 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
109 inline SubscriptionRequestSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
110 inline SubscriptionRequestSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
111 inline SubscriptionRequestSummary& WithId(const char* value) { SetId(value); return *this;}
113
115
118 inline const Aws::String& GetRequestReason() const{ return m_requestReason; }
119 inline bool RequestReasonHasBeenSet() const { return m_requestReasonHasBeenSet; }
120 inline void SetRequestReason(const Aws::String& value) { m_requestReasonHasBeenSet = true; m_requestReason = value; }
121 inline void SetRequestReason(Aws::String&& value) { m_requestReasonHasBeenSet = true; m_requestReason = std::move(value); }
122 inline void SetRequestReason(const char* value) { m_requestReasonHasBeenSet = true; m_requestReason.assign(value); }
123 inline SubscriptionRequestSummary& WithRequestReason(const Aws::String& value) { SetRequestReason(value); return *this;}
124 inline SubscriptionRequestSummary& WithRequestReason(Aws::String&& value) { SetRequestReason(std::move(value)); return *this;}
125 inline SubscriptionRequestSummary& WithRequestReason(const char* value) { SetRequestReason(value); return *this;}
127
129
132 inline const Aws::String& GetReviewerId() const{ return m_reviewerId; }
133 inline bool ReviewerIdHasBeenSet() const { return m_reviewerIdHasBeenSet; }
134 inline void SetReviewerId(const Aws::String& value) { m_reviewerIdHasBeenSet = true; m_reviewerId = value; }
135 inline void SetReviewerId(Aws::String&& value) { m_reviewerIdHasBeenSet = true; m_reviewerId = std::move(value); }
136 inline void SetReviewerId(const char* value) { m_reviewerIdHasBeenSet = true; m_reviewerId.assign(value); }
137 inline SubscriptionRequestSummary& WithReviewerId(const Aws::String& value) { SetReviewerId(value); return *this;}
138 inline SubscriptionRequestSummary& WithReviewerId(Aws::String&& value) { SetReviewerId(std::move(value)); return *this;}
139 inline SubscriptionRequestSummary& WithReviewerId(const char* value) { SetReviewerId(value); return *this;}
141
143
146 inline const SubscriptionRequestStatus& GetStatus() const{ return m_status; }
147 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 inline void SetStatus(const SubscriptionRequestStatus& value) { m_statusHasBeenSet = true; m_status = value; }
149 inline void SetStatus(SubscriptionRequestStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
150 inline SubscriptionRequestSummary& WithStatus(const SubscriptionRequestStatus& value) { SetStatus(value); return *this;}
151 inline SubscriptionRequestSummary& WithStatus(SubscriptionRequestStatus&& value) { SetStatus(std::move(value)); return *this;}
153
155
158 inline const Aws::Vector<SubscribedListing>& GetSubscribedListings() const{ return m_subscribedListings; }
159 inline bool SubscribedListingsHasBeenSet() const { return m_subscribedListingsHasBeenSet; }
160 inline void SetSubscribedListings(const Aws::Vector<SubscribedListing>& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings = value; }
161 inline void SetSubscribedListings(Aws::Vector<SubscribedListing>&& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings = std::move(value); }
164 inline SubscriptionRequestSummary& AddSubscribedListings(const SubscribedListing& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings.push_back(value); return *this; }
165 inline SubscriptionRequestSummary& AddSubscribedListings(SubscribedListing&& value) { m_subscribedListingsHasBeenSet = true; m_subscribedListings.push_back(std::move(value)); return *this; }
167
169
172 inline const Aws::Vector<SubscribedPrincipal>& GetSubscribedPrincipals() const{ return m_subscribedPrincipals; }
173 inline bool SubscribedPrincipalsHasBeenSet() const { return m_subscribedPrincipalsHasBeenSet; }
174 inline void SetSubscribedPrincipals(const Aws::Vector<SubscribedPrincipal>& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals = value; }
175 inline void SetSubscribedPrincipals(Aws::Vector<SubscribedPrincipal>&& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals = std::move(value); }
178 inline SubscriptionRequestSummary& AddSubscribedPrincipals(const SubscribedPrincipal& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals.push_back(value); return *this; }
179 inline SubscriptionRequestSummary& AddSubscribedPrincipals(SubscribedPrincipal&& value) { m_subscribedPrincipalsHasBeenSet = true; m_subscribedPrincipals.push_back(std::move(value)); return *this; }
181
183
186 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
187 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
188 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
189 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
190 inline SubscriptionRequestSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
191 inline SubscriptionRequestSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
193
195
199 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
200 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
201 inline void SetUpdatedBy(const Aws::String& value) { m_updatedByHasBeenSet = true; m_updatedBy = value; }
202 inline void SetUpdatedBy(Aws::String&& value) { m_updatedByHasBeenSet = true; m_updatedBy = std::move(value); }
203 inline void SetUpdatedBy(const char* value) { m_updatedByHasBeenSet = true; m_updatedBy.assign(value); }
204 inline SubscriptionRequestSummary& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
205 inline SubscriptionRequestSummary& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
206 inline SubscriptionRequestSummary& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
208 private:
209
210 Aws::Utils::DateTime m_createdAt;
211 bool m_createdAtHasBeenSet = false;
212
213 Aws::String m_createdBy;
214 bool m_createdByHasBeenSet = false;
215
216 Aws::String m_decisionComment;
217 bool m_decisionCommentHasBeenSet = false;
218
219 Aws::String m_domainId;
220 bool m_domainIdHasBeenSet = false;
221
222 Aws::String m_id;
223 bool m_idHasBeenSet = false;
224
225 Aws::String m_requestReason;
226 bool m_requestReasonHasBeenSet = false;
227
228 Aws::String m_reviewerId;
229 bool m_reviewerIdHasBeenSet = false;
230
232 bool m_statusHasBeenSet = false;
233
234 Aws::Vector<SubscribedListing> m_subscribedListings;
235 bool m_subscribedListingsHasBeenSet = false;
236
237 Aws::Vector<SubscribedPrincipal> m_subscribedPrincipals;
238 bool m_subscribedPrincipalsHasBeenSet = false;
239
240 Aws::Utils::DateTime m_updatedAt;
241 bool m_updatedAtHasBeenSet = false;
242
243 Aws::String m_updatedBy;
244 bool m_updatedByHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace DataZone
249} // namespace Aws
SubscriptionRequestSummary & WithReviewerId(Aws::String &&value)
SubscriptionRequestSummary & WithRequestReason(const Aws::String &value)
SubscriptionRequestSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
SubscriptionRequestSummary & WithCreatedBy(const char *value)
SubscriptionRequestSummary & WithStatus(SubscriptionRequestStatus &&value)
void SetSubscribedPrincipals(Aws::Vector< SubscribedPrincipal > &&value)
SubscriptionRequestSummary & WithCreatedBy(const Aws::String &value)
SubscriptionRequestSummary & WithDecisionComment(Aws::String &&value)
void SetStatus(const SubscriptionRequestStatus &value)
SubscriptionRequestSummary & WithUpdatedBy(const Aws::String &value)
SubscriptionRequestSummary & AddSubscribedListings(const SubscribedListing &value)
SubscriptionRequestSummary & WithSubscribedPrincipals(const Aws::Vector< SubscribedPrincipal > &value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
SubscriptionRequestSummary & WithUpdatedBy(Aws::String &&value)
void SetSubscribedPrincipals(const Aws::Vector< SubscribedPrincipal > &value)
SubscriptionRequestSummary & AddSubscribedPrincipals(SubscribedPrincipal &&value)
SubscriptionRequestSummary & WithDomainId(const Aws::String &value)
const SubscriptionRequestStatus & GetStatus() const
void SetSubscribedListings(const Aws::Vector< SubscribedListing > &value)
SubscriptionRequestSummary & WithReviewerId(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionRequestSummary & WithRequestReason(const char *value)
void SetSubscribedListings(Aws::Vector< SubscribedListing > &&value)
SubscriptionRequestSummary & WithDomainId(const char *value)
SubscriptionRequestSummary & WithDomainId(Aws::String &&value)
SubscriptionRequestSummary & WithDecisionComment(const Aws::String &value)
const Aws::Vector< SubscribedListing > & GetSubscribedListings() const
SubscriptionRequestSummary & WithSubscribedPrincipals(Aws::Vector< SubscribedPrincipal > &&value)
SubscriptionRequestSummary & WithReviewerId(const Aws::String &value)
AWS_DATAZONE_API SubscriptionRequestSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubscriptionRequestSummary & WithCreatedBy(Aws::String &&value)
AWS_DATAZONE_API SubscriptionRequestSummary(Aws::Utils::Json::JsonView jsonValue)
SubscriptionRequestSummary & AddSubscribedListings(SubscribedListing &&value)
SubscriptionRequestSummary & WithSubscribedListings(Aws::Vector< SubscribedListing > &&value)
SubscriptionRequestSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
SubscriptionRequestSummary & WithDecisionComment(const char *value)
SubscriptionRequestSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
SubscriptionRequestSummary & WithId(const Aws::String &value)
const Aws::Vector< SubscribedPrincipal > & GetSubscribedPrincipals() const
SubscriptionRequestSummary & WithRequestReason(Aws::String &&value)
SubscriptionRequestSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
SubscriptionRequestSummary & WithSubscribedListings(const Aws::Vector< SubscribedListing > &value)
SubscriptionRequestSummary & WithId(const char *value)
SubscriptionRequestSummary & WithId(Aws::String &&value)
SubscriptionRequestSummary & WithUpdatedBy(const char *value)
SubscriptionRequestSummary & AddSubscribedPrincipals(const SubscribedPrincipal &value)
SubscriptionRequestSummary & WithStatus(const SubscriptionRequestStatus &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