AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriptionRequestResult.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{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone
29{
30namespace Model
31{
33 {
34 public:
38
39
41
44 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
45 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
46 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
48 inline CreateSubscriptionRequestResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
50
52
55 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
56 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
57 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
58 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
59 inline CreateSubscriptionRequestResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
60 inline CreateSubscriptionRequestResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
61 inline CreateSubscriptionRequestResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
63
65
68 inline const Aws::String& GetDecisionComment() const{ return m_decisionComment; }
69 inline void SetDecisionComment(const Aws::String& value) { m_decisionComment = value; }
70 inline void SetDecisionComment(Aws::String&& value) { m_decisionComment = std::move(value); }
71 inline void SetDecisionComment(const char* value) { m_decisionComment.assign(value); }
73 inline CreateSubscriptionRequestResult& WithDecisionComment(Aws::String&& value) { SetDecisionComment(std::move(value)); return *this;}
74 inline CreateSubscriptionRequestResult& WithDecisionComment(const char* value) { SetDecisionComment(value); return *this;}
76
78
82 inline const Aws::String& GetDomainId() const{ return m_domainId; }
83 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
84 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
85 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
86 inline CreateSubscriptionRequestResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
87 inline CreateSubscriptionRequestResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
88 inline CreateSubscriptionRequestResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
90
92
95 inline const Aws::String& GetId() const{ return m_id; }
96 inline void SetId(const Aws::String& value) { m_id = value; }
97 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
98 inline void SetId(const char* value) { m_id.assign(value); }
99 inline CreateSubscriptionRequestResult& WithId(const Aws::String& value) { SetId(value); return *this;}
100 inline CreateSubscriptionRequestResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
101 inline CreateSubscriptionRequestResult& WithId(const char* value) { SetId(value); return *this;}
103
105
108 inline const Aws::String& GetRequestReason() const{ return m_requestReason; }
109 inline void SetRequestReason(const Aws::String& value) { m_requestReason = value; }
110 inline void SetRequestReason(Aws::String&& value) { m_requestReason = std::move(value); }
111 inline void SetRequestReason(const char* value) { m_requestReason.assign(value); }
113 inline CreateSubscriptionRequestResult& WithRequestReason(Aws::String&& value) { SetRequestReason(std::move(value)); return *this;}
114 inline CreateSubscriptionRequestResult& WithRequestReason(const char* value) { SetRequestReason(value); return *this;}
116
118
121 inline const Aws::String& GetReviewerId() const{ return m_reviewerId; }
122 inline void SetReviewerId(const Aws::String& value) { m_reviewerId = value; }
123 inline void SetReviewerId(Aws::String&& value) { m_reviewerId = std::move(value); }
124 inline void SetReviewerId(const char* value) { m_reviewerId.assign(value); }
125 inline CreateSubscriptionRequestResult& WithReviewerId(const Aws::String& value) { SetReviewerId(value); return *this;}
126 inline CreateSubscriptionRequestResult& WithReviewerId(Aws::String&& value) { SetReviewerId(std::move(value)); return *this;}
127 inline CreateSubscriptionRequestResult& WithReviewerId(const char* value) { SetReviewerId(value); return *this;}
129
131
134 inline const SubscriptionRequestStatus& GetStatus() const{ return m_status; }
135 inline void SetStatus(const SubscriptionRequestStatus& value) { m_status = value; }
136 inline void SetStatus(SubscriptionRequestStatus&& value) { m_status = std::move(value); }
138 inline CreateSubscriptionRequestResult& WithStatus(SubscriptionRequestStatus&& value) { SetStatus(std::move(value)); return *this;}
140
142
145 inline const Aws::Vector<SubscribedListing>& GetSubscribedListings() const{ return m_subscribedListings; }
146 inline void SetSubscribedListings(const Aws::Vector<SubscribedListing>& value) { m_subscribedListings = value; }
147 inline void SetSubscribedListings(Aws::Vector<SubscribedListing>&& value) { m_subscribedListings = std::move(value); }
150 inline CreateSubscriptionRequestResult& AddSubscribedListings(const SubscribedListing& value) { m_subscribedListings.push_back(value); return *this; }
151 inline CreateSubscriptionRequestResult& AddSubscribedListings(SubscribedListing&& value) { m_subscribedListings.push_back(std::move(value)); return *this; }
153
155
158 inline const Aws::Vector<SubscribedPrincipal>& GetSubscribedPrincipals() const{ return m_subscribedPrincipals; }
159 inline void SetSubscribedPrincipals(const Aws::Vector<SubscribedPrincipal>& value) { m_subscribedPrincipals = value; }
160 inline void SetSubscribedPrincipals(Aws::Vector<SubscribedPrincipal>&& value) { m_subscribedPrincipals = std::move(value); }
163 inline CreateSubscriptionRequestResult& AddSubscribedPrincipals(const SubscribedPrincipal& value) { m_subscribedPrincipals.push_back(value); return *this; }
164 inline CreateSubscriptionRequestResult& AddSubscribedPrincipals(SubscribedPrincipal&& value) { m_subscribedPrincipals.push_back(std::move(value)); return *this; }
166
168
171 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
172 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
173 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
175 inline CreateSubscriptionRequestResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
177
179
182 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
183 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
184 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
185 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
186 inline CreateSubscriptionRequestResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
187 inline CreateSubscriptionRequestResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
188 inline CreateSubscriptionRequestResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
190
192
193 inline const Aws::String& GetRequestId() const{ return m_requestId; }
194 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
195 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
196 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
197 inline CreateSubscriptionRequestResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
198 inline CreateSubscriptionRequestResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
199 inline CreateSubscriptionRequestResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
201 private:
202
203 Aws::Utils::DateTime m_createdAt;
204
205 Aws::String m_createdBy;
206
207 Aws::String m_decisionComment;
208
209 Aws::String m_domainId;
210
211 Aws::String m_id;
212
213 Aws::String m_requestReason;
214
215 Aws::String m_reviewerId;
216
218
219 Aws::Vector<SubscribedListing> m_subscribedListings;
220
221 Aws::Vector<SubscribedPrincipal> m_subscribedPrincipals;
222
223 Aws::Utils::DateTime m_updatedAt;
224
225 Aws::String m_updatedBy;
226
227 Aws::String m_requestId;
228 };
229
230} // namespace Model
231} // namespace DataZone
232} // namespace Aws
const Aws::Vector< SubscribedListing > & GetSubscribedListings() const
CreateSubscriptionRequestResult & AddSubscribedPrincipals(const SubscribedPrincipal &value)
CreateSubscriptionRequestResult & WithId(const Aws::String &value)
void SetSubscribedListings(Aws::Vector< SubscribedListing > &&value)
CreateSubscriptionRequestResult & AddSubscribedPrincipals(SubscribedPrincipal &&value)
CreateSubscriptionRequestResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CreateSubscriptionRequestResult & WithRequestId(const char *value)
CreateSubscriptionRequestResult & WithSubscribedPrincipals(const Aws::Vector< SubscribedPrincipal > &value)
AWS_DATAZONE_API CreateSubscriptionRequestResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionRequestResult & WithDecisionComment(const Aws::String &value)
CreateSubscriptionRequestResult & WithUpdatedBy(Aws::String &&value)
CreateSubscriptionRequestResult & WithDecisionComment(Aws::String &&value)
CreateSubscriptionRequestResult & WithCreatedBy(const char *value)
void SetSubscribedPrincipals(const Aws::Vector< SubscribedPrincipal > &value)
CreateSubscriptionRequestResult & WithUpdatedBy(const Aws::String &value)
CreateSubscriptionRequestResult & WithRequestReason(const char *value)
CreateSubscriptionRequestResult & WithRequestReason(Aws::String &&value)
CreateSubscriptionRequestResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
CreateSubscriptionRequestResult & WithUpdatedBy(const char *value)
void SetSubscribedPrincipals(Aws::Vector< SubscribedPrincipal > &&value)
CreateSubscriptionRequestResult & WithRequestId(const Aws::String &value)
AWS_DATAZONE_API CreateSubscriptionRequestResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionRequestResult & WithDomainId(const Aws::String &value)
CreateSubscriptionRequestResult & WithReviewerId(const char *value)
CreateSubscriptionRequestResult & WithCreatedBy(const Aws::String &value)
CreateSubscriptionRequestResult & WithDomainId(Aws::String &&value)
CreateSubscriptionRequestResult & WithDecisionComment(const char *value)
CreateSubscriptionRequestResult & AddSubscribedListings(const SubscribedListing &value)
const Aws::Vector< SubscribedPrincipal > & GetSubscribedPrincipals() const
CreateSubscriptionRequestResult & WithReviewerId(const Aws::String &value)
CreateSubscriptionRequestResult & WithCreatedBy(Aws::String &&value)
CreateSubscriptionRequestResult & WithSubscribedListings(Aws::Vector< SubscribedListing > &&value)
CreateSubscriptionRequestResult & WithId(const char *value)
CreateSubscriptionRequestResult & WithSubscribedListings(const Aws::Vector< SubscribedListing > &value)
CreateSubscriptionRequestResult & WithStatus(const SubscriptionRequestStatus &value)
CreateSubscriptionRequestResult & WithDomainId(const char *value)
CreateSubscriptionRequestResult & WithCreatedAt(const Aws::Utils::DateTime &value)
CreateSubscriptionRequestResult & WithId(Aws::String &&value)
CreateSubscriptionRequestResult & WithRequestId(Aws::String &&value)
CreateSubscriptionRequestResult & WithStatus(SubscriptionRequestStatus &&value)
CreateSubscriptionRequestResult & AddSubscribedListings(SubscribedListing &&value)
void SetSubscribedListings(const Aws::Vector< SubscribedListing > &value)
CreateSubscriptionRequestResult & WithCreatedAt(Aws::Utils::DateTime &&value)
CreateSubscriptionRequestResult & WithRequestReason(const Aws::String &value)
CreateSubscriptionRequestResult & WithSubscribedPrincipals(Aws::Vector< SubscribedPrincipal > &&value)
CreateSubscriptionRequestResult & WithReviewerId(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