AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RevokeSubscriptionResult.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 RevokeSubscriptionResult();
37
38
40
43 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
44 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
45 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
46 inline RevokeSubscriptionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
47 inline RevokeSubscriptionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
49
51
54 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
55 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
56 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
57 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
58 inline RevokeSubscriptionResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
59 inline RevokeSubscriptionResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
60 inline RevokeSubscriptionResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
62
64
68 inline const Aws::String& GetDomainId() const{ return m_domainId; }
69 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
70 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
71 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
72 inline RevokeSubscriptionResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
73 inline RevokeSubscriptionResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
74 inline RevokeSubscriptionResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
76
78
81 inline const Aws::String& GetId() const{ return m_id; }
82 inline void SetId(const Aws::String& value) { m_id = value; }
83 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
84 inline void SetId(const char* value) { m_id.assign(value); }
85 inline RevokeSubscriptionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline RevokeSubscriptionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline RevokeSubscriptionResult& WithId(const char* value) { SetId(value); return *this;}
89
91
95 inline bool GetRetainPermissions() const{ return m_retainPermissions; }
96 inline void SetRetainPermissions(bool value) { m_retainPermissions = value; }
97 inline RevokeSubscriptionResult& WithRetainPermissions(bool value) { SetRetainPermissions(value); return *this;}
99
101
104 inline const SubscriptionStatus& GetStatus() const{ return m_status; }
105 inline void SetStatus(const SubscriptionStatus& value) { m_status = value; }
106 inline void SetStatus(SubscriptionStatus&& value) { m_status = std::move(value); }
107 inline RevokeSubscriptionResult& WithStatus(const SubscriptionStatus& value) { SetStatus(value); return *this;}
108 inline RevokeSubscriptionResult& WithStatus(SubscriptionStatus&& value) { SetStatus(std::move(value)); return *this;}
110
112
115 inline const SubscribedListing& GetSubscribedListing() const{ return m_subscribedListing; }
116 inline void SetSubscribedListing(const SubscribedListing& value) { m_subscribedListing = value; }
117 inline void SetSubscribedListing(SubscribedListing&& value) { m_subscribedListing = std::move(value); }
121
123
126 inline const SubscribedPrincipal& GetSubscribedPrincipal() const{ return m_subscribedPrincipal; }
127 inline void SetSubscribedPrincipal(const SubscribedPrincipal& value) { m_subscribedPrincipal = value; }
128 inline void SetSubscribedPrincipal(SubscribedPrincipal&& value) { m_subscribedPrincipal = std::move(value); }
132
134
137 inline const Aws::String& GetSubscriptionRequestId() const{ return m_subscriptionRequestId; }
138 inline void SetSubscriptionRequestId(const Aws::String& value) { m_subscriptionRequestId = value; }
139 inline void SetSubscriptionRequestId(Aws::String&& value) { m_subscriptionRequestId = std::move(value); }
140 inline void SetSubscriptionRequestId(const char* value) { m_subscriptionRequestId.assign(value); }
143 inline RevokeSubscriptionResult& WithSubscriptionRequestId(const char* value) { SetSubscriptionRequestId(value); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
151 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
152 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
153 inline RevokeSubscriptionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
154 inline RevokeSubscriptionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
156
158
161 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
162 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
163 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
164 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
165 inline RevokeSubscriptionResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
166 inline RevokeSubscriptionResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
167 inline RevokeSubscriptionResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
169
171
172 inline const Aws::String& GetRequestId() const{ return m_requestId; }
173 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
174 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
175 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
176 inline RevokeSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
177 inline RevokeSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
178 inline RevokeSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
180 private:
181
182 Aws::Utils::DateTime m_createdAt;
183
184 Aws::String m_createdBy;
185
186 Aws::String m_domainId;
187
188 Aws::String m_id;
189
190 bool m_retainPermissions;
191
192 SubscriptionStatus m_status;
193
194 SubscribedListing m_subscribedListing;
195
196 SubscribedPrincipal m_subscribedPrincipal;
197
198 Aws::String m_subscriptionRequestId;
199
200 Aws::Utils::DateTime m_updatedAt;
201
202 Aws::String m_updatedBy;
203
204 Aws::String m_requestId;
205 };
206
207} // namespace Model
208} // namespace DataZone
209} // namespace Aws
RevokeSubscriptionResult & WithId(const char *value)
AWS_DATAZONE_API RevokeSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API RevokeSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RevokeSubscriptionResult & WithSubscribedListing(SubscribedListing &&value)
RevokeSubscriptionResult & WithDomainId(const char *value)
RevokeSubscriptionResult & WithId(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
RevokeSubscriptionResult & WithUpdatedBy(const Aws::String &value)
RevokeSubscriptionResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
RevokeSubscriptionResult & WithStatus(const SubscriptionStatus &value)
RevokeSubscriptionResult & WithSubscribedListing(const SubscribedListing &value)
void SetSubscribedPrincipal(const SubscribedPrincipal &value)
const SubscribedPrincipal & GetSubscribedPrincipal() const
RevokeSubscriptionResult & WithRequestId(Aws::String &&value)
RevokeSubscriptionResult & WithDomainId(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
RevokeSubscriptionResult & WithCreatedBy(const Aws::String &value)
RevokeSubscriptionResult & WithSubscriptionRequestId(const char *value)
void SetSubscribedPrincipal(SubscribedPrincipal &&value)
RevokeSubscriptionResult & WithSubscriptionRequestId(Aws::String &&value)
RevokeSubscriptionResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
RevokeSubscriptionResult & WithId(Aws::String &&value)
RevokeSubscriptionResult & WithRequestId(const Aws::String &value)
void SetStatus(const SubscriptionStatus &value)
RevokeSubscriptionResult & WithCreatedBy(Aws::String &&value)
RevokeSubscriptionResult & WithRequestId(const char *value)
void SetSubscribedListing(const SubscribedListing &value)
RevokeSubscriptionResult & WithUpdatedBy(Aws::String &&value)
RevokeSubscriptionResult & WithSubscribedPrincipal(SubscribedPrincipal &&value)
RevokeSubscriptionResult & WithCreatedBy(const char *value)
RevokeSubscriptionResult & WithDomainId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
RevokeSubscriptionResult & WithSubscribedPrincipal(const SubscribedPrincipal &value)
RevokeSubscriptionResult & WithSubscriptionRequestId(const Aws::String &value)
RevokeSubscriptionResult & WithUpdatedBy(const char *value)
RevokeSubscriptionResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
RevokeSubscriptionResult & WithRetainPermissions(bool value)
RevokeSubscriptionResult & WithCreatedAt(const Aws::Utils::DateTime &value)
RevokeSubscriptionResult & WithStatus(SubscriptionStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue