AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CertificateDescription.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/CertificateStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/TransferData.h>
12#include <aws/iot/model/CertificateValidity.h>
13#include <aws/iot/model/CertificateMode.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IoT
27{
28namespace Model
29{
30
37 {
38 public:
43
44
46
49 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
50 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
51 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
52 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
53 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
54 inline CertificateDescription& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
55 inline CertificateDescription& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
56 inline CertificateDescription& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
58
60
63 inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
64 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
65 inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
66 inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
67 inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
68 inline CertificateDescription& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
69 inline CertificateDescription& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
70 inline CertificateDescription& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
72
74
77 inline const Aws::String& GetCaCertificateId() const{ return m_caCertificateId; }
78 inline bool CaCertificateIdHasBeenSet() const { return m_caCertificateIdHasBeenSet; }
79 inline void SetCaCertificateId(const Aws::String& value) { m_caCertificateIdHasBeenSet = true; m_caCertificateId = value; }
80 inline void SetCaCertificateId(Aws::String&& value) { m_caCertificateIdHasBeenSet = true; m_caCertificateId = std::move(value); }
81 inline void SetCaCertificateId(const char* value) { m_caCertificateIdHasBeenSet = true; m_caCertificateId.assign(value); }
82 inline CertificateDescription& WithCaCertificateId(const Aws::String& value) { SetCaCertificateId(value); return *this;}
83 inline CertificateDescription& WithCaCertificateId(Aws::String&& value) { SetCaCertificateId(std::move(value)); return *this;}
84 inline CertificateDescription& WithCaCertificateId(const char* value) { SetCaCertificateId(value); return *this;}
86
88
91 inline const CertificateStatus& GetStatus() const{ return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
94 inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
95 inline CertificateDescription& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
96 inline CertificateDescription& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
104 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
105 inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
106 inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
107 inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
108 inline CertificateDescription& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
109 inline CertificateDescription& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
110 inline CertificateDescription& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
112
114
117 inline const Aws::String& GetOwnedBy() const{ return m_ownedBy; }
118 inline bool OwnedByHasBeenSet() const { return m_ownedByHasBeenSet; }
119 inline void SetOwnedBy(const Aws::String& value) { m_ownedByHasBeenSet = true; m_ownedBy = value; }
120 inline void SetOwnedBy(Aws::String&& value) { m_ownedByHasBeenSet = true; m_ownedBy = std::move(value); }
121 inline void SetOwnedBy(const char* value) { m_ownedByHasBeenSet = true; m_ownedBy.assign(value); }
122 inline CertificateDescription& WithOwnedBy(const Aws::String& value) { SetOwnedBy(value); return *this;}
123 inline CertificateDescription& WithOwnedBy(Aws::String&& value) { SetOwnedBy(std::move(value)); return *this;}
124 inline CertificateDescription& WithOwnedBy(const char* value) { SetOwnedBy(value); return *this;}
126
128
132 inline const Aws::String& GetPreviousOwnedBy() const{ return m_previousOwnedBy; }
133 inline bool PreviousOwnedByHasBeenSet() const { return m_previousOwnedByHasBeenSet; }
134 inline void SetPreviousOwnedBy(const Aws::String& value) { m_previousOwnedByHasBeenSet = true; m_previousOwnedBy = value; }
135 inline void SetPreviousOwnedBy(Aws::String&& value) { m_previousOwnedByHasBeenSet = true; m_previousOwnedBy = std::move(value); }
136 inline void SetPreviousOwnedBy(const char* value) { m_previousOwnedByHasBeenSet = true; m_previousOwnedBy.assign(value); }
137 inline CertificateDescription& WithPreviousOwnedBy(const Aws::String& value) { SetPreviousOwnedBy(value); return *this;}
138 inline CertificateDescription& WithPreviousOwnedBy(Aws::String&& value) { SetPreviousOwnedBy(std::move(value)); return *this;}
139 inline CertificateDescription& WithPreviousOwnedBy(const char* value) { SetPreviousOwnedBy(value); return *this;}
141
143
146 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
147 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
148 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
149 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
151 inline CertificateDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
159 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
160 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
161 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
163 inline CertificateDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
165
167
170 inline int GetCustomerVersion() const{ return m_customerVersion; }
171 inline bool CustomerVersionHasBeenSet() const { return m_customerVersionHasBeenSet; }
172 inline void SetCustomerVersion(int value) { m_customerVersionHasBeenSet = true; m_customerVersion = value; }
173 inline CertificateDescription& WithCustomerVersion(int value) { SetCustomerVersion(value); return *this;}
175
177
180 inline const TransferData& GetTransferData() const{ return m_transferData; }
181 inline bool TransferDataHasBeenSet() const { return m_transferDataHasBeenSet; }
182 inline void SetTransferData(const TransferData& value) { m_transferDataHasBeenSet = true; m_transferData = value; }
183 inline void SetTransferData(TransferData&& value) { m_transferDataHasBeenSet = true; m_transferData = std::move(value); }
184 inline CertificateDescription& WithTransferData(const TransferData& value) { SetTransferData(value); return *this;}
185 inline CertificateDescription& WithTransferData(TransferData&& value) { SetTransferData(std::move(value)); return *this;}
187
189
192 inline const Aws::String& GetGenerationId() const{ return m_generationId; }
193 inline bool GenerationIdHasBeenSet() const { return m_generationIdHasBeenSet; }
194 inline void SetGenerationId(const Aws::String& value) { m_generationIdHasBeenSet = true; m_generationId = value; }
195 inline void SetGenerationId(Aws::String&& value) { m_generationIdHasBeenSet = true; m_generationId = std::move(value); }
196 inline void SetGenerationId(const char* value) { m_generationIdHasBeenSet = true; m_generationId.assign(value); }
197 inline CertificateDescription& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
198 inline CertificateDescription& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
199 inline CertificateDescription& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
201
203
206 inline const CertificateValidity& GetValidity() const{ return m_validity; }
207 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
208 inline void SetValidity(const CertificateValidity& value) { m_validityHasBeenSet = true; m_validity = value; }
209 inline void SetValidity(CertificateValidity&& value) { m_validityHasBeenSet = true; m_validity = std::move(value); }
210 inline CertificateDescription& WithValidity(const CertificateValidity& value) { SetValidity(value); return *this;}
211 inline CertificateDescription& WithValidity(CertificateValidity&& value) { SetValidity(std::move(value)); return *this;}
213
215
231 inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; }
232 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
233 inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
234 inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); }
236 inline CertificateDescription& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;}
238 private:
239
240 Aws::String m_certificateArn;
241 bool m_certificateArnHasBeenSet = false;
242
243 Aws::String m_certificateId;
244 bool m_certificateIdHasBeenSet = false;
245
246 Aws::String m_caCertificateId;
247 bool m_caCertificateIdHasBeenSet = false;
248
249 CertificateStatus m_status;
250 bool m_statusHasBeenSet = false;
251
252 Aws::String m_certificatePem;
253 bool m_certificatePemHasBeenSet = false;
254
255 Aws::String m_ownedBy;
256 bool m_ownedByHasBeenSet = false;
257
258 Aws::String m_previousOwnedBy;
259 bool m_previousOwnedByHasBeenSet = false;
260
261 Aws::Utils::DateTime m_creationDate;
262 bool m_creationDateHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastModifiedDate;
265 bool m_lastModifiedDateHasBeenSet = false;
266
267 int m_customerVersion;
268 bool m_customerVersionHasBeenSet = false;
269
270 TransferData m_transferData;
271 bool m_transferDataHasBeenSet = false;
272
273 Aws::String m_generationId;
274 bool m_generationIdHasBeenSet = false;
275
276 CertificateValidity m_validity;
277 bool m_validityHasBeenSet = false;
278
279 CertificateMode m_certificateMode;
280 bool m_certificateModeHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace IoT
285} // namespace Aws
CertificateDescription & WithCertificatePem(Aws::String &&value)
CertificateDescription & WithCertificatePem(const char *value)
CertificateDescription & WithCertificateId(const char *value)
CertificateDescription & WithCreationDate(Aws::Utils::DateTime &&value)
void SetTransferData(const TransferData &value)
CertificateDescription & WithCertificateId(Aws::String &&value)
AWS_IOT_API CertificateDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
CertificateDescription & WithValidity(CertificateValidity &&value)
CertificateDescription & WithCaCertificateId(const char *value)
CertificateDescription & WithGenerationId(Aws::String &&value)
CertificateDescription & WithOwnedBy(const char *value)
void SetCertificateId(const Aws::String &value)
CertificateDescription & WithStatus(const CertificateStatus &value)
void SetCertificateMode(CertificateMode &&value)
CertificateDescription & WithValidity(const CertificateValidity &value)
void SetCertificateMode(const CertificateMode &value)
CertificateDescription & WithStatus(CertificateStatus &&value)
CertificateDescription & WithTransferData(const TransferData &value)
const Aws::Utils::DateTime & GetCreationDate() const
CertificateDescription & WithPreviousOwnedBy(const Aws::String &value)
CertificateDescription & WithCertificatePem(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
CertificateDescription & WithOwnedBy(const Aws::String &value)
void SetValidity(const CertificateValidity &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateDescription & WithLastModifiedDate(Aws::Utils::DateTime &&value)
CertificateDescription & WithCertificateId(const Aws::String &value)
CertificateDescription & WithCaCertificateId(Aws::String &&value)
CertificateDescription & WithGenerationId(const char *value)
void SetCreationDate(Aws::Utils::DateTime &&value)
CertificateDescription & WithCustomerVersion(int value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetStatus(CertificateStatus &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
CertificateDescription & WithCertificateMode(const CertificateMode &value)
const CertificateMode & GetCertificateMode() const
CertificateDescription & WithTransferData(TransferData &&value)
CertificateDescription & WithCaCertificateId(const Aws::String &value)
void SetPreviousOwnedBy(const Aws::String &value)
CertificateDescription & WithLastModifiedDate(const Aws::Utils::DateTime &value)
CertificateDescription & WithCertificateArn(Aws::String &&value)
CertificateDescription & WithCertificateMode(CertificateMode &&value)
void SetStatus(const CertificateStatus &value)
void SetGenerationId(const Aws::String &value)
CertificateDescription & WithPreviousOwnedBy(Aws::String &&value)
CertificateDescription & WithPreviousOwnedBy(const char *value)
CertificateDescription & WithOwnedBy(Aws::String &&value)
CertificateDescription & WithCertificateArn(const Aws::String &value)
CertificateDescription & WithGenerationId(const Aws::String &value)
AWS_IOT_API CertificateDescription(Aws::Utils::Json::JsonView jsonValue)
CertificateDescription & WithCreationDate(const Aws::Utils::DateTime &value)
void SetCaCertificateId(const Aws::String &value)
void SetCertificatePem(const Aws::String &value)
void SetValidity(CertificateValidity &&value)
const CertificateStatus & GetStatus() const
void SetCertificateArn(const Aws::String &value)
const CertificateValidity & GetValidity() const
CertificateDescription & WithCertificateArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue