AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetPublicKeyResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/kms/model/KeySpec.h>
11#include <aws/kms/model/KeyUsageType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kms/model/EncryptionAlgorithmSpec.h>
14#include <aws/kms/model/SigningAlgorithmSpec.h>
15#include <aws/kms/model/KeyAgreementAlgorithmSpec.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace KMS
31{
32namespace Model
33{
35 {
36 public:
37 AWS_KMS_API GetPublicKeyResult() = default;
40
41
43
48 inline const Aws::String& GetKeyId() const { return m_keyId; }
49 template<typename KeyIdT = Aws::String>
50 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
51 template<typename KeyIdT = Aws::String>
52 GetPublicKeyResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
54
56
63 inline const Aws::Utils::ByteBuffer& GetPublicKey() const { return m_publicKey; }
64 template<typename PublicKeyT = Aws::Utils::ByteBuffer>
65 void SetPublicKey(PublicKeyT&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
66 template<typename PublicKeyT = Aws::Utils::ByteBuffer>
67 GetPublicKeyResult& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
69
71
74 inline KeySpec GetKeySpec() const { return m_keySpec; }
75 inline void SetKeySpec(KeySpec value) { m_keySpecHasBeenSet = true; m_keySpec = value; }
76 inline GetPublicKeyResult& WithKeySpec(KeySpec value) { SetKeySpec(value); return *this;}
78
80
87 inline KeyUsageType GetKeyUsage() const { return m_keyUsage; }
88 inline void SetKeyUsage(KeyUsageType value) { m_keyUsageHasBeenSet = true; m_keyUsage = value; }
89 inline GetPublicKeyResult& WithKeyUsage(KeyUsageType value) { SetKeyUsage(value); return *this;}
91
93
100 inline const Aws::Vector<EncryptionAlgorithmSpec>& GetEncryptionAlgorithms() const { return m_encryptionAlgorithms; }
101 template<typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
102 void SetEncryptionAlgorithms(EncryptionAlgorithmsT&& value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms = std::forward<EncryptionAlgorithmsT>(value); }
103 template<typename EncryptionAlgorithmsT = Aws::Vector<EncryptionAlgorithmSpec>>
104 GetPublicKeyResult& WithEncryptionAlgorithms(EncryptionAlgorithmsT&& value) { SetEncryptionAlgorithms(std::forward<EncryptionAlgorithmsT>(value)); return *this;}
105 inline GetPublicKeyResult& AddEncryptionAlgorithms(EncryptionAlgorithmSpec value) { m_encryptionAlgorithmsHasBeenSet = true; m_encryptionAlgorithms.push_back(value); return *this; }
107
109
114 inline const Aws::Vector<SigningAlgorithmSpec>& GetSigningAlgorithms() const { return m_signingAlgorithms; }
115 template<typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
116 void SetSigningAlgorithms(SigningAlgorithmsT&& value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms = std::forward<SigningAlgorithmsT>(value); }
117 template<typename SigningAlgorithmsT = Aws::Vector<SigningAlgorithmSpec>>
118 GetPublicKeyResult& WithSigningAlgorithms(SigningAlgorithmsT&& value) { SetSigningAlgorithms(std::forward<SigningAlgorithmsT>(value)); return *this;}
119 inline GetPublicKeyResult& AddSigningAlgorithms(SigningAlgorithmSpec value) { m_signingAlgorithmsHasBeenSet = true; m_signingAlgorithms.push_back(value); return *this; }
121
123
128 inline const Aws::Vector<KeyAgreementAlgorithmSpec>& GetKeyAgreementAlgorithms() const { return m_keyAgreementAlgorithms; }
129 template<typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
130 void SetKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms = std::forward<KeyAgreementAlgorithmsT>(value); }
131 template<typename KeyAgreementAlgorithmsT = Aws::Vector<KeyAgreementAlgorithmSpec>>
132 GetPublicKeyResult& WithKeyAgreementAlgorithms(KeyAgreementAlgorithmsT&& value) { SetKeyAgreementAlgorithms(std::forward<KeyAgreementAlgorithmsT>(value)); return *this;}
133 inline GetPublicKeyResult& AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec value) { m_keyAgreementAlgorithmsHasBeenSet = true; m_keyAgreementAlgorithms.push_back(value); return *this; }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template<typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
141 template<typename RequestIdT = Aws::String>
142 GetPublicKeyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
144 private:
145
146 Aws::String m_keyId;
147 bool m_keyIdHasBeenSet = false;
148
149 Aws::Utils::ByteBuffer m_publicKey{};
150 bool m_publicKeyHasBeenSet = false;
151
152 KeySpec m_keySpec{KeySpec::NOT_SET};
153 bool m_keySpecHasBeenSet = false;
154
156 bool m_keyUsageHasBeenSet = false;
157
158 Aws::Vector<EncryptionAlgorithmSpec> m_encryptionAlgorithms;
159 bool m_encryptionAlgorithmsHasBeenSet = false;
160
161 Aws::Vector<SigningAlgorithmSpec> m_signingAlgorithms;
162 bool m_signingAlgorithmsHasBeenSet = false;
163
164 Aws::Vector<KeyAgreementAlgorithmSpec> m_keyAgreementAlgorithms;
165 bool m_keyAgreementAlgorithmsHasBeenSet = false;
166
167 Aws::String m_requestId;
168 bool m_requestIdHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace KMS
173} // namespace Aws
GetPublicKeyResult & WithPublicKey(PublicKeyT &&value)
GetPublicKeyResult & WithKeyUsage(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)
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)
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
const Aws::Vector< SigningAlgorithmSpec > & GetSigningAlgorithms() const
AWS_KMS_API GetPublicKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue