AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CACertificateDescription.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/CACertificateStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iot/model/AutoRegistrationStatus.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 CACertificateDescription& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
55 inline CACertificateDescription& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
56 inline CACertificateDescription& 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 CACertificateDescription& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
69 inline CACertificateDescription& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
70 inline CACertificateDescription& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
72
74
77 inline const CACertificateStatus& GetStatus() const{ return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(const CACertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
80 inline void SetStatus(CACertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
81 inline CACertificateDescription& WithStatus(const CACertificateStatus& value) { SetStatus(value); return *this;}
82 inline CACertificateDescription& WithStatus(CACertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
90 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
91 inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
92 inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::move(value); }
93 inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
94 inline CACertificateDescription& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
95 inline CACertificateDescription& WithCertificatePem(Aws::String&& value) { SetCertificatePem(std::move(value)); return *this;}
96 inline CACertificateDescription& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
98
100
103 inline const Aws::String& GetOwnedBy() const{ return m_ownedBy; }
104 inline bool OwnedByHasBeenSet() const { return m_ownedByHasBeenSet; }
105 inline void SetOwnedBy(const Aws::String& value) { m_ownedByHasBeenSet = true; m_ownedBy = value; }
106 inline void SetOwnedBy(Aws::String&& value) { m_ownedByHasBeenSet = true; m_ownedBy = std::move(value); }
107 inline void SetOwnedBy(const char* value) { m_ownedByHasBeenSet = true; m_ownedBy.assign(value); }
108 inline CACertificateDescription& WithOwnedBy(const Aws::String& value) { SetOwnedBy(value); return *this;}
109 inline CACertificateDescription& WithOwnedBy(Aws::String&& value) { SetOwnedBy(std::move(value)); return *this;}
110 inline CACertificateDescription& WithOwnedBy(const char* value) { SetOwnedBy(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
118 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
119 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
120 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
122 inline CACertificateDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
124
126
130 inline const AutoRegistrationStatus& GetAutoRegistrationStatus() const{ return m_autoRegistrationStatus; }
131 inline bool AutoRegistrationStatusHasBeenSet() const { return m_autoRegistrationStatusHasBeenSet; }
132 inline void SetAutoRegistrationStatus(const AutoRegistrationStatus& value) { m_autoRegistrationStatusHasBeenSet = true; m_autoRegistrationStatus = value; }
133 inline void SetAutoRegistrationStatus(AutoRegistrationStatus&& value) { m_autoRegistrationStatusHasBeenSet = true; m_autoRegistrationStatus = std::move(value); }
137
139
142 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
143 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
144 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
145 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
149
151
154 inline int GetCustomerVersion() const{ return m_customerVersion; }
155 inline bool CustomerVersionHasBeenSet() const { return m_customerVersionHasBeenSet; }
156 inline void SetCustomerVersion(int value) { m_customerVersionHasBeenSet = true; m_customerVersion = value; }
157 inline CACertificateDescription& WithCustomerVersion(int value) { SetCustomerVersion(value); return *this;}
159
161
164 inline const Aws::String& GetGenerationId() const{ return m_generationId; }
165 inline bool GenerationIdHasBeenSet() const { return m_generationIdHasBeenSet; }
166 inline void SetGenerationId(const Aws::String& value) { m_generationIdHasBeenSet = true; m_generationId = value; }
167 inline void SetGenerationId(Aws::String&& value) { m_generationIdHasBeenSet = true; m_generationId = std::move(value); }
168 inline void SetGenerationId(const char* value) { m_generationIdHasBeenSet = true; m_generationId.assign(value); }
169 inline CACertificateDescription& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;}
170 inline CACertificateDescription& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;}
171 inline CACertificateDescription& WithGenerationId(const char* value) { SetGenerationId(value); return *this;}
173
175
178 inline const CertificateValidity& GetValidity() const{ return m_validity; }
179 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
180 inline void SetValidity(const CertificateValidity& value) { m_validityHasBeenSet = true; m_validity = value; }
181 inline void SetValidity(CertificateValidity&& value) { m_validityHasBeenSet = true; m_validity = std::move(value); }
182 inline CACertificateDescription& WithValidity(const CertificateValidity& value) { SetValidity(value); return *this;}
183 inline CACertificateDescription& WithValidity(CertificateValidity&& value) { SetValidity(std::move(value)); return *this;}
185
187
194 inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; }
195 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
196 inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
197 inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); }
199 inline CACertificateDescription& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;}
201 private:
202
203 Aws::String m_certificateArn;
204 bool m_certificateArnHasBeenSet = false;
205
206 Aws::String m_certificateId;
207 bool m_certificateIdHasBeenSet = false;
208
209 CACertificateStatus m_status;
210 bool m_statusHasBeenSet = false;
211
212 Aws::String m_certificatePem;
213 bool m_certificatePemHasBeenSet = false;
214
215 Aws::String m_ownedBy;
216 bool m_ownedByHasBeenSet = false;
217
218 Aws::Utils::DateTime m_creationDate;
219 bool m_creationDateHasBeenSet = false;
220
221 AutoRegistrationStatus m_autoRegistrationStatus;
222 bool m_autoRegistrationStatusHasBeenSet = false;
223
224 Aws::Utils::DateTime m_lastModifiedDate;
225 bool m_lastModifiedDateHasBeenSet = false;
226
227 int m_customerVersion;
228 bool m_customerVersionHasBeenSet = false;
229
230 Aws::String m_generationId;
231 bool m_generationIdHasBeenSet = false;
232
233 CertificateValidity m_validity;
234 bool m_validityHasBeenSet = false;
235
236 CertificateMode m_certificateMode;
237 bool m_certificateModeHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace IoT
242} // namespace Aws
CACertificateDescription & WithOwnedBy(const Aws::String &value)
CACertificateDescription & WithCertificateArn(const char *value)
const Aws::Utils::DateTime & GetCreationDate() const
CACertificateDescription & WithCertificateArn(const Aws::String &value)
CACertificateDescription & WithAutoRegistrationStatus(const AutoRegistrationStatus &value)
CACertificateDescription & WithCertificateMode(const CertificateMode &value)
CACertificateDescription & WithOwnedBy(Aws::String &&value)
CACertificateDescription & WithCertificateId(Aws::String &&value)
void SetValidity(const CertificateValidity &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetAutoRegistrationStatus(AutoRegistrationStatus &&value)
CACertificateDescription & WithCreationDate(Aws::Utils::DateTime &&value)
CACertificateDescription & WithCertificatePem(const char *value)
AWS_IOT_API CACertificateDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const CACertificateStatus &value)
CACertificateDescription & WithCertificatePem(const Aws::String &value)
const CertificateValidity & GetValidity() const
void SetStatus(CACertificateStatus &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
CACertificateDescription & WithCreationDate(const Aws::Utils::DateTime &value)
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
CACertificateDescription & WithCertificateId(const Aws::String &value)
CACertificateDescription & WithCustomerVersion(int value)
CACertificateDescription & WithStatus(CACertificateStatus &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
CACertificateDescription & WithCertificateArn(Aws::String &&value)
CACertificateDescription & WithValidity(CertificateValidity &&value)
void SetAutoRegistrationStatus(const AutoRegistrationStatus &value)
CACertificateDescription & WithCertificatePem(Aws::String &&value)
const AutoRegistrationStatus & GetAutoRegistrationStatus() const
CACertificateDescription & WithLastModifiedDate(const Aws::Utils::DateTime &value)
CACertificateDescription & WithCertificateId(const char *value)
CACertificateDescription & WithCertificateMode(CertificateMode &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
void SetCertificateMode(const CertificateMode &value)
const CACertificateStatus & GetStatus() const
CACertificateDescription & WithValidity(const CertificateValidity &value)
CACertificateDescription & WithGenerationId(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CACertificateDescription & WithLastModifiedDate(Aws::Utils::DateTime &&value)
AWS_IOT_API CACertificateDescription(Aws::Utils::Json::JsonView jsonValue)
CACertificateDescription & WithGenerationId(const Aws::String &value)
CACertificateDescription & WithGenerationId(const char *value)
CACertificateDescription & WithAutoRegistrationStatus(AutoRegistrationStatus &&value)
void SetValidity(CertificateValidity &&value)
CACertificateDescription & WithOwnedBy(const char *value)
CACertificateDescription & WithStatus(const CACertificateStatus &value)
const CertificateMode & GetCertificateMode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue