AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Certificate.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/iot/model/CertificateMode.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOT_API Certificate();
41
42
44
47 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
48 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
49 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
50 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
51 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
52 inline Certificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
53 inline Certificate& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
54 inline Certificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
56
58
62 inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
63 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
64 inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
65 inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
66 inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
67 inline Certificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
68 inline Certificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
69 inline Certificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
71
73
77 inline const CertificateStatus& GetStatus() const{ return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
80 inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
81 inline Certificate& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
82 inline Certificate& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
84
86
99 inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; }
100 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
101 inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
102 inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); }
103 inline Certificate& WithCertificateMode(const CertificateMode& value) { SetCertificateMode(value); return *this;}
104 inline Certificate& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;}
106
108
111 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
112 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
113 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
114 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
115 inline Certificate& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
116 inline Certificate& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
118 private:
119
120 Aws::String m_certificateArn;
121 bool m_certificateArnHasBeenSet = false;
122
123 Aws::String m_certificateId;
124 bool m_certificateIdHasBeenSet = false;
125
126 CertificateStatus m_status;
127 bool m_statusHasBeenSet = false;
128
129 CertificateMode m_certificateMode;
130 bool m_certificateModeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_creationDate;
133 bool m_creationDateHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace IoT
138} // namespace Aws
void SetCertificateArn(const char *value)
Definition Certificate.h:51
Certificate & WithCreationDate(const Aws::Utils::DateTime &value)
Certificate & WithCertificateMode(const CertificateMode &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCertificateMode(const CertificateMode &value)
void SetStatus(CertificateStatus &&value)
Definition Certificate.h:80
Certificate & WithCertificateId(Aws::String &&value)
Definition Certificate.h:68
Certificate & WithCertificateId(const Aws::String &value)
Definition Certificate.h:67
const CertificateStatus & GetStatus() const
Definition Certificate.h:77
Certificate & WithCreationDate(Aws::Utils::DateTime &&value)
bool CertificateIdHasBeenSet() const
Definition Certificate.h:63
bool CertificateModeHasBeenSet() const
Certificate & WithCertificateArn(Aws::String &&value)
Definition Certificate.h:53
Certificate & WithCertificateId(const char *value)
Definition Certificate.h:69
AWS_IOT_API Certificate(Aws::Utils::Json::JsonView jsonValue)
Certificate & WithCertificateArn(const char *value)
Definition Certificate.h:54
bool CreationDateHasBeenSet() const
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetCertificateArn(Aws::String &&value)
Definition Certificate.h:50
const Aws::String & GetCertificateArn() const
Definition Certificate.h:47
Certificate & WithCertificateMode(CertificateMode &&value)
Certificate & WithStatus(const CertificateStatus &value)
Definition Certificate.h:81
const Aws::String & GetCertificateId() const
Definition Certificate.h:62
void SetCertificateArn(const Aws::String &value)
Definition Certificate.h:49
void SetCreationDate(Aws::Utils::DateTime &&value)
void SetCertificateId(const char *value)
Definition Certificate.h:66
const CertificateMode & GetCertificateMode() const
Definition Certificate.h:99
const Aws::Utils::DateTime & GetCreationDate() const
bool CertificateArnHasBeenSet() const
Definition Certificate.h:48
void SetStatus(const CertificateStatus &value)
Definition Certificate.h:79
AWS_IOT_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
Certificate & WithStatus(CertificateStatus &&value)
Definition Certificate.h:82
Certificate & WithCertificateArn(const Aws::String &value)
Definition Certificate.h:52
void SetCertificateMode(CertificateMode &&value)
void SetCertificateId(const Aws::String &value)
Definition Certificate.h:64
void SetCertificateId(Aws::String &&value)
Definition Certificate.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue