AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribedCertificate.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/awstransfer/model/CertificateUsageType.h>
10#include <aws/awstransfer/model/CertificateStatusType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/awstransfer/model/CertificateType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/awstransfer/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Transfer
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_TRANSFER_API DescribedCertificate() = default;
43 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 DescribedCertificate& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_certificateIdHasBeenSet = true; m_certificateId = std::forward<CertificateIdT>(value); }
67 template<typename CertificateIdT = Aws::String>
68 DescribedCertificate& WithCertificateId(CertificateIdT&& value) { SetCertificateId(std::forward<CertificateIdT>(value)); return *this;}
70
72
79 inline CertificateUsageType GetUsage() const { return m_usage; }
80 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
81 inline void SetUsage(CertificateUsageType value) { m_usageHasBeenSet = true; m_usage = value; }
82 inline DescribedCertificate& WithUsage(CertificateUsageType value) { SetUsage(value); return *this;}
84
86
97 inline CertificateStatusType GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(CertificateStatusType value) { m_statusHasBeenSet = true; m_status = value; }
100 inline DescribedCertificate& WithStatus(CertificateStatusType value) { SetStatus(value); return *this;}
102
104
107 inline const Aws::String& GetCertificate() const { return m_certificate; }
108 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
109 template<typename CertificateT = Aws::String>
110 void SetCertificate(CertificateT&& value) { m_certificateHasBeenSet = true; m_certificate = std::forward<CertificateT>(value); }
111 template<typename CertificateT = Aws::String>
112 DescribedCertificate& WithCertificate(CertificateT&& value) { SetCertificate(std::forward<CertificateT>(value)); return *this;}
114
116
119 inline const Aws::String& GetCertificateChain() const { return m_certificateChain; }
120 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
121 template<typename CertificateChainT = Aws::String>
122 void SetCertificateChain(CertificateChainT&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::forward<CertificateChainT>(value); }
123 template<typename CertificateChainT = Aws::String>
124 DescribedCertificate& WithCertificateChain(CertificateChainT&& value) { SetCertificateChain(std::forward<CertificateChainT>(value)); return *this;}
126
128
133 inline const Aws::Utils::DateTime& GetActiveDate() const { return m_activeDate; }
134 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
135 template<typename ActiveDateT = Aws::Utils::DateTime>
136 void SetActiveDate(ActiveDateT&& value) { m_activeDateHasBeenSet = true; m_activeDate = std::forward<ActiveDateT>(value); }
137 template<typename ActiveDateT = Aws::Utils::DateTime>
138 DescribedCertificate& WithActiveDate(ActiveDateT&& value) { SetActiveDate(std::forward<ActiveDateT>(value)); return *this;}
140
142
147 inline const Aws::Utils::DateTime& GetInactiveDate() const { return m_inactiveDate; }
148 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
149 template<typename InactiveDateT = Aws::Utils::DateTime>
150 void SetInactiveDate(InactiveDateT&& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = std::forward<InactiveDateT>(value); }
151 template<typename InactiveDateT = Aws::Utils::DateTime>
152 DescribedCertificate& WithInactiveDate(InactiveDateT&& value) { SetInactiveDate(std::forward<InactiveDateT>(value)); return *this;}
154
156
159 inline const Aws::String& GetSerial() const { return m_serial; }
160 inline bool SerialHasBeenSet() const { return m_serialHasBeenSet; }
161 template<typename SerialT = Aws::String>
162 void SetSerial(SerialT&& value) { m_serialHasBeenSet = true; m_serial = std::forward<SerialT>(value); }
163 template<typename SerialT = Aws::String>
164 DescribedCertificate& WithSerial(SerialT&& value) { SetSerial(std::forward<SerialT>(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetNotBeforeDate() const { return m_notBeforeDate; }
172 inline bool NotBeforeDateHasBeenSet() const { return m_notBeforeDateHasBeenSet; }
173 template<typename NotBeforeDateT = Aws::Utils::DateTime>
174 void SetNotBeforeDate(NotBeforeDateT&& value) { m_notBeforeDateHasBeenSet = true; m_notBeforeDate = std::forward<NotBeforeDateT>(value); }
175 template<typename NotBeforeDateT = Aws::Utils::DateTime>
176 DescribedCertificate& WithNotBeforeDate(NotBeforeDateT&& value) { SetNotBeforeDate(std::forward<NotBeforeDateT>(value)); return *this;}
178
180
183 inline const Aws::Utils::DateTime& GetNotAfterDate() const { return m_notAfterDate; }
184 inline bool NotAfterDateHasBeenSet() const { return m_notAfterDateHasBeenSet; }
185 template<typename NotAfterDateT = Aws::Utils::DateTime>
186 void SetNotAfterDate(NotAfterDateT&& value) { m_notAfterDateHasBeenSet = true; m_notAfterDate = std::forward<NotAfterDateT>(value); }
187 template<typename NotAfterDateT = Aws::Utils::DateTime>
188 DescribedCertificate& WithNotAfterDate(NotAfterDateT&& value) { SetNotAfterDate(std::forward<NotAfterDateT>(value)); return *this;}
190
192
197 inline CertificateType GetType() const { return m_type; }
198 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
199 inline void SetType(CertificateType value) { m_typeHasBeenSet = true; m_type = value; }
200 inline DescribedCertificate& WithType(CertificateType value) { SetType(value); return *this;}
202
204
207 inline const Aws::String& GetDescription() const { return m_description; }
208 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
209 template<typename DescriptionT = Aws::String>
210 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
211 template<typename DescriptionT = Aws::String>
212 DescribedCertificate& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
214
216
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 DescribedCertificate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 DescribedCertificate& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228 private:
229
230 Aws::String m_arn;
231 bool m_arnHasBeenSet = false;
232
233 Aws::String m_certificateId;
234 bool m_certificateIdHasBeenSet = false;
235
237 bool m_usageHasBeenSet = false;
238
240 bool m_statusHasBeenSet = false;
241
242 Aws::String m_certificate;
243 bool m_certificateHasBeenSet = false;
244
245 Aws::String m_certificateChain;
246 bool m_certificateChainHasBeenSet = false;
247
248 Aws::Utils::DateTime m_activeDate{};
249 bool m_activeDateHasBeenSet = false;
250
251 Aws::Utils::DateTime m_inactiveDate{};
252 bool m_inactiveDateHasBeenSet = false;
253
254 Aws::String m_serial;
255 bool m_serialHasBeenSet = false;
256
257 Aws::Utils::DateTime m_notBeforeDate{};
258 bool m_notBeforeDateHasBeenSet = false;
259
260 Aws::Utils::DateTime m_notAfterDate{};
261 bool m_notAfterDateHasBeenSet = false;
262
264 bool m_typeHasBeenSet = false;
265
266 Aws::String m_description;
267 bool m_descriptionHasBeenSet = false;
268
269 Aws::Vector<Tag> m_tags;
270 bool m_tagsHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace Transfer
275} // 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