AWS SDK for C++  1.9.19
AWS SDK for C++
Certificate.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace DirectoryService
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
48 
52  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
53 
57  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
58 
62  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
63 
67  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
68 
72  inline Certificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
73 
77  inline Certificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
78 
82  inline Certificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
83 
84 
88  inline const CertificateState& GetState() const{ return m_state; }
89 
93  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
94 
98  inline void SetState(const CertificateState& value) { m_stateHasBeenSet = true; m_state = value; }
99 
103  inline void SetState(CertificateState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
104 
108  inline Certificate& WithState(const CertificateState& value) { SetState(value); return *this;}
109 
113  inline Certificate& WithState(CertificateState&& value) { SetState(std::move(value)); return *this;}
114 
115 
119  inline const Aws::String& GetStateReason() const{ return m_stateReason; }
120 
124  inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
125 
129  inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
130 
134  inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
135 
139  inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
140 
144  inline Certificate& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
145 
149  inline Certificate& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
150 
154  inline Certificate& WithStateReason(const char* value) { SetStateReason(value); return *this;}
155 
156 
160  inline const Aws::String& GetCommonName() const{ return m_commonName; }
161 
165  inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
166 
170  inline void SetCommonName(const Aws::String& value) { m_commonNameHasBeenSet = true; m_commonName = value; }
171 
175  inline void SetCommonName(Aws::String&& value) { m_commonNameHasBeenSet = true; m_commonName = std::move(value); }
176 
180  inline void SetCommonName(const char* value) { m_commonNameHasBeenSet = true; m_commonName.assign(value); }
181 
185  inline Certificate& WithCommonName(const Aws::String& value) { SetCommonName(value); return *this;}
186 
190  inline Certificate& WithCommonName(Aws::String&& value) { SetCommonName(std::move(value)); return *this;}
191 
195  inline Certificate& WithCommonName(const char* value) { SetCommonName(value); return *this;}
196 
197 
201  inline const Aws::Utils::DateTime& GetRegisteredDateTime() const{ return m_registeredDateTime; }
202 
206  inline bool RegisteredDateTimeHasBeenSet() const { return m_registeredDateTimeHasBeenSet; }
207 
211  inline void SetRegisteredDateTime(const Aws::Utils::DateTime& value) { m_registeredDateTimeHasBeenSet = true; m_registeredDateTime = value; }
212 
216  inline void SetRegisteredDateTime(Aws::Utils::DateTime&& value) { m_registeredDateTimeHasBeenSet = true; m_registeredDateTime = std::move(value); }
217 
221  inline Certificate& WithRegisteredDateTime(const Aws::Utils::DateTime& value) { SetRegisteredDateTime(value); return *this;}
222 
226  inline Certificate& WithRegisteredDateTime(Aws::Utils::DateTime&& value) { SetRegisteredDateTime(std::move(value)); return *this;}
227 
228 
232  inline const Aws::Utils::DateTime& GetExpiryDateTime() const{ return m_expiryDateTime; }
233 
237  inline bool ExpiryDateTimeHasBeenSet() const { return m_expiryDateTimeHasBeenSet; }
238 
242  inline void SetExpiryDateTime(const Aws::Utils::DateTime& value) { m_expiryDateTimeHasBeenSet = true; m_expiryDateTime = value; }
243 
247  inline void SetExpiryDateTime(Aws::Utils::DateTime&& value) { m_expiryDateTimeHasBeenSet = true; m_expiryDateTime = std::move(value); }
248 
252  inline Certificate& WithExpiryDateTime(const Aws::Utils::DateTime& value) { SetExpiryDateTime(value); return *this;}
253 
257  inline Certificate& WithExpiryDateTime(Aws::Utils::DateTime&& value) { SetExpiryDateTime(std::move(value)); return *this;}
258 
259 
265  inline const CertificateType& GetType() const{ return m_type; }
266 
272  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
273 
279  inline void SetType(const CertificateType& value) { m_typeHasBeenSet = true; m_type = value; }
280 
286  inline void SetType(CertificateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
287 
293  inline Certificate& WithType(const CertificateType& value) { SetType(value); return *this;}
294 
300  inline Certificate& WithType(CertificateType&& value) { SetType(std::move(value)); return *this;}
301 
302 
307  inline const ClientCertAuthSettings& GetClientCertAuthSettings() const{ return m_clientCertAuthSettings; }
308 
313  inline bool ClientCertAuthSettingsHasBeenSet() const { return m_clientCertAuthSettingsHasBeenSet; }
314 
319  inline void SetClientCertAuthSettings(const ClientCertAuthSettings& value) { m_clientCertAuthSettingsHasBeenSet = true; m_clientCertAuthSettings = value; }
320 
325  inline void SetClientCertAuthSettings(ClientCertAuthSettings&& value) { m_clientCertAuthSettingsHasBeenSet = true; m_clientCertAuthSettings = std::move(value); }
326 
331  inline Certificate& WithClientCertAuthSettings(const ClientCertAuthSettings& value) { SetClientCertAuthSettings(value); return *this;}
332 
337  inline Certificate& WithClientCertAuthSettings(ClientCertAuthSettings&& value) { SetClientCertAuthSettings(std::move(value)); return *this;}
338 
339  private:
340 
341  Aws::String m_certificateId;
342  bool m_certificateIdHasBeenSet;
343 
344  CertificateState m_state;
345  bool m_stateHasBeenSet;
346 
347  Aws::String m_stateReason;
348  bool m_stateReasonHasBeenSet;
349 
350  Aws::String m_commonName;
351  bool m_commonNameHasBeenSet;
352 
353  Aws::Utils::DateTime m_registeredDateTime;
354  bool m_registeredDateTimeHasBeenSet;
355 
356  Aws::Utils::DateTime m_expiryDateTime;
357  bool m_expiryDateTimeHasBeenSet;
358 
359  CertificateType m_type;
360  bool m_typeHasBeenSet;
361 
362  ClientCertAuthSettings m_clientCertAuthSettings;
363  bool m_clientCertAuthSettingsHasBeenSet;
364  };
365 
366 } // namespace Model
367 } // namespace DirectoryService
368 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DirectoryService::Model::Certificate::SetExpiryDateTime
void SetExpiryDateTime(const Aws::Utils::DateTime &value)
Definition: Certificate.h:242
Aws::DirectoryService::Model::Certificate::SetCertificateId
void SetCertificateId(const char *value)
Definition: Certificate.h:67
Aws::DirectoryService::Model::Certificate::GetType
const CertificateType & GetType() const
Definition: Certificate.h:265
Aws::DirectoryService::Model::Certificate::WithType
Certificate & WithType(const CertificateType &value)
Definition: Certificate.h:293
Aws::DirectoryService::Model::Certificate::GetState
const CertificateState & GetState() const
Definition: Certificate.h:88
Aws::DirectoryService::Model::CertificateType
CertificateType
Definition: CertificateType.h:17
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::Certificate::WithRegisteredDateTime
Certificate & WithRegisteredDateTime(Aws::Utils::DateTime &&value)
Definition: Certificate.h:226
Aws::DirectoryService::Model::Certificate::WithState
Certificate & WithState(CertificateState &&value)
Definition: Certificate.h:113
Aws::DirectoryService::Model::Certificate::WithCommonName
Certificate & WithCommonName(const char *value)
Definition: Certificate.h:195
Aws::DirectoryService::Model::Certificate::WithState
Certificate & WithState(const CertificateState &value)
Definition: Certificate.h:108
Aws::DirectoryService::Model::Certificate::GetExpiryDateTime
const Aws::Utils::DateTime & GetExpiryDateTime() const
Definition: Certificate.h:232
Aws::DirectoryService::Model::Certificate::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: Certificate.h:47
Aws::DirectoryService::Model::Certificate::GetCommonName
const Aws::String & GetCommonName() const
Definition: Certificate.h:160
Aws::DirectoryService::Model::Certificate
Definition: Certificate.h:36
Aws::DirectoryService::Model::Certificate::WithCommonName
Certificate & WithCommonName(const Aws::String &value)
Definition: Certificate.h:185
DateTime.h
Aws::DirectoryService::Model::Certificate::SetCommonName
void SetCommonName(const char *value)
Definition: Certificate.h:180
Aws::DirectoryService::Model::Certificate::operator=
Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Certificate::CommonNameHasBeenSet
bool CommonNameHasBeenSet() const
Definition: Certificate.h:165
Aws::DirectoryService::Model::Certificate::Certificate
Certificate()
Aws::DirectoryService::Model::Certificate::SetState
void SetState(const CertificateState &value)
Definition: Certificate.h:98
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::Certificate::SetStateReason
void SetStateReason(Aws::String &&value)
Definition: Certificate.h:134
Aws::DirectoryService::Model::Certificate::WithStateReason
Certificate & WithStateReason(Aws::String &&value)
Definition: Certificate.h:149
Aws::DirectoryService::Model::Certificate::SetStateReason
void SetStateReason(const Aws::String &value)
Definition: Certificate.h:129
CertificateType.h
Aws::DirectoryService::Model::Certificate::WithExpiryDateTime
Certificate & WithExpiryDateTime(const Aws::Utils::DateTime &value)
Definition: Certificate.h:252
CertificateState.h
Aws::DirectoryService::Model::Certificate::WithExpiryDateTime
Certificate & WithExpiryDateTime(Aws::Utils::DateTime &&value)
Definition: Certificate.h:257
Aws::DirectoryService::Model::Certificate::StateReasonHasBeenSet
bool StateReasonHasBeenSet() const
Definition: Certificate.h:124
Aws::DirectoryService::Model::Certificate::ClientCertAuthSettingsHasBeenSet
bool ClientCertAuthSettingsHasBeenSet() const
Definition: Certificate.h:313
Aws::DirectoryService::Model::Certificate::SetRegisteredDateTime
void SetRegisteredDateTime(const Aws::Utils::DateTime &value)
Definition: Certificate.h:211
Aws::DirectoryService::Model::Certificate::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: Certificate.h:57
Aws::DirectoryService::Model::Certificate::SetType
void SetType(const CertificateType &value)
Definition: Certificate.h:279
Aws::DirectoryService::Model::Certificate::WithStateReason
Certificate & WithStateReason(const Aws::String &value)
Definition: Certificate.h:144
Aws::DirectoryService::Model::Certificate::SetClientCertAuthSettings
void SetClientCertAuthSettings(ClientCertAuthSettings &&value)
Definition: Certificate.h:325
Aws::DirectoryService::Model::Certificate::SetState
void SetState(CertificateState &&value)
Definition: Certificate.h:103
Aws::DirectoryService::Model::Certificate::RegisteredDateTimeHasBeenSet
bool RegisteredDateTimeHasBeenSet() const
Definition: Certificate.h:206
Aws::DirectoryService::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(const char *value)
Definition: Certificate.h:82
Aws::DirectoryService::Model::Certificate::ExpiryDateTimeHasBeenSet
bool ExpiryDateTimeHasBeenSet() const
Definition: Certificate.h:237
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DirectoryService::Model::Certificate::SetRegisteredDateTime
void SetRegisteredDateTime(Aws::Utils::DateTime &&value)
Definition: Certificate.h:216
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DirectoryService::Model::Certificate::SetStateReason
void SetStateReason(const char *value)
Definition: Certificate.h:139
Aws::DirectoryService::Model::CertificateState
CertificateState
Definition: CertificateState.h:17
ClientCertAuthSettings.h
Aws::DirectoryService::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(Aws::String &&value)
Definition: Certificate.h:77
Aws::DirectoryService::Model::Certificate::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Certificate.h:272
Aws::DirectoryService::Model::Certificate::SetCommonName
void SetCommonName(Aws::String &&value)
Definition: Certificate.h:175
Aws::DirectoryService::Model::Certificate::WithType
Certificate & WithType(CertificateType &&value)
Definition: Certificate.h:300
Aws::DirectoryService::Model::Certificate::SetCommonName
void SetCommonName(const Aws::String &value)
Definition: Certificate.h:170
Aws::DirectoryService::Model::Certificate::WithClientCertAuthSettings
Certificate & WithClientCertAuthSettings(const ClientCertAuthSettings &value)
Definition: Certificate.h:331
Aws::DirectoryService::Model::Certificate::GetRegisteredDateTime
const Aws::Utils::DateTime & GetRegisteredDateTime() const
Definition: Certificate.h:201
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::Certificate::SetExpiryDateTime
void SetExpiryDateTime(Aws::Utils::DateTime &&value)
Definition: Certificate.h:247
Aws::DirectoryService::Model::Certificate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DirectoryService::Model::Certificate::WithCertificateId
Certificate & WithCertificateId(const Aws::String &value)
Definition: Certificate.h:72
Aws::DirectoryService::Model::Certificate::GetClientCertAuthSettings
const ClientCertAuthSettings & GetClientCertAuthSettings() const
Definition: Certificate.h:307
Aws::DirectoryService::Model::Certificate::SetClientCertAuthSettings
void SetClientCertAuthSettings(const ClientCertAuthSettings &value)
Definition: Certificate.h:319
Aws::DirectoryService::Model::Certificate::WithCommonName
Certificate & WithCommonName(Aws::String &&value)
Definition: Certificate.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::Certificate::WithRegisteredDateTime
Certificate & WithRegisteredDateTime(const Aws::Utils::DateTime &value)
Definition: Certificate.h:221
Aws::DirectoryService::Model::Certificate::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Certificate.h:93
Aws::DirectoryService::Model::Certificate::WithClientCertAuthSettings
Certificate & WithClientCertAuthSettings(ClientCertAuthSettings &&value)
Definition: Certificate.h:337
Aws::DirectoryService::Model::Certificate::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: Certificate.h:52
Aws::DirectoryService::Model::Certificate::SetType
void SetType(CertificateType &&value)
Definition: Certificate.h:286
Aws::DirectoryService::Model::ClientCertAuthSettings
Definition: ClientCertAuthSettings.h:34
Aws::DirectoryService::Model::Certificate::GetStateReason
const Aws::String & GetStateReason() const
Definition: Certificate.h:119
Aws::DirectoryService::Model::Certificate::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: Certificate.h:62
Aws::DirectoryService::Model::Certificate::Certificate
Certificate(Aws::Utils::Json::JsonView jsonValue)
Aws::DirectoryService::Model::Certificate::WithStateReason
Certificate & WithStateReason(const char *value)
Definition: Certificate.h:154