AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline DescribedCertificate& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline DescribedCertificate& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline DescribedCertificate& WithArn(const char* value) { SetArn(value); return *this;}
59
61
65 inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
66 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
67 inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
68 inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
69 inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
70 inline DescribedCertificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
71 inline DescribedCertificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
72 inline DescribedCertificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
74
76
83 inline const CertificateUsageType& GetUsage() const{ return m_usage; }
84 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
85 inline void SetUsage(const CertificateUsageType& value) { m_usageHasBeenSet = true; m_usage = value; }
86 inline void SetUsage(CertificateUsageType&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
87 inline DescribedCertificate& WithUsage(const CertificateUsageType& value) { SetUsage(value); return *this;}
88 inline DescribedCertificate& WithUsage(CertificateUsageType&& value) { SetUsage(std::move(value)); return *this;}
90
92
98 inline const CertificateStatusType& GetStatus() const{ return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(const CertificateStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
101 inline void SetStatus(CertificateStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 inline DescribedCertificate& WithStatus(const CertificateStatusType& value) { SetStatus(value); return *this;}
103 inline DescribedCertificate& WithStatus(CertificateStatusType&& value) { SetStatus(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetCertificate() const{ return m_certificate; }
111 inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; }
112 inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
113 inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); }
114 inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
115 inline DescribedCertificate& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
116 inline DescribedCertificate& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;}
117 inline DescribedCertificate& WithCertificate(const char* value) { SetCertificate(value); return *this;}
119
121
124 inline const Aws::String& GetCertificateChain() const{ return m_certificateChain; }
125 inline bool CertificateChainHasBeenSet() const { return m_certificateChainHasBeenSet; }
126 inline void SetCertificateChain(const Aws::String& value) { m_certificateChainHasBeenSet = true; m_certificateChain = value; }
127 inline void SetCertificateChain(Aws::String&& value) { m_certificateChainHasBeenSet = true; m_certificateChain = std::move(value); }
128 inline void SetCertificateChain(const char* value) { m_certificateChainHasBeenSet = true; m_certificateChain.assign(value); }
129 inline DescribedCertificate& WithCertificateChain(const Aws::String& value) { SetCertificateChain(value); return *this;}
130 inline DescribedCertificate& WithCertificateChain(Aws::String&& value) { SetCertificateChain(std::move(value)); return *this;}
131 inline DescribedCertificate& WithCertificateChain(const char* value) { SetCertificateChain(value); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetActiveDate() const{ return m_activeDate; }
139 inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; }
140 inline void SetActiveDate(const Aws::Utils::DateTime& value) { m_activeDateHasBeenSet = true; m_activeDate = value; }
141 inline void SetActiveDate(Aws::Utils::DateTime&& value) { m_activeDateHasBeenSet = true; m_activeDate = std::move(value); }
142 inline DescribedCertificate& WithActiveDate(const Aws::Utils::DateTime& value) { SetActiveDate(value); return *this;}
143 inline DescribedCertificate& WithActiveDate(Aws::Utils::DateTime&& value) { SetActiveDate(std::move(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetInactiveDate() const{ return m_inactiveDate; }
151 inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; }
152 inline void SetInactiveDate(const Aws::Utils::DateTime& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = value; }
153 inline void SetInactiveDate(Aws::Utils::DateTime&& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = std::move(value); }
154 inline DescribedCertificate& WithInactiveDate(const Aws::Utils::DateTime& value) { SetInactiveDate(value); return *this;}
155 inline DescribedCertificate& WithInactiveDate(Aws::Utils::DateTime&& value) { SetInactiveDate(std::move(value)); return *this;}
157
159
162 inline const Aws::String& GetSerial() const{ return m_serial; }
163 inline bool SerialHasBeenSet() const { return m_serialHasBeenSet; }
164 inline void SetSerial(const Aws::String& value) { m_serialHasBeenSet = true; m_serial = value; }
165 inline void SetSerial(Aws::String&& value) { m_serialHasBeenSet = true; m_serial = std::move(value); }
166 inline void SetSerial(const char* value) { m_serialHasBeenSet = true; m_serial.assign(value); }
167 inline DescribedCertificate& WithSerial(const Aws::String& value) { SetSerial(value); return *this;}
168 inline DescribedCertificate& WithSerial(Aws::String&& value) { SetSerial(std::move(value)); return *this;}
169 inline DescribedCertificate& WithSerial(const char* value) { SetSerial(value); return *this;}
171
173
176 inline const Aws::Utils::DateTime& GetNotBeforeDate() const{ return m_notBeforeDate; }
177 inline bool NotBeforeDateHasBeenSet() const { return m_notBeforeDateHasBeenSet; }
178 inline void SetNotBeforeDate(const Aws::Utils::DateTime& value) { m_notBeforeDateHasBeenSet = true; m_notBeforeDate = value; }
179 inline void SetNotBeforeDate(Aws::Utils::DateTime&& value) { m_notBeforeDateHasBeenSet = true; m_notBeforeDate = std::move(value); }
181 inline DescribedCertificate& WithNotBeforeDate(Aws::Utils::DateTime&& value) { SetNotBeforeDate(std::move(value)); return *this;}
183
185
188 inline const Aws::Utils::DateTime& GetNotAfterDate() const{ return m_notAfterDate; }
189 inline bool NotAfterDateHasBeenSet() const { return m_notAfterDateHasBeenSet; }
190 inline void SetNotAfterDate(const Aws::Utils::DateTime& value) { m_notAfterDateHasBeenSet = true; m_notAfterDate = value; }
191 inline void SetNotAfterDate(Aws::Utils::DateTime&& value) { m_notAfterDateHasBeenSet = true; m_notAfterDate = std::move(value); }
192 inline DescribedCertificate& WithNotAfterDate(const Aws::Utils::DateTime& value) { SetNotAfterDate(value); return *this;}
193 inline DescribedCertificate& WithNotAfterDate(Aws::Utils::DateTime&& value) { SetNotAfterDate(std::move(value)); return *this;}
195
197
202 inline const CertificateType& GetType() const{ return m_type; }
203 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
204 inline void SetType(const CertificateType& value) { m_typeHasBeenSet = true; m_type = value; }
205 inline void SetType(CertificateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
206 inline DescribedCertificate& WithType(const CertificateType& value) { SetType(value); return *this;}
207 inline DescribedCertificate& WithType(CertificateType&& value) { SetType(std::move(value)); return *this;}
209
211
214 inline const Aws::String& GetDescription() const{ return m_description; }
215 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
216 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
217 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
218 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
219 inline DescribedCertificate& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
220 inline DescribedCertificate& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
221 inline DescribedCertificate& WithDescription(const char* value) { SetDescription(value); return *this;}
223
225
228 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
229 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
230 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
231 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
232 inline DescribedCertificate& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
233 inline DescribedCertificate& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
234 inline DescribedCertificate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
235 inline DescribedCertificate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
237 private:
238
239 Aws::String m_arn;
240 bool m_arnHasBeenSet = false;
241
242 Aws::String m_certificateId;
243 bool m_certificateIdHasBeenSet = false;
244
245 CertificateUsageType m_usage;
246 bool m_usageHasBeenSet = false;
247
248 CertificateStatusType m_status;
249 bool m_statusHasBeenSet = false;
250
251 Aws::String m_certificate;
252 bool m_certificateHasBeenSet = false;
253
254 Aws::String m_certificateChain;
255 bool m_certificateChainHasBeenSet = false;
256
257 Aws::Utils::DateTime m_activeDate;
258 bool m_activeDateHasBeenSet = false;
259
260 Aws::Utils::DateTime m_inactiveDate;
261 bool m_inactiveDateHasBeenSet = false;
262
263 Aws::String m_serial;
264 bool m_serialHasBeenSet = false;
265
266 Aws::Utils::DateTime m_notBeforeDate;
267 bool m_notBeforeDateHasBeenSet = false;
268
269 Aws::Utils::DateTime m_notAfterDate;
270 bool m_notAfterDateHasBeenSet = false;
271
272 CertificateType m_type;
273 bool m_typeHasBeenSet = false;
274
275 Aws::String m_description;
276 bool m_descriptionHasBeenSet = false;
277
278 Aws::Vector<Tag> m_tags;
279 bool m_tagsHasBeenSet = false;
280 };
281
282} // namespace Model
283} // namespace Transfer
284} // namespace Aws
DescribedCertificate & WithTags(const Aws::Vector< Tag > &value)
void SetUsage(const CertificateUsageType &value)
DescribedCertificate & WithNotBeforeDate(Aws::Utils::DateTime &&value)
const Aws::Vector< Tag > & GetTags() const
DescribedCertificate & WithDescription(Aws::String &&value)
DescribedCertificate & WithUsage(CertificateUsageType &&value)
DescribedCertificate & WithCertificate(Aws::String &&value)
DescribedCertificate & WithCertificateId(const Aws::String &value)
void SetNotBeforeDate(Aws::Utils::DateTime &&value)
DescribedCertificate & WithNotBeforeDate(const Aws::Utils::DateTime &value)
void SetActiveDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetNotAfterDate() const
DescribedCertificate & WithTags(Aws::Vector< Tag > &&value)
DescribedCertificate & WithCertificate(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
DescribedCertificate & AddTags(const Tag &value)
void SetCertificateChain(const Aws::String &value)
DescribedCertificate & AddTags(Tag &&value)
const Aws::Utils::DateTime & GetActiveDate() const
const Aws::Utils::DateTime & GetInactiveDate() const
DescribedCertificate & WithStatus(CertificateStatusType &&value)
DescribedCertificate & WithCertificate(const Aws::String &value)
DescribedCertificate & WithSerial(Aws::String &&value)
DescribedCertificate & WithCertificateChain(Aws::String &&value)
DescribedCertificate & WithArn(Aws::String &&value)
DescribedCertificate & WithSerial(const char *value)
DescribedCertificate & WithStatus(const CertificateStatusType &value)
DescribedCertificate & WithInactiveDate(const Aws::Utils::DateTime &value)
void SetActiveDate(const Aws::Utils::DateTime &value)
DescribedCertificate & WithDescription(const Aws::String &value)
DescribedCertificate & WithInactiveDate(Aws::Utils::DateTime &&value)
void SetStatus(CertificateStatusType &&value)
DescribedCertificate & WithType(CertificateType &&value)
void SetInactiveDate(const Aws::Utils::DateTime &value)
const CertificateStatusType & GetStatus() const
const Aws::Utils::DateTime & GetNotBeforeDate() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsage(CertificateUsageType &&value)
DescribedCertificate & WithArn(const char *value)
DescribedCertificate & WithActiveDate(const Aws::Utils::DateTime &value)
DescribedCertificate & WithType(const CertificateType &value)
DescribedCertificate & WithCertificateChain(const Aws::String &value)
void SetNotBeforeDate(const Aws::Utils::DateTime &value)
DescribedCertificate & WithNotAfterDate(const Aws::Utils::DateTime &value)
DescribedCertificate & WithCertificateId(Aws::String &&value)
void SetStatus(const CertificateStatusType &value)
DescribedCertificate & WithUsage(const CertificateUsageType &value)
void SetNotAfterDate(const Aws::Utils::DateTime &value)
AWS_TRANSFER_API DescribedCertificate(Aws::Utils::Json::JsonView jsonValue)
void SetInactiveDate(Aws::Utils::DateTime &&value)
void SetCertificate(const Aws::String &value)
DescribedCertificate & WithCertificateChain(const char *value)
DescribedCertificate & WithSerial(const Aws::String &value)
AWS_TRANSFER_API DescribedCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedCertificate & WithArn(const Aws::String &value)
DescribedCertificate & WithNotAfterDate(Aws::Utils::DateTime &&value)
void SetDescription(const Aws::String &value)
DescribedCertificate & WithDescription(const char *value)
DescribedCertificate & WithActiveDate(Aws::Utils::DateTime &&value)
DescribedCertificate & WithCertificateId(const char *value)
void SetNotAfterDate(Aws::Utils::DateTime &&value)
void SetCertificateId(const Aws::String &value)
const CertificateUsageType & GetUsage() const
void SetType(const CertificateType &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