AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImportKeyMaterial.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/model/ImportAs2805KeyCryptogram.h>
9#include <aws/payment-cryptography/model/ImportDiffieHellmanTr31KeyBlock.h>
10#include <aws/payment-cryptography/model/ImportKeyCryptogram.h>
11#include <aws/payment-cryptography/model/ImportTr31KeyBlock.h>
12#include <aws/payment-cryptography/model/ImportTr34KeyBlock.h>
13#include <aws/payment-cryptography/model/RootCertificatePublicKey.h>
14#include <aws/payment-cryptography/model/TrustedCertificatePublicKey.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace PaymentCryptography {
26namespace Model {
27
36 public:
37 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial() = default;
38 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const RootCertificatePublicKey& GetRootCertificatePublicKey() const { return m_rootCertificatePublicKey; }
47 inline bool RootCertificatePublicKeyHasBeenSet() const { return m_rootCertificatePublicKeyHasBeenSet; }
48 template <typename RootCertificatePublicKeyT = RootCertificatePublicKey>
49 void SetRootCertificatePublicKey(RootCertificatePublicKeyT&& value) {
50 m_rootCertificatePublicKeyHasBeenSet = true;
51 m_rootCertificatePublicKey = std::forward<RootCertificatePublicKeyT>(value);
52 }
53 template <typename RootCertificatePublicKeyT = RootCertificatePublicKey>
54 ImportKeyMaterial& WithRootCertificatePublicKey(RootCertificatePublicKeyT&& value) {
55 SetRootCertificatePublicKey(std::forward<RootCertificatePublicKeyT>(value));
56 return *this;
57 }
59
61
64 inline const TrustedCertificatePublicKey& GetTrustedCertificatePublicKey() const { return m_trustedCertificatePublicKey; }
65 inline bool TrustedCertificatePublicKeyHasBeenSet() const { return m_trustedCertificatePublicKeyHasBeenSet; }
66 template <typename TrustedCertificatePublicKeyT = TrustedCertificatePublicKey>
67 void SetTrustedCertificatePublicKey(TrustedCertificatePublicKeyT&& value) {
68 m_trustedCertificatePublicKeyHasBeenSet = true;
69 m_trustedCertificatePublicKey = std::forward<TrustedCertificatePublicKeyT>(value);
70 }
71 template <typename TrustedCertificatePublicKeyT = TrustedCertificatePublicKey>
72 ImportKeyMaterial& WithTrustedCertificatePublicKey(TrustedCertificatePublicKeyT&& value) {
73 SetTrustedCertificatePublicKey(std::forward<TrustedCertificatePublicKeyT>(value));
74 return *this;
75 }
77
79
83 inline const ImportTr31KeyBlock& GetTr31KeyBlock() const { return m_tr31KeyBlock; }
84 inline bool Tr31KeyBlockHasBeenSet() const { return m_tr31KeyBlockHasBeenSet; }
85 template <typename Tr31KeyBlockT = ImportTr31KeyBlock>
86 void SetTr31KeyBlock(Tr31KeyBlockT&& value) {
87 m_tr31KeyBlockHasBeenSet = true;
88 m_tr31KeyBlock = std::forward<Tr31KeyBlockT>(value);
89 }
90 template <typename Tr31KeyBlockT = ImportTr31KeyBlock>
91 ImportKeyMaterial& WithTr31KeyBlock(Tr31KeyBlockT&& value) {
92 SetTr31KeyBlock(std::forward<Tr31KeyBlockT>(value));
93 return *this;
94 }
96
98
102 inline const ImportTr34KeyBlock& GetTr34KeyBlock() const { return m_tr34KeyBlock; }
103 inline bool Tr34KeyBlockHasBeenSet() const { return m_tr34KeyBlockHasBeenSet; }
104 template <typename Tr34KeyBlockT = ImportTr34KeyBlock>
105 void SetTr34KeyBlock(Tr34KeyBlockT&& value) {
106 m_tr34KeyBlockHasBeenSet = true;
107 m_tr34KeyBlock = std::forward<Tr34KeyBlockT>(value);
108 }
109 template <typename Tr34KeyBlockT = ImportTr34KeyBlock>
110 ImportKeyMaterial& WithTr34KeyBlock(Tr34KeyBlockT&& value) {
111 SetTr34KeyBlock(std::forward<Tr34KeyBlockT>(value));
112 return *this;
113 }
115
117
121 inline const ImportKeyCryptogram& GetKeyCryptogram() const { return m_keyCryptogram; }
122 inline bool KeyCryptogramHasBeenSet() const { return m_keyCryptogramHasBeenSet; }
123 template <typename KeyCryptogramT = ImportKeyCryptogram>
124 void SetKeyCryptogram(KeyCryptogramT&& value) {
125 m_keyCryptogramHasBeenSet = true;
126 m_keyCryptogram = std::forward<KeyCryptogramT>(value);
127 }
128 template <typename KeyCryptogramT = ImportKeyCryptogram>
129 ImportKeyMaterial& WithKeyCryptogram(KeyCryptogramT&& value) {
130 SetKeyCryptogram(std::forward<KeyCryptogramT>(value));
131 return *this;
132 }
134
136
140 inline const ImportDiffieHellmanTr31KeyBlock& GetDiffieHellmanTr31KeyBlock() const { return m_diffieHellmanTr31KeyBlock; }
141 inline bool DiffieHellmanTr31KeyBlockHasBeenSet() const { return m_diffieHellmanTr31KeyBlockHasBeenSet; }
142 template <typename DiffieHellmanTr31KeyBlockT = ImportDiffieHellmanTr31KeyBlock>
143 void SetDiffieHellmanTr31KeyBlock(DiffieHellmanTr31KeyBlockT&& value) {
144 m_diffieHellmanTr31KeyBlockHasBeenSet = true;
145 m_diffieHellmanTr31KeyBlock = std::forward<DiffieHellmanTr31KeyBlockT>(value);
146 }
147 template <typename DiffieHellmanTr31KeyBlockT = ImportDiffieHellmanTr31KeyBlock>
148 ImportKeyMaterial& WithDiffieHellmanTr31KeyBlock(DiffieHellmanTr31KeyBlockT&& value) {
149 SetDiffieHellmanTr31KeyBlock(std::forward<DiffieHellmanTr31KeyBlockT>(value));
150 return *this;
151 }
153
155
159 inline const ImportAs2805KeyCryptogram& GetAs2805KeyCryptogram() const { return m_as2805KeyCryptogram; }
160 inline bool As2805KeyCryptogramHasBeenSet() const { return m_as2805KeyCryptogramHasBeenSet; }
161 template <typename As2805KeyCryptogramT = ImportAs2805KeyCryptogram>
162 void SetAs2805KeyCryptogram(As2805KeyCryptogramT&& value) {
163 m_as2805KeyCryptogramHasBeenSet = true;
164 m_as2805KeyCryptogram = std::forward<As2805KeyCryptogramT>(value);
165 }
166 template <typename As2805KeyCryptogramT = ImportAs2805KeyCryptogram>
167 ImportKeyMaterial& WithAs2805KeyCryptogram(As2805KeyCryptogramT&& value) {
168 SetAs2805KeyCryptogram(std::forward<As2805KeyCryptogramT>(value));
169 return *this;
170 }
172 private:
173 RootCertificatePublicKey m_rootCertificatePublicKey;
174
175 TrustedCertificatePublicKey m_trustedCertificatePublicKey;
176
177 ImportTr31KeyBlock m_tr31KeyBlock;
178
179 ImportTr34KeyBlock m_tr34KeyBlock;
180
181 ImportKeyCryptogram m_keyCryptogram;
182
183 ImportDiffieHellmanTr31KeyBlock m_diffieHellmanTr31KeyBlock;
184
185 ImportAs2805KeyCryptogram m_as2805KeyCryptogram;
186 bool m_rootCertificatePublicKeyHasBeenSet = false;
187 bool m_trustedCertificatePublicKeyHasBeenSet = false;
188 bool m_tr31KeyBlockHasBeenSet = false;
189 bool m_tr34KeyBlockHasBeenSet = false;
190 bool m_keyCryptogramHasBeenSet = false;
191 bool m_diffieHellmanTr31KeyBlockHasBeenSet = false;
192 bool m_as2805KeyCryptogramHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace PaymentCryptography
197} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial(Aws::Utils::Json::JsonView jsonValue)
ImportKeyMaterial & WithAs2805KeyCryptogram(As2805KeyCryptogramT &&value)
ImportKeyMaterial & WithRootCertificatePublicKey(RootCertificatePublicKeyT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDiffieHellmanTr31KeyBlock(DiffieHellmanTr31KeyBlockT &&value)
void SetTrustedCertificatePublicKey(TrustedCertificatePublicKeyT &&value)
ImportKeyMaterial & WithKeyCryptogram(KeyCryptogramT &&value)
const ImportTr34KeyBlock & GetTr34KeyBlock() const
const ImportDiffieHellmanTr31KeyBlock & GetDiffieHellmanTr31KeyBlock() const
const TrustedCertificatePublicKey & GetTrustedCertificatePublicKey() const
ImportKeyMaterial & WithTrustedCertificatePublicKey(TrustedCertificatePublicKeyT &&value)
const ImportKeyCryptogram & GetKeyCryptogram() const
void SetAs2805KeyCryptogram(As2805KeyCryptogramT &&value)
const ImportTr31KeyBlock & GetTr31KeyBlock() const
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
const RootCertificatePublicKey & GetRootCertificatePublicKey() const
ImportKeyMaterial & WithTr34KeyBlock(Tr34KeyBlockT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyMaterial()=default
const ImportAs2805KeyCryptogram & GetAs2805KeyCryptogram() const
ImportKeyMaterial & WithTr31KeyBlock(Tr31KeyBlockT &&value)
void SetRootCertificatePublicKey(RootCertificatePublicKeyT &&value)
ImportKeyMaterial & WithDiffieHellmanTr31KeyBlock(DiffieHellmanTr31KeyBlockT &&value)
Aws::Utils::Json::JsonValue JsonValue