AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DescribedCertificate.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/CertificateStatusType.h>
9#include <aws/awstransfer/model/CertificateType.h>
10#include <aws/awstransfer/model/CertificateUsageType.h>
11#include <aws/awstransfer/model/Tag.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Transfer {
26namespace Model {
27
34 public:
35 AWS_TRANSFER_API DescribedCertificate() = default;
38 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
64 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
65 template <typename CertificateIdT = Aws::String>
66 void SetCertificateId(CertificateIdT&& value) {
67 m_certificateIdHasBeenSet = true;
68 m_certificateId = std::forward<CertificateIdT>(value);
69 }
70 template <typename CertificateIdT = Aws::String>
71 DescribedCertificate& WithCertificateId(CertificateIdT&& value) {
72 SetCertificateId(std::forward<CertificateIdT>(value));
73 return *this;
74 }
76
78
85 inline CertificateUsageType GetUsage() const { return m_usage; }
86 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
87 inline void SetUsage(CertificateUsageType value) {
88 m_usageHasBeenSet = true;
89 m_usage = value;
90 }
92 SetUsage(value);
93 return *this;
94 }
96
98
109 inline CertificateStatusType GetStatus() const { return m_status; }
110 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
111 inline void SetStatus(CertificateStatusType value) {
112 m_statusHasBeenSet = true;
113 m_status = value;
114 }
116 SetStatus(value);
117 return *this;
118 }
120
122
125 inline const Aws::String& GetCertificate() const { return m_certificate; }
126 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
127 template <typename CertificateT = Aws::String>
128 void SetCertificate(CertificateT&& value) {
129 m_certificateHasBeenSet = true;
130 m_certificate = std::forward<CertificateT>(value);
131 }
132 template <typename CertificateT = Aws::String>
133 DescribedCertificate& WithCertificate(CertificateT&& value) {
134 SetCertificate(std::forward<CertificateT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
144 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
145 template <typename CertificateChainT = Aws::String>
146 void SetCertificateChain(CertificateChainT&& value) {
147 m_certificateChainHasBeenSet = true;
148 m_certificateChain = std::forward<CertificateChainT>(value);
149 }
150 template <typename CertificateChainT = Aws::String>
151 DescribedCertificate& WithCertificateChain(CertificateChainT&& value) {
152 SetCertificateChain(std::forward<CertificateChainT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::Utils::DateTime& GetActiveDate() const { return m_activeDate; }
164 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
165 template <typename ActiveDateT = Aws::Utils::DateTime>
166 void SetActiveDate(ActiveDateT&& value) {
167 m_activeDateHasBeenSet = true;
168 m_activeDate = std::forward<ActiveDateT>(value);
169 }
170 template <typename ActiveDateT = Aws::Utils::DateTime>
171 DescribedCertificate& WithActiveDate(ActiveDateT&& value) {
172 SetActiveDate(std::forward<ActiveDateT>(value));
173 return *this;
174 }
176
178
183 inline const Aws::Utils::DateTime& GetInactiveDate() const { return m_inactiveDate; }
184 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
185 template <typename InactiveDateT = Aws::Utils::DateTime>
186 void SetInactiveDate(InactiveDateT&& value) {
187 m_inactiveDateHasBeenSet = true;
188 m_inactiveDate = std::forward<InactiveDateT>(value);
189 }
190 template <typename InactiveDateT = Aws::Utils::DateTime>
191 DescribedCertificate& WithInactiveDate(InactiveDateT&& value) {
192 SetInactiveDate(std::forward<InactiveDateT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetSerial() const { return m_serial; }
202 inline bool SerialHasBeenSet() const { return m_serialHasBeenSet; }
203 template <typename SerialT = Aws::String>
204 void SetSerial(SerialT&& value) {
205 m_serialHasBeenSet = true;
206 m_serial = std::forward<SerialT>(value);
207 }
208 template <typename SerialT = Aws::String>
210 SetSerial(std::forward<SerialT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetNotBeforeDate() const { return m_notBeforeDate; }
220 inline bool NotBeforeDateHasBeenSet() const { return m_notBeforeDateHasBeenSet; }
221 template <typename NotBeforeDateT = Aws::Utils::DateTime>
222 void SetNotBeforeDate(NotBeforeDateT&& value) {
223 m_notBeforeDateHasBeenSet = true;
224 m_notBeforeDate = std::forward<NotBeforeDateT>(value);
225 }
226 template <typename NotBeforeDateT = Aws::Utils::DateTime>
227 DescribedCertificate& WithNotBeforeDate(NotBeforeDateT&& value) {
228 SetNotBeforeDate(std::forward<NotBeforeDateT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetNotAfterDate() const { return m_notAfterDate; }
238 inline bool NotAfterDateHasBeenSet() const { return m_notAfterDateHasBeenSet; }
239 template <typename NotAfterDateT = Aws::Utils::DateTime>
240 void SetNotAfterDate(NotAfterDateT&& value) {
241 m_notAfterDateHasBeenSet = true;
242 m_notAfterDate = std::forward<NotAfterDateT>(value);
243 }
244 template <typename NotAfterDateT = Aws::Utils::DateTime>
245 DescribedCertificate& WithNotAfterDate(NotAfterDateT&& value) {
246 SetNotAfterDate(std::forward<NotAfterDateT>(value));
247 return *this;
248 }
250
252
257 inline CertificateType GetType() const { return m_type; }
258 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
259 inline void SetType(CertificateType value) {
260 m_typeHasBeenSet = true;
261 m_type = value;
262 }
264 SetType(value);
265 return *this;
266 }
268
270
273 inline const Aws::String& GetDescription() const { return m_description; }
274 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
275 template <typename DescriptionT = Aws::String>
276 void SetDescription(DescriptionT&& value) {
277 m_descriptionHasBeenSet = true;
278 m_description = std::forward<DescriptionT>(value);
279 }
280 template <typename DescriptionT = Aws::String>
281 DescribedCertificate& WithDescription(DescriptionT&& value) {
282 SetDescription(std::forward<DescriptionT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
292 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
293 template <typename TagsT = Aws::Vector<Tag>>
294 void SetTags(TagsT&& value) {
295 m_tagsHasBeenSet = true;
296 m_tags = std::forward<TagsT>(value);
297 }
298 template <typename TagsT = Aws::Vector<Tag>>
300 SetTags(std::forward<TagsT>(value));
301 return *this;
302 }
303 template <typename TagsT = Tag>
305 m_tagsHasBeenSet = true;
306 m_tags.emplace_back(std::forward<TagsT>(value));
307 return *this;
308 }
310 private:
311 Aws::String m_arn;
312
313 Aws::String m_certificateId;
314
316
318
319 Aws::String m_certificate;
320
321 Aws::String m_certificateChain;
322
323 Aws::Utils::DateTime m_activeDate{};
324
325 Aws::Utils::DateTime m_inactiveDate{};
326
327 Aws::String m_serial;
328
329 Aws::Utils::DateTime m_notBeforeDate{};
330
331 Aws::Utils::DateTime m_notAfterDate{};
332
334
335 Aws::String m_description;
336
337 Aws::Vector<Tag> m_tags;
338 bool m_arnHasBeenSet = false;
339 bool m_certificateIdHasBeenSet = false;
340 bool m_usageHasBeenSet = false;
341 bool m_statusHasBeenSet = false;
342 bool m_certificateHasBeenSet = false;
343 bool m_certificateChainHasBeenSet = false;
344 bool m_activeDateHasBeenSet = false;
345 bool m_inactiveDateHasBeenSet = false;
346 bool m_serialHasBeenSet = false;
347 bool m_notBeforeDateHasBeenSet = false;
348 bool m_notAfterDateHasBeenSet = false;
349 bool m_typeHasBeenSet = false;
350 bool m_descriptionHasBeenSet = false;
351 bool m_tagsHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace Transfer
356} // namespace Aws
DescribedCertificate & WithType(CertificateType value)
const Aws::Vector< Tag > & GetTags() const
DescribedCertificate & WithUsage(CertificateUsageType value)
const Aws::Utils::DateTime & GetNotAfterDate() const
DescribedCertificate & WithStatus(CertificateStatusType value)
DescribedCertificate & WithNotBeforeDate(NotBeforeDateT &&value)
DescribedCertificate & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetActiveDate() const
const Aws::Utils::DateTime & GetInactiveDate() const
DescribedCertificate & WithCertificate(CertificateT &&value)
DescribedCertificate & WithSerial(SerialT &&value)
void SetStatus(CertificateStatusType value)
DescribedCertificate & AddTags(TagsT &&value)
void SetUsage(CertificateUsageType value)
DescribedCertificate & WithNotAfterDate(NotAfterDateT &&value)
const Aws::Utils::DateTime & GetNotBeforeDate() const
DescribedCertificate & WithActiveDate(ActiveDateT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedCertificate & WithCertificateId(CertificateIdT &&value)
AWS_TRANSFER_API DescribedCertificate(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API DescribedCertificate()=default
void SetCertificateChain(CertificateChainT &&value)
DescribedCertificate & WithInactiveDate(InactiveDateT &&value)
AWS_TRANSFER_API DescribedCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedCertificate & WithArn(ArnT &&value)
DescribedCertificate & WithTags(TagsT &&value)
DescribedCertificate & WithCertificateChain(CertificateChainT &&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