AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
48 inline const Aws::String& GetKeyId() const{ return m_keyId; }
49 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
50 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
51 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
52 inline GetPublicKeyResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
53 inline GetPublicKeyResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
54 inline GetPublicKeyResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
56
58
65 inline const Aws::Utils::ByteBuffer& GetPublicKey() const{ return m_publicKey; }
66 inline void SetPublicKey(const Aws::Utils::ByteBuffer& value) { m_publicKey = value; }
67 inline void SetPublicKey(Aws::Utils::ByteBuffer&& value) { m_publicKey = std::move(value); }
68 inline GetPublicKeyResult& WithPublicKey(const Aws::Utils::ByteBuffer& value) { SetPublicKey(value); return *this;}
69 inline GetPublicKeyResult& WithPublicKey(Aws::Utils::ByteBuffer&& value) { SetPublicKey(std::move(value)); return *this;}
71
73
76 inline const KeySpec& GetKeySpec() const{ return m_keySpec; }
77 inline void SetKeySpec(const KeySpec& value) { m_keySpec = value; }
78 inline void SetKeySpec(KeySpec&& value) { m_keySpec = std::move(value); }
79 inline GetPublicKeyResult& WithKeySpec(const KeySpec& value) { SetKeySpec(value); return *this;}
80 inline GetPublicKeyResult& WithKeySpec(KeySpec&& value) { SetKeySpec(std::move(value)); return *this;}
82
84
91 inline const KeyUsageType& GetKeyUsage() const{ return m_keyUsage; }
92 inline void SetKeyUsage(const KeyUsageType& value) { m_keyUsage = value; }
93 inline void SetKeyUsage(KeyUsageType&& value) { m_keyUsage = std::move(value); }
94 inline GetPublicKeyResult& WithKeyUsage(const KeyUsageType& value) { SetKeyUsage(value); return *this;}
95 inline GetPublicKeyResult& WithKeyUsage(KeyUsageType&& value) { SetKeyUsage(std::move(value)); return *this;}
97
99
106 inline const Aws::Vector<EncryptionAlgorithmSpec>& GetEncryptionAlgorithms() const{ return m_encryptionAlgorithms; }
107 inline void SetEncryptionAlgorithms(const Aws::Vector<EncryptionAlgorithmSpec>& value) { m_encryptionAlgorithms = value; }
108 inline void SetEncryptionAlgorithms(Aws::Vector<EncryptionAlgorithmSpec>&& value) { m_encryptionAlgorithms = std::move(value); }
111 inline GetPublicKeyResult& AddEncryptionAlgorithms(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithms.push_back(value); return *this; }
112 inline GetPublicKeyResult& AddEncryptionAlgorithms(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithms.push_back(std::move(value)); return *this; }
114
116
121 inline const Aws::Vector<SigningAlgorithmSpec>& GetSigningAlgorithms() const{ return m_signingAlgorithms; }
122 inline void SetSigningAlgorithms(const Aws::Vector<SigningAlgorithmSpec>& value) { m_signingAlgorithms = value; }
123 inline void SetSigningAlgorithms(Aws::Vector<SigningAlgorithmSpec>&& value) { m_signingAlgorithms = std::move(value); }
126 inline GetPublicKeyResult& AddSigningAlgorithms(const SigningAlgorithmSpec& value) { m_signingAlgorithms.push_back(value); return *this; }
127 inline GetPublicKeyResult& AddSigningAlgorithms(SigningAlgorithmSpec&& value) { m_signingAlgorithms.push_back(std::move(value)); return *this; }
129
131
136 inline const Aws::Vector<KeyAgreementAlgorithmSpec>& GetKeyAgreementAlgorithms() const{ return m_keyAgreementAlgorithms; }
137 inline void SetKeyAgreementAlgorithms(const Aws::Vector<KeyAgreementAlgorithmSpec>& value) { m_keyAgreementAlgorithms = value; }
138 inline void SetKeyAgreementAlgorithms(Aws::Vector<KeyAgreementAlgorithmSpec>&& value) { m_keyAgreementAlgorithms = std::move(value); }
141 inline GetPublicKeyResult& AddKeyAgreementAlgorithms(const KeyAgreementAlgorithmSpec& value) { m_keyAgreementAlgorithms.push_back(value); return *this; }
142 inline GetPublicKeyResult& AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec&& value) { m_keyAgreementAlgorithms.push_back(std::move(value)); return *this; }
144
146
147 inline const Aws::String& GetRequestId() const{ return m_requestId; }
148 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
149 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
150 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
151 inline GetPublicKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
152 inline GetPublicKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
153 inline GetPublicKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
155 private:
156
157 Aws::String m_keyId;
158
159 Aws::Utils::ByteBuffer m_publicKey;
160
161 KeySpec m_keySpec;
162
163 KeyUsageType m_keyUsage;
164
165 Aws::Vector<EncryptionAlgorithmSpec> m_encryptionAlgorithms;
166
167 Aws::Vector<SigningAlgorithmSpec> m_signingAlgorithms;
168
169 Aws::Vector<KeyAgreementAlgorithmSpec> m_keyAgreementAlgorithms;
170
171 Aws::String m_requestId;
172 };
173
174} // namespace Model
175} // namespace KMS
176} // namespace Aws
GetPublicKeyResult & AddKeyAgreementAlgorithms(const KeyAgreementAlgorithmSpec &value)
GetPublicKeyResult & WithPublicKey(const Aws::Utils::ByteBuffer &value)
AWS_KMS_API GetPublicKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPublicKeyResult & AddEncryptionAlgorithms(const EncryptionAlgorithmSpec &value)
void SetPublicKey(Aws::Utils::ByteBuffer &&value)
void SetSigningAlgorithms(const Aws::Vector< SigningAlgorithmSpec > &value)
GetPublicKeyResult & WithRequestId(const char *value)
GetPublicKeyResult & WithSigningAlgorithms(const Aws::Vector< SigningAlgorithmSpec > &value)
void SetPublicKey(const Aws::Utils::ByteBuffer &value)
GetPublicKeyResult & WithKeyAgreementAlgorithms(const Aws::Vector< KeyAgreementAlgorithmSpec > &value)
void SetKeyUsage(KeyUsageType &&value)
GetPublicKeyResult & WithKeyId(const Aws::String &value)
GetPublicKeyResult & WithKeySpec(KeySpec &&value)
void SetRequestId(Aws::String &&value)
GetPublicKeyResult & WithKeyId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetSigningAlgorithms(Aws::Vector< SigningAlgorithmSpec > &&value)
GetPublicKeyResult & WithEncryptionAlgorithms(Aws::Vector< EncryptionAlgorithmSpec > &&value)
GetPublicKeyResult & AddKeyAgreementAlgorithms(KeyAgreementAlgorithmSpec &&value)
void SetKeyAgreementAlgorithms(const Aws::Vector< KeyAgreementAlgorithmSpec > &value)
GetPublicKeyResult & AddEncryptionAlgorithms(EncryptionAlgorithmSpec &&value)
GetPublicKeyResult & AddSigningAlgorithms(SigningAlgorithmSpec &&value)
const Aws::Utils::ByteBuffer & GetPublicKey() const
GetPublicKeyResult & WithKeyAgreementAlgorithms(Aws::Vector< KeyAgreementAlgorithmSpec > &&value)
GetPublicKeyResult & WithKeyUsage(const KeyUsageType &value)
void SetEncryptionAlgorithms(const Aws::Vector< EncryptionAlgorithmSpec > &value)
GetPublicKeyResult & WithEncryptionAlgorithms(const Aws::Vector< EncryptionAlgorithmSpec > &value)
const Aws::Vector< KeyAgreementAlgorithmSpec > & GetKeyAgreementAlgorithms() const
void SetKeyUsage(const KeyUsageType &value)
const Aws::String & GetKeyId() const
GetPublicKeyResult & AddSigningAlgorithms(const SigningAlgorithmSpec &value)
GetPublicKeyResult & WithRequestId(Aws::String &&value)
void SetKeySpec(const KeySpec &value)
GetPublicKeyResult & WithPublicKey(Aws::Utils::ByteBuffer &&value)
const Aws::Vector< EncryptionAlgorithmSpec > & GetEncryptionAlgorithms() const
const Aws::String & GetRequestId() const
GetPublicKeyResult & WithKeyUsage(KeyUsageType &&value)
GetPublicKeyResult & WithSigningAlgorithms(Aws::Vector< SigningAlgorithmSpec > &&value)
GetPublicKeyResult & WithKeyId(const char *value)
void SetEncryptionAlgorithms(Aws::Vector< EncryptionAlgorithmSpec > &&value)
const Aws::Vector< SigningAlgorithmSpec > & GetSigningAlgorithms() const
void SetKeyId(const Aws::String &value)
GetPublicKeyResult & WithRequestId(const Aws::String &value)
AWS_KMS_API GetPublicKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const KeyUsageType & GetKeyUsage() const
void SetKeyAgreementAlgorithms(Aws::Vector< KeyAgreementAlgorithmSpec > &&value)
GetPublicKeyResult & WithKeySpec(const KeySpec &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue