AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/CertificateMode.h>
11#include <aws/iot/model/CertificateStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT {
23namespace Model {
24
31 public:
32 AWS_IOT_API Certificate() = default;
36
38
41 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
42 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
43 template <typename CertificateArnT = Aws::String>
44 void SetCertificateArn(CertificateArnT&& value) {
45 m_certificateArnHasBeenSet = true;
46 m_certificateArn = std::forward<CertificateArnT>(value);
47 }
48 template <typename CertificateArnT = Aws::String>
49 Certificate& WithCertificateArn(CertificateArnT&& value) {
50 SetCertificateArn(std::forward<CertificateArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
61 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
62 template <typename CertificateIdT = Aws::String>
63 void SetCertificateId(CertificateIdT&& value) {
64 m_certificateIdHasBeenSet = true;
65 m_certificateId = std::forward<CertificateIdT>(value);
66 }
67 template <typename CertificateIdT = Aws::String>
68 Certificate& WithCertificateId(CertificateIdT&& value) {
69 SetCertificateId(std::forward<CertificateIdT>(value));
70 return *this;
71 }
73
75
79 inline CertificateStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(CertificateStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
105 inline CertificateMode GetCertificateMode() const { return m_certificateMode; }
106 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
108 m_certificateModeHasBeenSet = true;
109 m_certificateMode = value;
110 }
112 SetCertificateMode(value);
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
122 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
123 template <typename CreationDateT = Aws::Utils::DateTime>
124 void SetCreationDate(CreationDateT&& value) {
125 m_creationDateHasBeenSet = true;
126 m_creationDate = std::forward<CreationDateT>(value);
127 }
128 template <typename CreationDateT = Aws::Utils::DateTime>
129 Certificate& WithCreationDate(CreationDateT&& value) {
130 SetCreationDate(std::forward<CreationDateT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_certificateArn;
136
137 Aws::String m_certificateId;
138
140
141 CertificateMode m_certificateMode{CertificateMode::NOT_SET};
142
143 Aws::Utils::DateTime m_creationDate{};
144 bool m_certificateArnHasBeenSet = false;
145 bool m_certificateIdHasBeenSet = false;
146 bool m_statusHasBeenSet = false;
147 bool m_certificateModeHasBeenSet = false;
148 bool m_creationDateHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace IoT
153} // namespace Aws
Certificate & WithStatus(CertificateStatus value)
Definition Certificate.h:85
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateStatus GetStatus() const
Definition Certificate.h:79
Certificate & WithCertificateMode(CertificateMode value)
AWS_IOT_API Certificate()=default
Certificate & WithCertificateArn(CertificateArnT &&value)
Definition Certificate.h:49
bool CertificateIdHasBeenSet() const
Definition Certificate.h:61
bool CertificateModeHasBeenSet() const
void SetCertificateArn(CertificateArnT &&value)
Definition Certificate.h:44
Certificate & WithCreationDate(CreationDateT &&value)
AWS_IOT_API Certificate(Aws::Utils::Json::JsonView jsonValue)
bool CreationDateHasBeenSet() const
void SetCertificateId(CertificateIdT &&value)
Definition Certificate.h:63
const Aws::String & GetCertificateArn() const
Definition Certificate.h:41
CertificateMode GetCertificateMode() const
void SetCertificateMode(CertificateMode value)
const Aws::String & GetCertificateId() const
Definition Certificate.h:60
Certificate & WithCertificateId(CertificateIdT &&value)
Definition Certificate.h:68
void SetCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
bool CertificateArnHasBeenSet() const
Definition Certificate.h:42
AWS_IOT_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(CertificateStatus value)
Definition Certificate.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue