AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetSubscriptionResult.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 GetSubscriptionResult();
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 GetSubscriptionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
47 inline GetSubscriptionResult& 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 GetSubscriptionResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
59 inline GetSubscriptionResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
60 inline GetSubscriptionResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
62
64
67 inline const Aws::String& GetDomainId() const{ return m_domainId; }
68 inline void SetDomainId(const Aws::String& value) { m_domainId = value; }
69 inline void SetDomainId(Aws::String&& value) { m_domainId = std::move(value); }
70 inline void SetDomainId(const char* value) { m_domainId.assign(value); }
71 inline GetSubscriptionResult& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;}
72 inline GetSubscriptionResult& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;}
73 inline GetSubscriptionResult& WithDomainId(const char* value) { SetDomainId(value); return *this;}
75
77
80 inline const Aws::String& GetId() const{ return m_id; }
81 inline void SetId(const Aws::String& value) { m_id = value; }
82 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
83 inline void SetId(const char* value) { m_id.assign(value); }
84 inline GetSubscriptionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
85 inline GetSubscriptionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
86 inline GetSubscriptionResult& WithId(const char* value) { SetId(value); return *this;}
88
90
93 inline bool GetRetainPermissions() const{ return m_retainPermissions; }
94 inline void SetRetainPermissions(bool value) { m_retainPermissions = value; }
95 inline GetSubscriptionResult& WithRetainPermissions(bool value) { SetRetainPermissions(value); return *this;}
97
99
102 inline const SubscriptionStatus& GetStatus() const{ return m_status; }
103 inline void SetStatus(const SubscriptionStatus& value) { m_status = value; }
104 inline void SetStatus(SubscriptionStatus&& value) { m_status = std::move(value); }
105 inline GetSubscriptionResult& WithStatus(const SubscriptionStatus& value) { SetStatus(value); return *this;}
106 inline GetSubscriptionResult& WithStatus(SubscriptionStatus&& value) { SetStatus(std::move(value)); return *this;}
108
110
114 inline const SubscribedListing& GetSubscribedListing() const{ return m_subscribedListing; }
115 inline void SetSubscribedListing(const SubscribedListing& value) { m_subscribedListing = value; }
116 inline void SetSubscribedListing(SubscribedListing&& value) { m_subscribedListing = std::move(value); }
118 inline GetSubscriptionResult& WithSubscribedListing(SubscribedListing&& value) { SetSubscribedListing(std::move(value)); return *this;}
120
122
125 inline const SubscribedPrincipal& GetSubscribedPrincipal() const{ return m_subscribedPrincipal; }
126 inline void SetSubscribedPrincipal(const SubscribedPrincipal& value) { m_subscribedPrincipal = value; }
127 inline void SetSubscribedPrincipal(SubscribedPrincipal&& value) { m_subscribedPrincipal = std::move(value); }
131
133
136 inline const Aws::String& GetSubscriptionRequestId() const{ return m_subscriptionRequestId; }
137 inline void SetSubscriptionRequestId(const Aws::String& value) { m_subscriptionRequestId = value; }
138 inline void SetSubscriptionRequestId(Aws::String&& value) { m_subscriptionRequestId = std::move(value); }
139 inline void SetSubscriptionRequestId(const char* value) { m_subscriptionRequestId.assign(value); }
141 inline GetSubscriptionResult& WithSubscriptionRequestId(Aws::String&& value) { SetSubscriptionRequestId(std::move(value)); return *this;}
142 inline GetSubscriptionResult& WithSubscriptionRequestId(const char* value) { SetSubscriptionRequestId(value); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
150 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
151 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
152 inline GetSubscriptionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
153 inline GetSubscriptionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
155
157
160 inline const Aws::String& GetUpdatedBy() const{ return m_updatedBy; }
161 inline void SetUpdatedBy(const Aws::String& value) { m_updatedBy = value; }
162 inline void SetUpdatedBy(Aws::String&& value) { m_updatedBy = std::move(value); }
163 inline void SetUpdatedBy(const char* value) { m_updatedBy.assign(value); }
164 inline GetSubscriptionResult& WithUpdatedBy(const Aws::String& value) { SetUpdatedBy(value); return *this;}
165 inline GetSubscriptionResult& WithUpdatedBy(Aws::String&& value) { SetUpdatedBy(std::move(value)); return *this;}
166 inline GetSubscriptionResult& WithUpdatedBy(const char* value) { SetUpdatedBy(value); return *this;}
168
170
171 inline const Aws::String& GetRequestId() const{ return m_requestId; }
172 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
173 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
174 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
175 inline GetSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
176 inline GetSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
177 inline GetSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
179 private:
180
181 Aws::Utils::DateTime m_createdAt;
182
183 Aws::String m_createdBy;
184
185 Aws::String m_domainId;
186
187 Aws::String m_id;
188
189 bool m_retainPermissions;
190
191 SubscriptionStatus m_status;
192
193 SubscribedListing m_subscribedListing;
194
195 SubscribedPrincipal m_subscribedPrincipal;
196
197 Aws::String m_subscriptionRequestId;
198
199 Aws::Utils::DateTime m_updatedAt;
200
201 Aws::String m_updatedBy;
202
203 Aws::String m_requestId;
204 };
205
206} // namespace Model
207} // namespace DataZone
208} // namespace Aws
void SetUpdatedAt(Aws::Utils::DateTime &&value)
GetSubscriptionResult & WithUpdatedBy(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetSubscriptionResult & WithRequestId(const char *value)
const SubscribedListing & GetSubscribedListing() const
AWS_DATAZONE_API GetSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionResult & WithStatus(const SubscriptionStatus &value)
GetSubscriptionResult & WithDomainId(const char *value)
GetSubscriptionResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetSubscribedListing(const SubscribedListing &value)
GetSubscriptionResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
const SubscribedPrincipal & GetSubscribedPrincipal() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionResult & WithRetainPermissions(bool value)
GetSubscriptionResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetSubscribedListing(SubscribedListing &&value)
GetSubscriptionResult & WithCreatedBy(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GetSubscriptionResult & WithSubscriptionRequestId(Aws::String &&value)
void SetStatus(const SubscriptionStatus &value)
void SetSubscribedPrincipal(const SubscribedPrincipal &value)
GetSubscriptionResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetSubscriptionRequestId(const Aws::String &value)
GetSubscriptionResult & WithRequestId(Aws::String &&value)
GetSubscriptionResult & WithUpdatedBy(const char *value)
AWS_DATAZONE_API GetSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSubscriptionResult & WithUpdatedBy(const Aws::String &value)
const SubscriptionStatus & GetStatus() const
GetSubscriptionResult & WithId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetSubscriptionResult & WithSubscribedPrincipal(SubscribedPrincipal &&value)
GetSubscriptionResult & WithDomainId(Aws::String &&value)
GetSubscriptionResult & WithId(const Aws::String &value)
GetSubscriptionResult & WithRequestId(const Aws::String &value)
GetSubscriptionResult & WithSubscribedListing(SubscribedListing &&value)
GetSubscriptionResult & WithSubscribedPrincipal(const SubscribedPrincipal &value)
GetSubscriptionResult & WithCreatedBy(const Aws::String &value)
void SetSubscribedPrincipal(SubscribedPrincipal &&value)
GetSubscriptionResult & WithId(const char *value)
GetSubscriptionResult & WithSubscriptionRequestId(const char *value)
GetSubscriptionResult & WithStatus(SubscriptionStatus &&value)
GetSubscriptionResult & WithCreatedBy(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetSubscriptionResult & WithDomainId(const Aws::String &value)
GetSubscriptionResult & WithSubscriptionRequestId(const Aws::String &value)
GetSubscriptionResult & WithSubscribedListing(const SubscribedListing &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue