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/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ds/model/CertificateState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ds/model/CertificateType.h>
12#include <aws/ds/model/ClientCertAuthSettings.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DirectoryService
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DIRECTORYSERVICE_API Certificate() = default;
39 AWS_DIRECTORYSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DIRECTORYSERVICE_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DIRECTORYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCertificateId() const { return m_certificateId; }
49 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
50 template<typename CertificateIdT = Aws::String>
51 void SetCertificateId(CertificateIdT&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::forward<CertificateIdT>(value); }
52 template<typename CertificateIdT = Aws::String>
53 Certificate& WithCertificateId(CertificateIdT&& value) { SetCertificateId(std::forward<CertificateIdT>(value)); return *this;}
55
57
60 inline CertificateState GetState() const { return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(CertificateState value) { m_stateHasBeenSet = true; m_state = value; }
63 inline Certificate& WithState(CertificateState value) { SetState(value); return *this;}
65
67
70 inline const Aws::String& GetStateReason() const { return m_stateReason; }
71 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
72 template<typename StateReasonT = Aws::String>
73 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
74 template<typename StateReasonT = Aws::String>
75 Certificate& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
77
79
82 inline const Aws::String& GetCommonName() const { return m_commonName; }
83 inline bool CommonNameHasBeenSet() const { return m_commonNameHasBeenSet; }
84 template<typename CommonNameT = Aws::String>
85 void SetCommonName(CommonNameT&& value) { m_commonNameHasBeenSet = true; m_commonName = std::forward<CommonNameT>(value); }
86 template<typename CommonNameT = Aws::String>
87 Certificate& WithCommonName(CommonNameT&& value) { SetCommonName(std::forward<CommonNameT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetRegisteredDateTime() const { return m_registeredDateTime; }
95 inline bool RegisteredDateTimeHasBeenSet() const { return m_registeredDateTimeHasBeenSet; }
96 template<typename RegisteredDateTimeT = Aws::Utils::DateTime>
97 void SetRegisteredDateTime(RegisteredDateTimeT&& value) { m_registeredDateTimeHasBeenSet = true; m_registeredDateTime = std::forward<RegisteredDateTimeT>(value); }
98 template<typename RegisteredDateTimeT = Aws::Utils::DateTime>
99 Certificate& WithRegisteredDateTime(RegisteredDateTimeT&& value) { SetRegisteredDateTime(std::forward<RegisteredDateTimeT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetExpiryDateTime() const { return m_expiryDateTime; }
107 inline bool ExpiryDateTimeHasBeenSet() const { return m_expiryDateTimeHasBeenSet; }
108 template<typename ExpiryDateTimeT = Aws::Utils::DateTime>
109 void SetExpiryDateTime(ExpiryDateTimeT&& value) { m_expiryDateTimeHasBeenSet = true; m_expiryDateTime = std::forward<ExpiryDateTimeT>(value); }
110 template<typename ExpiryDateTimeT = Aws::Utils::DateTime>
111 Certificate& WithExpiryDateTime(ExpiryDateTimeT&& value) { SetExpiryDateTime(std::forward<ExpiryDateTimeT>(value)); return *this;}
113
115
120 inline CertificateType GetType() const { return m_type; }
121 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
122 inline void SetType(CertificateType value) { m_typeHasBeenSet = true; m_type = value; }
123 inline Certificate& WithType(CertificateType value) { SetType(value); return *this;}
125
127
131 inline const ClientCertAuthSettings& GetClientCertAuthSettings() const { return m_clientCertAuthSettings; }
132 inline bool ClientCertAuthSettingsHasBeenSet() const { return m_clientCertAuthSettingsHasBeenSet; }
133 template<typename ClientCertAuthSettingsT = ClientCertAuthSettings>
134 void SetClientCertAuthSettings(ClientCertAuthSettingsT&& value) { m_clientCertAuthSettingsHasBeenSet = true; m_clientCertAuthSettings = std::forward<ClientCertAuthSettingsT>(value); }
135 template<typename ClientCertAuthSettingsT = ClientCertAuthSettings>
136 Certificate& WithClientCertAuthSettings(ClientCertAuthSettingsT&& value) { SetClientCertAuthSettings(std::forward<ClientCertAuthSettingsT>(value)); return *this;}
138 private:
139
140 Aws::String m_certificateId;
141 bool m_certificateIdHasBeenSet = false;
142
144 bool m_stateHasBeenSet = false;
145
146 Aws::String m_stateReason;
147 bool m_stateReasonHasBeenSet = false;
148
149 Aws::String m_commonName;
150 bool m_commonNameHasBeenSet = false;
151
152 Aws::Utils::DateTime m_registeredDateTime{};
153 bool m_registeredDateTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_expiryDateTime{};
156 bool m_expiryDateTimeHasBeenSet = false;
157
159 bool m_typeHasBeenSet = false;
160
161 ClientCertAuthSettings m_clientCertAuthSettings;
162 bool m_clientCertAuthSettingsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace DirectoryService
167} // namespace Aws
AWS_DIRECTORYSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue)
Certificate & WithRegisteredDateTime(RegisteredDateTimeT &&value)
Definition Certificate.h:99
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:85
Certificate & WithCommonName(CommonNameT &&value)
Definition Certificate.h:87
void SetType(CertificateType value)
void SetClientCertAuthSettings(ClientCertAuthSettingsT &&value)
const Aws::String & GetCommonName() const
Definition Certificate.h:82
Certificate & WithCertificateId(CertificateIdT &&value)
Definition Certificate.h:53
void SetState(CertificateState value)
Definition Certificate.h:62
const ClientCertAuthSettings & GetClientCertAuthSettings() const
const Aws::Utils::DateTime & GetRegisteredDateTime() const
Definition Certificate.h:94
const Aws::String & GetStateReason() const
Definition Certificate.h:70
const Aws::String & GetCertificateId() const
Definition Certificate.h:48
void SetCertificateId(CertificateIdT &&value)
Definition Certificate.h:51
void SetStateReason(StateReasonT &&value)
Definition Certificate.h:73
Certificate & WithExpiryDateTime(ExpiryDateTimeT &&value)
void SetExpiryDateTime(ExpiryDateTimeT &&value)
Certificate & WithState(CertificateState value)
Definition Certificate.h:63
void SetRegisteredDateTime(RegisteredDateTimeT &&value)
Definition Certificate.h:97
Certificate & WithStateReason(StateReasonT &&value)
Definition Certificate.h:75
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