AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
CACertificate.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/CACertificateStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
30 public:
31 AWS_IOT_API CACertificate() = default;
35
37
40 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
41 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
42 template <typename CertificateArnT = Aws::String>
43 void SetCertificateArn(CertificateArnT&& value) {
44 m_certificateArnHasBeenSet = true;
45 m_certificateArn = std::forward<CertificateArnT>(value);
46 }
47 template <typename CertificateArnT = Aws::String>
48 CACertificate& WithCertificateArn(CertificateArnT&& value) {
49 SetCertificateArn(std::forward<CertificateArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
59 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
60 template <typename CertificateIdT = Aws::String>
61 void SetCertificateId(CertificateIdT&& value) {
62 m_certificateIdHasBeenSet = true;
63 m_certificateId = std::forward<CertificateIdT>(value);
64 }
65 template <typename CertificateIdT = Aws::String>
66 CACertificate& WithCertificateId(CertificateIdT&& value) {
67 SetCertificateId(std::forward<CertificateIdT>(value));
68 return *this;
69 }
71
73
77 inline CACertificateStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(CACertificateStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
94 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
95 template <typename CreationDateT = Aws::Utils::DateTime>
96 void SetCreationDate(CreationDateT&& value) {
97 m_creationDateHasBeenSet = true;
98 m_creationDate = std::forward<CreationDateT>(value);
99 }
100 template <typename CreationDateT = Aws::Utils::DateTime>
101 CACertificate& WithCreationDate(CreationDateT&& value) {
102 SetCreationDate(std::forward<CreationDateT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_certificateArn;
108
109 Aws::String m_certificateId;
110
112
113 Aws::Utils::DateTime m_creationDate{};
114 bool m_certificateArnHasBeenSet = false;
115 bool m_certificateIdHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117 bool m_creationDateHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace IoT
122} // namespace Aws
CACertificate & WithStatus(CACertificateStatus value)
void SetStatus(CACertificateStatus value)
AWS_IOT_API CACertificate(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCertificateArn() const
AWS_IOT_API CACertificate()=default
void SetCertificateArn(CertificateArnT &&value)
const Aws::String & GetCertificateId() const
void SetCertificateId(CertificateIdT &&value)
CACertificate & WithCreationDate(CreationDateT &&value)
CACertificate & WithCertificateId(CertificateIdT &&value)
CACertificate & WithCertificateArn(CertificateArnT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_IOT_API CACertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CACertificateStatus GetStatus() const
void SetCreationDate(CreationDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue