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/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DatabaseMigrationService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATABASEMIGRATIONSERVICE_API Certificate() = default;
38 AWS_DATABASEMIGRATIONSERVICE_API Certificate(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATABASEMIGRATIONSERVICE_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetCertificateIdentifier() const { return m_certificateIdentifier; }
50 inline bool CertificateIdentifierHasBeenSet() const { return m_certificateIdentifierHasBeenSet; }
51 template<typename CertificateIdentifierT = Aws::String>
52 void SetCertificateIdentifier(CertificateIdentifierT&& value) { m_certificateIdentifierHasBeenSet = true; m_certificateIdentifier = std::forward<CertificateIdentifierT>(value); }
53 template<typename CertificateIdentifierT = Aws::String>
54 Certificate& WithCertificateIdentifier(CertificateIdentifierT&& value) { SetCertificateIdentifier(std::forward<CertificateIdentifierT>(value)); return *this;}
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) { m_certificateCreationDateHasBeenSet = true; m_certificateCreationDate = std::forward<CertificateCreationDateT>(value); }
65 template<typename CertificateCreationDateT = Aws::Utils::DateTime>
66 Certificate& WithCertificateCreationDate(CertificateCreationDateT&& value) { SetCertificateCreationDate(std::forward<CertificateCreationDateT>(value)); return *this;}
68
70
74 inline const Aws::String& GetCertificatePem() const { return m_certificatePem; }
75 inline bool CertificatePemHasBeenSet() const { return m_certificatePemHasBeenSet; }
76 template<typename CertificatePemT = Aws::String>
77 void SetCertificatePem(CertificatePemT&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = std::forward<CertificatePemT>(value); }
78 template<typename CertificatePemT = Aws::String>
79 Certificate& WithCertificatePem(CertificatePemT&& value) { SetCertificatePem(std::forward<CertificatePemT>(value)); return *this;}
81
83
87 inline const Aws::Utils::ByteBuffer& GetCertificateWallet() const { return m_certificateWallet; }
88 inline bool CertificateWalletHasBeenSet() const { return m_certificateWalletHasBeenSet; }
89 template<typename CertificateWalletT = Aws::Utils::ByteBuffer>
90 void SetCertificateWallet(CertificateWalletT&& value) { m_certificateWalletHasBeenSet = true; m_certificateWallet = std::forward<CertificateWalletT>(value); }
91 template<typename CertificateWalletT = Aws::Utils::ByteBuffer>
92 Certificate& WithCertificateWallet(CertificateWalletT&& value) { SetCertificateWallet(std::forward<CertificateWalletT>(value)); return *this;}
94
96
99 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
100 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
101 template<typename CertificateArnT = Aws::String>
102 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
103 template<typename CertificateArnT = Aws::String>
104 Certificate& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
106
108
111 inline const Aws::String& GetCertificateOwner() const { return m_certificateOwner; }
112 inline bool CertificateOwnerHasBeenSet() const { return m_certificateOwnerHasBeenSet; }
113 template<typename CertificateOwnerT = Aws::String>
114 void SetCertificateOwner(CertificateOwnerT&& value) { m_certificateOwnerHasBeenSet = true; m_certificateOwner = std::forward<CertificateOwnerT>(value); }
115 template<typename CertificateOwnerT = Aws::String>
116 Certificate& WithCertificateOwner(CertificateOwnerT&& value) { SetCertificateOwner(std::forward<CertificateOwnerT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetValidFromDate() const { return m_validFromDate; }
124 inline bool ValidFromDateHasBeenSet() const { return m_validFromDateHasBeenSet; }
125 template<typename ValidFromDateT = Aws::Utils::DateTime>
126 void SetValidFromDate(ValidFromDateT&& value) { m_validFromDateHasBeenSet = true; m_validFromDate = std::forward<ValidFromDateT>(value); }
127 template<typename ValidFromDateT = Aws::Utils::DateTime>
128 Certificate& WithValidFromDate(ValidFromDateT&& value) { SetValidFromDate(std::forward<ValidFromDateT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetValidToDate() const { return m_validToDate; }
136 inline bool ValidToDateHasBeenSet() const { return m_validToDateHasBeenSet; }
137 template<typename ValidToDateT = Aws::Utils::DateTime>
138 void SetValidToDate(ValidToDateT&& value) { m_validToDateHasBeenSet = true; m_validToDate = std::forward<ValidToDateT>(value); }
139 template<typename ValidToDateT = Aws::Utils::DateTime>
140 Certificate& WithValidToDate(ValidToDateT&& value) { SetValidToDate(std::forward<ValidToDateT>(value)); return *this;}
142
144
147 inline const Aws::String& GetSigningAlgorithm() const { return m_signingAlgorithm; }
148 inline bool SigningAlgorithmHasBeenSet() const { return m_signingAlgorithmHasBeenSet; }
149 template<typename SigningAlgorithmT = Aws::String>
150 void SetSigningAlgorithm(SigningAlgorithmT&& value) { m_signingAlgorithmHasBeenSet = true; m_signingAlgorithm = std::forward<SigningAlgorithmT>(value); }
151 template<typename SigningAlgorithmT = Aws::String>
152 Certificate& WithSigningAlgorithm(SigningAlgorithmT&& value) { SetSigningAlgorithm(std::forward<SigningAlgorithmT>(value)); return *this;}
154
156
159 inline int GetKeyLength() const { return m_keyLength; }
160 inline bool KeyLengthHasBeenSet() const { return m_keyLengthHasBeenSet; }
161 inline void SetKeyLength(int value) { m_keyLengthHasBeenSet = true; m_keyLength = value; }
162 inline Certificate& WithKeyLength(int value) { SetKeyLength(value); return *this;}
164 private:
165
166 Aws::String m_certificateIdentifier;
167 bool m_certificateIdentifierHasBeenSet = false;
168
169 Aws::Utils::DateTime m_certificateCreationDate{};
170 bool m_certificateCreationDateHasBeenSet = false;
171
172 Aws::String m_certificatePem;
173 bool m_certificatePemHasBeenSet = false;
174
175 Aws::Utils::ByteBuffer m_certificateWallet{};
176 bool m_certificateWalletHasBeenSet = false;
177
178 Aws::String m_certificateArn;
179 bool m_certificateArnHasBeenSet = false;
180
181 Aws::String m_certificateOwner;
182 bool m_certificateOwnerHasBeenSet = false;
183
184 Aws::Utils::DateTime m_validFromDate{};
185 bool m_validFromDateHasBeenSet = false;
186
187 Aws::Utils::DateTime m_validToDate{};
188 bool m_validToDateHasBeenSet = false;
189
190 Aws::String m_signingAlgorithm;
191 bool m_signingAlgorithmHasBeenSet = false;
192
193 int m_keyLength{0};
194 bool m_keyLengthHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace DatabaseMigrationService
199} // 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:74
void SetValidFromDate(ValidFromDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Certificate & WithCertificateWallet(CertificateWalletT &&value)
Definition Certificate.h:92
Certificate & WithValidFromDate(ValidFromDateT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Certificate()=default
Certificate & WithCertificateArn(CertificateArnT &&value)
const Aws::Utils::ByteBuffer & GetCertificateWallet() const
Definition Certificate.h:87
void SetCertificatePem(CertificatePemT &&value)
Definition Certificate.h:77
Certificate & WithValidToDate(ValidToDateT &&value)
const Aws::String & GetCertificateArn() const
Definition Certificate.h:99
void SetCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:52
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:79
Certificate & WithCertificateIdentifier(CertificateIdentifierT &&value)
Definition Certificate.h:54
const Aws::String & GetCertificateIdentifier() const
Definition Certificate.h:49
Certificate & WithCertificateCreationDate(CertificateCreationDateT &&value)
Definition Certificate.h:66
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)
Definition Certificate.h:90
const Aws::String & GetSigningAlgorithm() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue