AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DatabaseMigrationService {
22namespace Model {
23
31 public:
32 AWS_DATABASEMIGRATIONSERVICE_API Certificate() = default;
33 AWS_DATABASEMIGRATIONSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATABASEMIGRATIONSERVICE_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
44 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
45 template <typename CertificateIdentifierT = Aws::String>
46 void SetCertificateIdentifier(CertificateIdentifierT&& value) {
47 m_certificateIdentifierHasBeenSet = true;
48 m_certificateIdentifier = std::forward<CertificateIdentifierT>(value);
49 }
50 template <typename CertificateIdentifierT = Aws::String>
51 Certificate& WithCertificateIdentifier(CertificateIdentifierT&& value) {
52 SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetCertificateCreationDate() const { return m_certificateCreationDate; }
62 inline bool CertificateCreationDateHasBeenSet() const { return m_certificateCreationDateHasBeenSet; }
63 template <typename CertificateCreationDateT = Aws::Utils::DateTime>
64 void SetCertificateCreationDate(CertificateCreationDateT&& value) {
65 m_certificateCreationDateHasBeenSet = true;
66 m_certificateCreationDate = std::forward<CertificateCreationDateT>(value);
67 }
68 template <typename CertificateCreationDateT = Aws::Utils::DateTime>
69 Certificate& WithCertificateCreationDate(CertificateCreationDateT&& value) {
70 SetCertificateCreationDate(std::forward<CertificateCreationDateT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetCertificatePem() const { return m_certificatePem; }
81 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
82 template <typename CertificatePemT = Aws::String>
83 void SetCertificatePem(CertificatePemT&& value) {
84 m_certificatePemHasBeenSet = true;
85 m_certificatePem = std::forward<CertificatePemT>(value);
86 }
87 template <typename CertificatePemT = Aws::String>
88 Certificate& WithCertificatePem(CertificatePemT&& value) {
89 SetCertificatePem(std::forward<CertificatePemT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::Utils::ByteBuffer& GetCertificateWallet() const { return m_certificateWallet; }
100 inline bool CertificateWalletHasBeenSet() const { return m_certificateWalletHasBeenSet; }
101 template <typename CertificateWalletT = Aws::Utils::ByteBuffer>
102 void SetCertificateWallet(CertificateWalletT&& value) {
103 m_certificateWalletHasBeenSet = true;
104 m_certificateWallet = std::forward<CertificateWalletT>(value);
105 }
106 template <typename CertificateWalletT = Aws::Utils::ByteBuffer>
107 Certificate& WithCertificateWallet(CertificateWalletT&& value) {
108 SetCertificateWallet(std::forward<CertificateWalletT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
118 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
119 template <typename CertificateArnT = Aws::String>
120 void SetCertificateArn(CertificateArnT&& value) {
121 m_certificateArnHasBeenSet = true;
122 m_certificateArn = std::forward<CertificateArnT>(value);
123 }
124 template <typename CertificateArnT = Aws::String>
125 Certificate& WithCertificateArn(CertificateArnT&& value) {
126 SetCertificateArn(std::forward<CertificateArnT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetCertificateOwner() const { return m_certificateOwner; }
136 inline bool CertificateOwnerHasBeenSet() const { return m_certificateOwnerHasBeenSet; }
137 template <typename CertificateOwnerT = Aws::String>
138 void SetCertificateOwner(CertificateOwnerT&& value) {
139 m_certificateOwnerHasBeenSet = true;
140 m_certificateOwner = std::forward<CertificateOwnerT>(value);
141 }
142 template <typename CertificateOwnerT = Aws::String>
143 Certificate& WithCertificateOwner(CertificateOwnerT&& value) {
144 SetCertificateOwner(std::forward<CertificateOwnerT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Utils::DateTime& GetValidFromDate() const { return m_validFromDate; }
154 inline bool ValidFromDateHasBeenSet() const { return m_validFromDateHasBeenSet; }
155 template <typename ValidFromDateT = Aws::Utils::DateTime>
156 void SetValidFromDate(ValidFromDateT&& value) {
157 m_validFromDateHasBeenSet = true;
158 m_validFromDate = std::forward<ValidFromDateT>(value);
159 }
160 template <typename ValidFromDateT = Aws::Utils::DateTime>
161 Certificate& WithValidFromDate(ValidFromDateT&& value) {
162 SetValidFromDate(std::forward<ValidFromDateT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetValidToDate() const { return m_validToDate; }
172 inline bool ValidToDateHasBeenSet() const { return m_validToDateHasBeenSet; }
173 template <typename ValidToDateT = Aws::Utils::DateTime>
174 void SetValidToDate(ValidToDateT&& value) {
175 m_validToDateHasBeenSet = true;
176 m_validToDate = std::forward<ValidToDateT>(value);
177 }
178 template <typename ValidToDateT = Aws::Utils::DateTime>
179 Certificate& WithValidToDate(ValidToDateT&& value) {
180 SetValidToDate(std::forward<ValidToDateT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetSigningAlgorithm() const { return m_signingAlgorithm; }
190 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
191 template <typename SigningAlgorithmT = Aws::String>
192 void SetSigningAlgorithm(SigningAlgorithmT&& value) {
193 m_signingAlgorithmHasBeenSet = true;
194 m_signingAlgorithm = std::forward<SigningAlgorithmT>(value);
195 }
196 template <typename SigningAlgorithmT = Aws::String>
197 Certificate& WithSigningAlgorithm(SigningAlgorithmT&& value) {
198 SetSigningAlgorithm(std::forward<SigningAlgorithmT>(value));
199 return *this;
200 }
202
204
207 inline int GetKeyLength() const { return m_keyLength; }
208 inline bool KeyLengthHasBeenSet() const { return m_keyLengthHasBeenSet; }
209 inline void SetKeyLength(int value) {
210 m_keyLengthHasBeenSet = true;
211 m_keyLength = value;
212 }
213 inline Certificate& WithKeyLength(int value) {
214 SetKeyLength(value);
215 return *this;
216 }
218
220
227 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
228 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
229 template <typename KmsKeyIdT = Aws::String>
230 void SetKmsKeyId(KmsKeyIdT&& value) {
231 m_kmsKeyIdHasBeenSet = true;
232 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
233 }
234 template <typename KmsKeyIdT = Aws::String>
235 Certificate& WithKmsKeyId(KmsKeyIdT&& value) {
236 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_certificateIdentifier;
242
243 Aws::Utils::DateTime m_certificateCreationDate{};
244
245 Aws::String m_certificatePem;
246
247 Aws::Utils::ByteBuffer m_certificateWallet{};
248
249 Aws::String m_certificateArn;
250
251 Aws::String m_certificateOwner;
252
253 Aws::Utils::DateTime m_validFromDate{};
254
255 Aws::Utils::DateTime m_validToDate{};
256
257 Aws::String m_signingAlgorithm;
258
259 int m_keyLength{0};
260
261 Aws::String m_kmsKeyId;
262 bool m_certificateIdentifierHasBeenSet = false;
263 bool m_certificateCreationDateHasBeenSet = false;
264 bool m_certificatePemHasBeenSet = false;
265 bool m_certificateWalletHasBeenSet = false;
266 bool m_certificateArnHasBeenSet = false;
267 bool m_certificateOwnerHasBeenSet = false;
268 bool m_validFromDateHasBeenSet = false;
269 bool m_validToDateHasBeenSet = false;
270 bool m_signingAlgorithmHasBeenSet = false;
271 bool m_keyLengthHasBeenSet = false;
272 bool m_kmsKeyIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DatabaseMigrationService
277} // namespace Aws
Certificate & WithSigningAlgorithm(SigningAlgorithmT &&value)
void SetSigningAlgorithm(SigningAlgorithmT &&value)
const Aws::String & GetCertificateOwner() const
Certificate & WithCertificateOwner(CertificateOwnerT &&value)
void SetCertificateArn(CertificateArnT &&value)
const Aws::String & GetCertificatePem() const
Definition Certificate.h:80
void SetValidFromDate(ValidFromDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Certificate & WithCertificateWallet(CertificateWalletT &&value)
Certificate & WithValidFromDate(ValidFromDateT &&value)
Certificate & WithKmsKeyId(KmsKeyIdT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Certificate()=default
Certificate & WithCertificateArn(CertificateArnT &&value)
const Aws::Utils::ByteBuffer & GetCertificateWallet() const
Definition Certificate.h:99
void SetCertificatePem(CertificatePemT &&value)
Definition Certificate.h:83
Certificate & WithValidToDate(ValidToDateT &&value)
void SetCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:46
const Aws::Utils::DateTime & GetValidToDate() const
const Aws::Utils::DateTime & GetValidFromDate() const
AWS_DATABASEMIGRATIONSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue)
void SetCertificateOwner(CertificateOwnerT &&value)
Certificate & WithCertificatePem(CertificatePemT &&value)
Definition Certificate.h:88
Certificate & WithCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:51
const Aws::String & GetCertificateIdentifier() const
Definition Certificate.h:43
Certificate & WithCertificateCreationDate(CertificateCreationDateT &&value)
Definition Certificate.h:69
void SetCertificateCreationDate(CertificateCreationDateT &&value)
Definition Certificate.h:64
AWS_DATABASEMIGRATIONSERVICE_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCertificateCreationDate() const
Definition Certificate.h:61
void SetCertificateWallet(CertificateWalletT &&value)
const Aws::String & GetSigningAlgorithm() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue