AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
41
42
44
47 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
48 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
49 template<typename CertificateArnT = Aws::String>
50 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
51 template<typename CertificateArnT = Aws::String>
52 Certificate& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
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) { m_certificateIdHasBeenSet = true; m_certificateId = std::forward<CertificateIdT>(value); }
64 template<typename CertificateIdT = Aws::String>
65 Certificate& WithCertificateId(CertificateIdT&& value) { SetCertificateId(std::forward<CertificateIdT>(value)); return *this;}
67
69
73 inline CertificateStatus GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(CertificateStatus value) { m_statusHasBeenSet = true; m_status = value; }
76 inline Certificate& WithStatus(CertificateStatus value) { SetStatus(value); return *this;}
78
80
93 inline CertificateMode GetCertificateMode() const { return m_certificateMode; }
94 inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; }
95 inline void SetCertificateMode(CertificateMode value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; }
96 inline Certificate& WithCertificateMode(CertificateMode value) { SetCertificateMode(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
104 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
105 template<typename CreationDateT = Aws::Utils::DateTime>
106 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
107 template<typename CreationDateT = Aws::Utils::DateTime>
108 Certificate& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
110 private:
111
112 Aws::String m_certificateArn;
113 bool m_certificateArnHasBeenSet = false;
114
115 Aws::String m_certificateId;
116 bool m_certificateIdHasBeenSet = false;
117
119 bool m_statusHasBeenSet = false;
120
121 CertificateMode m_certificateMode{CertificateMode::NOT_SET};
122 bool m_certificateModeHasBeenSet = false;
123
124 Aws::Utils::DateTime m_creationDate{};
125 bool m_creationDateHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IoT
130} // namespace Aws
Certificate & WithStatus(CertificateStatus value)
Definition Certificate.h:76
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateStatus GetStatus() const
Definition Certificate.h:73
Certificate & WithCertificateMode(CertificateMode value)
Definition Certificate.h:96
AWS_IOT_API Certificate()=default
Certificate & WithCertificateArn(CertificateArnT &&value)
Definition Certificate.h:52
bool CertificateIdHasBeenSet() const
Definition Certificate.h:61
bool CertificateModeHasBeenSet() const
Definition Certificate.h:94
void SetCertificateArn(CertificateArnT &&value)
Definition Certificate.h:50
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:47
CertificateMode GetCertificateMode() const
Definition Certificate.h:93
void SetCertificateMode(CertificateMode value)
Definition Certificate.h:95
const Aws::String & GetCertificateId() const
Definition Certificate.h:60
Certificate & WithCertificateId(CertificateIdT &&value)
Definition Certificate.h:65
void SetCreationDate(CreationDateT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
bool CertificateArnHasBeenSet() const
Definition Certificate.h:48
AWS_IOT_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(CertificateStatus value)
Definition Certificate.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue