AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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/ds/DirectoryService_EXPORTS.h>
10#include <aws/ds/model/CertificateState.h>
11#include <aws/ds/model/CertificateType.h>
12#include <aws/ds/model/ClientCertAuthSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DirectoryService {
24namespace Model {
25
32 public:
33 AWS_DIRECTORYSERVICE_API Certificate() = default;
34 AWS_DIRECTORYSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DIRECTORYSERVICE_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
43 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
44 template <typename CertificateIdT = Aws::String>
45 void SetCertificateId(CertificateIdT&& value) {
46 m_certificateIdHasBeenSet = true;
47 m_certificateId = std::forward<CertificateIdT>(value);
48 }
49 template <typename CertificateIdT = Aws::String>
50 Certificate& WithCertificateId(CertificateIdT&& value) {
51 SetCertificateId(std::forward<CertificateIdT>(value));
52 return *this;
53 }
55
57
60 inline CertificateState GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(CertificateState value) {
63 m_stateHasBeenSet = true;
64 m_state = value;
65 }
67 SetState(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStateReason() const { return m_stateReason; }
77 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
78 template <typename StateReasonT = Aws::String>
79 void SetStateReason(StateReasonT&& value) {
80 m_stateReasonHasBeenSet = true;
81 m_stateReason = std::forward<StateReasonT>(value);
82 }
83 template <typename StateReasonT = Aws::String>
84 Certificate& WithStateReason(StateReasonT&& value) {
85 SetStateReason(std::forward<StateReasonT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCommonName() const { return m_commonName; }
95 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
96 template <typename CommonNameT = Aws::String>
97 void SetCommonName(CommonNameT&& value) {
98 m_commonNameHasBeenSet = true;
99 m_commonName = std::forward<CommonNameT>(value);
100 }
101 template <typename CommonNameT = Aws::String>
102 Certificate& WithCommonName(CommonNameT&& value) {
103 SetCommonName(std::forward<CommonNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetRegisteredDateTime() const { return m_registeredDateTime; }
113 inline bool RegisteredDateTimeHasBeenSet() const { return m_registeredDateTimeHasBeenSet; }
114 template <typename RegisteredDateTimeT = Aws::Utils::DateTime>
115 void SetRegisteredDateTime(RegisteredDateTimeT&& value) {
116 m_registeredDateTimeHasBeenSet = true;
117 m_registeredDateTime = std::forward<RegisteredDateTimeT>(value);
118 }
119 template <typename RegisteredDateTimeT = Aws::Utils::DateTime>
120 Certificate& WithRegisteredDateTime(RegisteredDateTimeT&& value) {
121 SetRegisteredDateTime(std::forward<RegisteredDateTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetExpiryDateTime() const { return m_expiryDateTime; }
131 inline bool ExpiryDateTimeHasBeenSet() const { return m_expiryDateTimeHasBeenSet; }
132 template <typename ExpiryDateTimeT = Aws::Utils::DateTime>
133 void SetExpiryDateTime(ExpiryDateTimeT&& value) {
134 m_expiryDateTimeHasBeenSet = true;
135 m_expiryDateTime = std::forward<ExpiryDateTimeT>(value);
136 }
137 template <typename ExpiryDateTimeT = Aws::Utils::DateTime>
138 Certificate& WithExpiryDateTime(ExpiryDateTimeT&& value) {
139 SetExpiryDateTime(std::forward<ExpiryDateTimeT>(value));
140 return *this;
141 }
143
145
150 inline CertificateType GetType() const { return m_type; }
151 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
152 inline void SetType(CertificateType value) {
153 m_typeHasBeenSet = true;
154 m_type = value;
155 }
157 SetType(value);
158 return *this;
159 }
161
163
167 inline const ClientCertAuthSettings& GetClientCertAuthSettings() const { return m_clientCertAuthSettings; }
168 inline bool ClientCertAuthSettingsHasBeenSet() const { return m_clientCertAuthSettingsHasBeenSet; }
169 template <typename ClientCertAuthSettingsT = ClientCertAuthSettings>
170 void SetClientCertAuthSettings(ClientCertAuthSettingsT&& value) {
171 m_clientCertAuthSettingsHasBeenSet = true;
172 m_clientCertAuthSettings = std::forward<ClientCertAuthSettingsT>(value);
173 }
174 template <typename ClientCertAuthSettingsT = ClientCertAuthSettings>
175 Certificate& WithClientCertAuthSettings(ClientCertAuthSettingsT&& value) {
176 SetClientCertAuthSettings(std::forward<ClientCertAuthSettingsT>(value));
177 return *this;
178 }
180 private:
181 Aws::String m_certificateId;
182
184
185 Aws::String m_stateReason;
186
187 Aws::String m_commonName;
188
189 Aws::Utils::DateTime m_registeredDateTime{};
190
191 Aws::Utils::DateTime m_expiryDateTime{};
192
194
195 ClientCertAuthSettings m_clientCertAuthSettings;
196 bool m_certificateIdHasBeenSet = false;
197 bool m_stateHasBeenSet = false;
198 bool m_stateReasonHasBeenSet = false;
199 bool m_commonNameHasBeenSet = false;
200 bool m_registeredDateTimeHasBeenSet = false;
201 bool m_expiryDateTimeHasBeenSet = false;
202 bool m_typeHasBeenSet = false;
203 bool m_clientCertAuthSettingsHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace DirectoryService
208} // namespace Aws
AWS_DIRECTORYSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue)
Certificate & WithRegisteredDateTime(RegisteredDateTimeT &&value)
const Aws::Utils::DateTime & GetExpiryDateTime() const
AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Certificate & WithType(CertificateType value)
Certificate & WithClientCertAuthSettings(ClientCertAuthSettingsT &&value)
AWS_DIRECTORYSERVICE_API Certificate()=default
void SetCommonName(CommonNameT &&value)
Definition Certificate.h:97
Certificate & WithCommonName(CommonNameT &&value)
void SetType(CertificateType value)
void SetClientCertAuthSettings(ClientCertAuthSettingsT &&value)
const Aws::String & GetCommonName() const
Definition Certificate.h:94
Certificate & WithCertificateId(CertificateIdT &&value)
Definition Certificate.h:50
void SetState(CertificateState value)
Definition Certificate.h:62
const ClientCertAuthSettings & GetClientCertAuthSettings() const
const Aws::Utils::DateTime & GetRegisteredDateTime() const
const Aws::String & GetStateReason() const
Definition Certificate.h:76
const Aws::String & GetCertificateId() const
Definition Certificate.h:42
void SetCertificateId(CertificateIdT &&value)
Definition Certificate.h:45
void SetStateReason(StateReasonT &&value)
Definition Certificate.h:79
Certificate & WithExpiryDateTime(ExpiryDateTimeT &&value)
void SetExpiryDateTime(ExpiryDateTimeT &&value)
Certificate & WithState(CertificateState value)
Definition Certificate.h:66
void SetRegisteredDateTime(RegisteredDateTimeT &&value)
Certificate & WithStateReason(StateReasonT &&value)
Definition Certificate.h:84
AWS_DIRECTORYSERVICE_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue