7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncryptionAlgorithmSpec.h>
12#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
13#include <aws/kms/model/KeySpec.h>
14#include <aws/kms/model/KeyUsageType.h>
15#include <aws/kms/model/SigningAlgorithmSpec.h>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
43 template <
typename KeyIdT = Aws::String>
45 m_keyIdHasBeenSet =
true;
46 m_keyId = std::forward<KeyIdT>(value);
48 template <
typename KeyIdT = Aws::String>
50 SetKeyId(std::forward<KeyIdT>(value));
64 template <
typename PublicKeyT = Aws::Utils::ByteBuffer>
66 m_publicKeyHasBeenSet =
true;
67 m_publicKey = std::forward<PublicKeyT>(value);
69 template <
typename PublicKeyT = Aws::Utils::ByteBuffer>
82 m_keySpecHasBeenSet =
true;
101 m_keyUsageHasBeenSet =
true;
119 template <
typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
121 m_encryptionAlgorithmsHasBeenSet =
true;
122 m_encryptionAlgorithms = std::forward<EncryptionAlgorithmsT>(value);
124 template <
typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
130 m_encryptionAlgorithmsHasBeenSet =
true;
131 m_encryptionAlgorithms.push_back(value);
143 template <
typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
145 m_signingAlgorithmsHasBeenSet =
true;
146 m_signingAlgorithms = std::forward<SigningAlgorithmsT>(value);
148 template <
typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
154 m_signingAlgorithmsHasBeenSet =
true;
155 m_signingAlgorithms.push_back(value);
167 template <
typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
169 m_keyAgreementAlgorithmsHasBeenSet =
true;
170 m_keyAgreementAlgorithms = std::forward<KeyAgreementAlgorithmsT>(value);
172 template <
typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
178 m_keyAgreementAlgorithmsHasBeenSet =
true;
179 m_keyAgreementAlgorithms.push_back(value);
187 template <
typename RequestIdT = Aws::String>
189 m_requestIdHasBeenSet =
true;
190 m_requestId = std::forward<RequestIdT>(value);
192 template <
typename RequestIdT = Aws::String>
214 bool m_keyIdHasBeenSet =
false;
215 bool m_publicKeyHasBeenSet =
false;
216 bool m_keySpecHasBeenSet =
false;
217 bool m_keyUsageHasBeenSet =
false;
218 bool m_encryptionAlgorithmsHasBeenSet =
false;
219 bool m_signingAlgorithmsHasBeenSet =
false;
220 bool m_keyAgreementAlgorithmsHasBeenSet =
false;
221 bool m_requestIdHasBeenSet =
false;
GetPublicKeyResult & WithPublicKey(PublicKeyT &&value)
GetPublicKeyResult & WithKeyUsage(KeyUsageType value)
void SetKeySpec(KeySpec value)
KeySpec GetKeySpec() const
void SetKeyUsage(KeyUsageType value)
AWS_KMS_API GetPublicKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GetPublicKeyResult()=default
void SetPublicKey(PublicKeyT &&value)
GetPublicKeyResult & AddEncryptionAlgorithms(EncryptionAlgorithmSpec value)
void SetKeyId(KeyIdT &&value)
GetPublicKeyResult & WithKeyId(KeyIdT &&value)
void SetKeyAgreementAlgorithms(KeyAgreementAlgorithmsT &&value)
GetPublicKeyResult & WithRequestId(RequestIdT &&value)
GetPublicKeyResult & WithKeyAgreementAlgorithms(KeyAgreementAlgorithmsT &&value)
const Aws::Utils::ByteBuffer & GetPublicKey() const
GetPublicKeyResult & WithSigningAlgorithms(SigningAlgorithmsT &&value)
GetPublicKeyResult & WithKeySpec(KeySpec value)
void SetSigningAlgorithms(SigningAlgorithmsT &&value)
GetPublicKeyResult & WithEncryptionAlgorithms(EncryptionAlgorithmsT &&value)
void SetEncryptionAlgorithms(EncryptionAlgorithmsT &&value)
KeyUsageType GetKeyUsage() const
const Aws::Vector< KeyAgreementAlgorithmSpec > & GetKeyAgreementAlgorithms() const
const Aws::String & GetKeyId() const
GetPublicKeyResult & AddSigningAlgorithms(SigningAlgorithmSpec value)
const Aws::Vector< EncryptionAlgorithmSpec > & GetEncryptionAlgorithms() const
GetPublicKeyResult & AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::Vector< SigningAlgorithmSpec > & GetSigningAlgorithms() const
AWS_KMS_API GetPublicKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
KeyAgreementAlgorithmSpec
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue