AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelSubscriptionResult.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{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataZone
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DATAZONE_API CancelSubscriptionResult();
37
38
40
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); }
47 inline CancelSubscriptionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
48 inline CancelSubscriptionResult& 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 CancelSubscriptionResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
60 inline CancelSubscriptionResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
61 inline CancelSubscriptionResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
63
65
69 inline const Aws::String& GetDomainId() const{ return m_domainId; }
70 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
71 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
72 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
73 inline CancelSubscriptionResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
74 inline CancelSubscriptionResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
75 inline CancelSubscriptionResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
77
79
82 inline const Aws::String& GetId() const{ return m_id; }
83 inline void SetId(const Aws::String& value) { m_id = value; }
84 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
85 inline void SetId(const char* value) { m_id.assign(value); }
86 inline CancelSubscriptionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
87 inline CancelSubscriptionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
88 inline CancelSubscriptionResult& WithId(const char* value) { SetId(value); return *this;}
90
92
96 inline bool GetRetainPermissions() const{ return m_retainPermissions; }
97 inline void SetRetainPermissions(bool value) { m_retainPermissions = value; }
98 inline CancelSubscriptionResult& WithRetainPermissions(bool value) { SetRetainPermissions(value); return *this;}
100
102
105 inline const SubscriptionStatus& GetStatus() const{ return m_status; }
106 inline void SetStatus(const SubscriptionStatus& value) { m_status = value; }
107 inline void SetStatus(SubscriptionStatus&& value) { m_status = std::move(value); }
108 inline CancelSubscriptionResult& WithStatus(const SubscriptionStatus& value) { SetStatus(value); return *this;}
109 inline CancelSubscriptionResult& WithStatus(SubscriptionStatus&& value) { SetStatus(std::move(value)); return *this;}
111
113
116 inline const SubscribedListing& GetSubscribedListing() const{ return m_subscribedListing; }
117 inline void SetSubscribedListing(const SubscribedListing& value) { m_subscribedListing = value; }
118 inline void SetSubscribedListing(SubscribedListing&& value) { m_subscribedListing = std::move(value); }
122
124
128 inline const SubscribedPrincipal& GetSubscribedPrincipal() const{ return m_subscribedPrincipal; }
129 inline void SetSubscribedPrincipal(const SubscribedPrincipal& value) { m_subscribedPrincipal = value; }
130 inline void SetSubscribedPrincipal(SubscribedPrincipal&& value) { m_subscribedPrincipal = std::move(value); }
134
136
140 inline const Aws::String& GetSubscriptionRequestId() const{ return m_subscriptionRequestId; }
141 inline void SetSubscriptionRequestId(const Aws::String& value) { m_subscriptionRequestId = value; }
142 inline void SetSubscriptionRequestId(Aws::String&& value) { m_subscriptionRequestId = std::move(value); }
143 inline void SetSubscriptionRequestId(const char* value) { m_subscriptionRequestId.assign(value); }
146 inline CancelSubscriptionResult& WithSubscriptionRequestId(const char* value) { SetSubscriptionRequestId(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
154 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
155 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
156 inline CancelSubscriptionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
157 inline CancelSubscriptionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
159
161
164 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
165 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
166 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
167 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
168 inline CancelSubscriptionResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
169 inline CancelSubscriptionResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
170 inline CancelSubscriptionResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
172
174
175 inline const Aws::String& GetRequestId() const{ return m_requestId; }
176 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
177 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
178 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
179 inline CancelSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
180 inline CancelSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
181 inline CancelSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
183 private:
184
185 Aws::Utils::DateTime m_createdAt;
186
187 Aws::String m_createdBy;
188
189 Aws::String m_domainId;
190
191 Aws::String m_id;
192
193 bool m_retainPermissions;
194
195 SubscriptionStatus m_status;
196
197 SubscribedListing m_subscribedListing;
198
199 SubscribedPrincipal m_subscribedPrincipal;
200
201 Aws::String m_subscriptionRequestId;
202
203 Aws::Utils::DateTime m_updatedAt;
204
205 Aws::String m_updatedBy;
206
207 Aws::String m_requestId;
208 };
209
210} // namespace Model
211} // namespace DataZone
212} // namespace Aws
CancelSubscriptionResult & WithRequestId(const char *value)
AWS_DATAZONE_API CancelSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelSubscriptionResult & WithCreatedBy(Aws::String &&value)
CancelSubscriptionResult & WithStatus(SubscriptionStatus &&value)
CancelSubscriptionResult & WithCreatedBy(const Aws::String &value)
CancelSubscriptionResult & WithSubscriptionRequestId(Aws::String &&value)
CancelSubscriptionResult & WithRetainPermissions(bool value)
CancelSubscriptionResult & WithDomainId(const char *value)
CancelSubscriptionResult & WithSubscribedListing(SubscribedListing &&value)
void SetSubscribedPrincipal(SubscribedPrincipal &&value)
CancelSubscriptionResult & WithSubscriptionRequestId(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
CancelSubscriptionResult & WithSubscribedListing(const SubscribedListing &value)
CancelSubscriptionResult & WithId(const Aws::String &value)
CancelSubscriptionResult & WithId(const char *value)
CancelSubscriptionResult & WithRequestId(const Aws::String &value)
CancelSubscriptionResult & WithRequestId(Aws::String &&value)
void SetStatus(const SubscriptionStatus &value)
CancelSubscriptionResult & WithCreatedBy(const char *value)
void SetSubscribedListing(const SubscribedListing &value)
CancelSubscriptionResult & WithUpdatedBy(const char *value)
CancelSubscriptionResult & WithSubscriptionRequestId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
CancelSubscriptionResult & WithCreatedAt(Aws::Utils::DateTime &&value)
CancelSubscriptionResult & WithCreatedAt(const Aws::Utils::DateTime &value)
AWS_DATAZONE_API CancelSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
CancelSubscriptionResult & WithSubscribedPrincipal(const SubscribedPrincipal &value)
CancelSubscriptionResult & WithUpdatedBy(Aws::String &&value)
CancelSubscriptionResult & WithDomainId(Aws::String &&value)
CancelSubscriptionResult & WithSubscribedPrincipal(SubscribedPrincipal &&value)
CancelSubscriptionResult & WithDomainId(const Aws::String &value)
CancelSubscriptionResult & WithId(Aws::String &&value)
CancelSubscriptionResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
const SubscribedPrincipal & GetSubscribedPrincipal() const
void SetSubscribedPrincipal(const SubscribedPrincipal &value)
CancelSubscriptionResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CancelSubscriptionResult & WithStatus(const SubscriptionStatus &value)
CancelSubscriptionResult & WithUpdatedBy(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue