AWS SDK for C++  1.9.132
AWS SDK for C++
Certificate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace IoT
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
47 
51  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
52 
56  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
57 
61  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
62 
66  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
67 
71  inline Certificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
72 
76  inline Certificate& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
77 
81  inline Certificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
82 
83 
88  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
89 
94  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
95 
100  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
101 
106  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
107 
112  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
113 
118  inline Certificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
119 
124  inline Certificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
125 
130  inline Certificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
131 
132 
137  inline const CertificateStatus& GetStatus() const{ return m_status; }
138 
143  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
144 
149  inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
150 
155  inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
156 
161  inline Certificate& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
162 
167  inline Certificate& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
168 
169 
173  inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; }
174 
178  inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
179 
183  inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
184 
188  inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); }
189 
193  inline Certificate& WithCertificateMode(const CertificateMode& value) { SetCertificateMode(value); return *this;}
194 
198  inline Certificate& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;}
199 
200 
204  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
205 
209  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
210 
214  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
215 
219  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
220 
224  inline Certificate& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
225 
229  inline Certificate& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
230 
231  private:
232 
233  Aws::String m_certificateArn;
234  bool m_certificateArnHasBeenSet;
235 
236  Aws::String m_certificateId;
237  bool m_certificateIdHasBeenSet;
238 
239  CertificateStatus m_status;
240  bool m_statusHasBeenSet;
241 
242  CertificateMode m_certificateMode;
243  bool m_certificateModeHasBeenSet;
244 
245  Aws::Utils::DateTime m_creationDate;
246  bool m_creationDateHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace IoT
251 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::Certificate::Certificate
Certificate()
Aws::IoT::Model::Certificate::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: Certificate.h:94
CertificateStatus.h
Aws::IoT::Model::Certificate::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:219
DateTime.h
Aws::IoT::Model::CertificateStatus
CertificateStatus
Definition: CertificateStatus.h:17
Aws::IoT::Model::Certificate::WithCertificateMode
Certificate & WithCertificateMode(const CertificateMode &value)
Definition: Certificate.h:193
Aws::IoT::Model::Certificate::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: Certificate.h:56
Aws::IoT::Model::Certificate::WithCertificateMode
Certificate & WithCertificateMode(CertificateMode &&value)
Definition: Certificate.h:198
Aws::IoT::Model::Certificate::SetCertificateMode
void SetCertificateMode(CertificateMode &&value)
Definition: Certificate.h:188
Aws::IoT::Model::Certificate::WithCreationDate
Certificate & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:224
Aws::IoT::Model::Certificate::GetStatus
const CertificateStatus & GetStatus() const
Definition: Certificate.h:137
Aws::IoT::Model::Certificate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::Certificate::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: Certificate.h:106
Aws::IoT::Model::Certificate::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: Certificate.h:204
Aws::IoT::Model::Certificate::WithCreationDate
Certificate & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: Certificate.h:229
Aws::IoT::Model::Certificate::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: Certificate.h:51
Aws::IoT::Model::Certificate::WithStatus
Certificate & WithStatus(CertificateStatus &&value)
Definition: Certificate.h:167
Aws::IoT::Model::Certificate
Definition: Certificate.h:35
Aws::IoT::Model::Certificate::CertificateModeHasBeenSet
bool CertificateModeHasBeenSet() const
Definition: Certificate.h:178
Aws::IoT::Model::Certificate::SetCertificateMode
void SetCertificateMode(const CertificateMode &value)
Definition: Certificate.h:183
Aws::IoT::Model::Certificate::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Certificate.h:143
Aws::IoT::Model::Certificate::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: Certificate.h:209
Aws::IoT::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(const Aws::String &value)
Definition: Certificate.h:118
Aws::IoT::Model::Certificate::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: Certificate.h:46
Aws::IoT::Model::Certificate::WithCertificateArn
Certificate & WithCertificateArn(const Aws::String &value)
Definition: Certificate.h:71
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::Certificate::SetCertificateId
void SetCertificateId(const char *value)
Definition: Certificate.h:112
Aws::IoT::Model::Certificate::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: Certificate.h:214
Aws::IoT::Model::Certificate::Certificate
Certificate(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::Certificate::SetStatus
void SetStatus(const CertificateStatus &value)
Definition: Certificate.h:149
Aws::IoT::Model::Certificate::SetStatus
void SetStatus(CertificateStatus &&value)
Definition: Certificate.h:155
CertificateMode.h
Aws::IoT::Model::CertificateMode
CertificateMode
Definition: CertificateMode.h:17
Aws::IoT::Model::Certificate::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: Certificate.h:66
Aws::IoT::Model::Certificate::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: Certificate.h:88
Aws::IoT::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(const char *value)
Definition: Certificate.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::Certificate::WithCertificateArn
Certificate & WithCertificateArn(const char *value)
Definition: Certificate.h:81
Aws::IoT::Model::Certificate::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: Certificate.h:100
Aws::IoT::Model::Certificate::WithCertificateArn
Certificate & WithCertificateArn(Aws::String &&value)
Definition: Certificate.h:76
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::Certificate::GetCertificateMode
const CertificateMode & GetCertificateMode() const
Definition: Certificate.h:173
Aws::IoT::Model::Certificate::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: Certificate.h:61
Aws::IoT::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(Aws::String &&value)
Definition: Certificate.h:124
Aws::IoT::Model::Certificate::WithStatus
Certificate & WithStatus(const CertificateStatus &value)
Definition: Certificate.h:161
Aws::IoT::Model::Certificate::operator=
Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h