AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
CreateSubscriptionResult.h
1
6#pragma once
7#include <aws/connecthealth/ConnectHealth_EXPORTS.h>
8#include <aws/connecthealth/model/SubscriptionStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ConnectHealth {
25namespace Model {
27 public:
28 AWS_CONNECTHEALTH_API CreateSubscriptionResult() = default;
31
33
36 inline const Aws::String& GetDomainId() const { return m_domainId; }
37 template <typename DomainIdT = Aws::String>
38 void SetDomainId(DomainIdT&& value) {
39 m_domainIdHasBeenSet = true;
40 m_domainId = std::forward<DomainIdT>(value);
41 }
42 template <typename DomainIdT = Aws::String>
44 SetDomainId(std::forward<DomainIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
54 template <typename SubscriptionIdT = Aws::String>
55 void SetSubscriptionId(SubscriptionIdT&& value) {
56 m_subscriptionIdHasBeenSet = true;
57 m_subscriptionId = std::forward<SubscriptionIdT>(value);
58 }
59 template <typename SubscriptionIdT = Aws::String>
60 CreateSubscriptionResult& WithSubscriptionId(SubscriptionIdT&& value) {
61 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 template <typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) {
73 m_arnHasBeenSet = true;
74 m_arn = std::forward<ArnT>(value);
75 }
76 template <typename ArnT = Aws::String>
78 SetArn(std::forward<ArnT>(value));
79 return *this;
80 }
82
84
87 inline SubscriptionStatus GetStatus() const { return m_status; }
88 inline void SetStatus(SubscriptionStatus value) {
89 m_statusHasBeenSet = true;
90 m_status = value;
91 }
93 SetStatus(value);
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 void SetCreatedAt(CreatedAtT&& value) {
105 m_createdAtHasBeenSet = true;
106 m_createdAt = std::forward<CreatedAtT>(value);
107 }
108 template <typename CreatedAtT = Aws::Utils::DateTime>
110 SetCreatedAt(std::forward<CreatedAtT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
120 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
121 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
122 m_lastUpdatedAtHasBeenSet = true;
123 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
124 }
125 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
127 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetActivatedAt() const { return m_activatedAt; }
137 template <typename ActivatedAtT = Aws::Utils::DateTime>
138 void SetActivatedAt(ActivatedAtT&& value) {
139 m_activatedAtHasBeenSet = true;
140 m_activatedAt = std::forward<ActivatedAtT>(value);
141 }
142 template <typename ActivatedAtT = Aws::Utils::DateTime>
144 SetActivatedAt(std::forward<ActivatedAtT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetDeactivatedAt() const { return m_deactivatedAt; }
154 template <typename DeactivatedAtT = Aws::Utils::DateTime>
155 void SetDeactivatedAt(DeactivatedAtT&& value) {
156 m_deactivatedAtHasBeenSet = true;
157 m_deactivatedAt = std::forward<DeactivatedAtT>(value);
158 }
159 template <typename DeactivatedAtT = Aws::Utils::DateTime>
161 SetDeactivatedAt(std::forward<DeactivatedAtT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::String& GetRequestId() const { return m_requestId; }
169 template <typename RequestIdT = Aws::String>
170 void SetRequestId(RequestIdT&& value) {
171 m_requestIdHasBeenSet = true;
172 m_requestId = std::forward<RequestIdT>(value);
173 }
174 template <typename RequestIdT = Aws::String>
176 SetRequestId(std::forward<RequestIdT>(value));
177 return *this;
178 }
180 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
181
182 private:
183 Aws::String m_domainId;
184
185 Aws::String m_subscriptionId;
186
187 Aws::String m_arn;
188
190
191 Aws::Utils::DateTime m_createdAt{};
192
193 Aws::Utils::DateTime m_lastUpdatedAt{};
194
195 Aws::Utils::DateTime m_activatedAt{};
196
197 Aws::Utils::DateTime m_deactivatedAt{};
198
199 Aws::String m_requestId;
200 Aws::Http::HttpResponseCode m_HttpResponseCode;
201 bool m_domainIdHasBeenSet = false;
202 bool m_subscriptionIdHasBeenSet = false;
203 bool m_arnHasBeenSet = false;
204 bool m_statusHasBeenSet = false;
205 bool m_createdAtHasBeenSet = false;
206 bool m_lastUpdatedAtHasBeenSet = false;
207 bool m_activatedAtHasBeenSet = false;
208 bool m_deactivatedAtHasBeenSet = false;
209 bool m_requestIdHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace ConnectHealth
214} // namespace Aws
CreateSubscriptionResult & WithStatus(SubscriptionStatus value)
CreateSubscriptionResult & WithCreatedAt(CreatedAtT &&value)
CreateSubscriptionResult & WithSubscriptionId(SubscriptionIdT &&value)
CreateSubscriptionResult & WithDeactivatedAt(DeactivatedAtT &&value)
CreateSubscriptionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_CONNECTHEALTH_API CreateSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECTHEALTH_API CreateSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSubscriptionResult & WithDomainId(DomainIdT &&value)
CreateSubscriptionResult & WithActivatedAt(ActivatedAtT &&value)
AWS_CONNECTHEALTH_API CreateSubscriptionResult()=default
CreateSubscriptionResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue