AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateDataKeyPairResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/model/DataKeyPairSpec.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
30 {
31 public:
35
36
38
43 inline const Aws::Utils::ByteBuffer& GetPrivateKeyCiphertextBlob() const{ return m_privateKeyCiphertextBlob; }
44 inline void SetPrivateKeyCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_privateKeyCiphertextBlob = value; }
45 inline void SetPrivateKeyCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_privateKeyCiphertextBlob = std::move(value); }
49
51
58 inline const Aws::Utils::CryptoBuffer& GetPrivateKeyPlaintext() const{ return m_privateKeyPlaintext; }
59 inline void SetPrivateKeyPlaintext(const Aws::Utils::CryptoBuffer& value) { m_privateKeyPlaintext = value; }
60 inline void SetPrivateKeyPlaintext(Aws::Utils::CryptoBuffer&& value) { m_privateKeyPlaintext = std::move(value); }
64
66
71 inline const Aws::Utils::ByteBuffer& GetPublicKey() const{ return m_publicKey; }
72 inline void SetPublicKey(const Aws::Utils::ByteBuffer& value) { m_publicKey = value; }
73 inline void SetPublicKey(Aws::Utils::ByteBuffer&& value) { m_publicKey = std::move(value); }
74 inline GenerateDataKeyPairResult& WithPublicKey(const Aws::Utils::ByteBuffer& value) { SetPublicKey(value); return *this;}
75 inline GenerateDataKeyPairResult& WithPublicKey(Aws::Utils::ByteBuffer&& value) { SetPublicKey(std::move(value)); return *this;}
77
79
84 inline const Aws::String& GetKeyId() const{ return m_keyId; }
85 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
86 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
87 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
88 inline GenerateDataKeyPairResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
89 inline GenerateDataKeyPairResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
90 inline GenerateDataKeyPairResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
92
94
97 inline const DataKeyPairSpec& GetKeyPairSpec() const{ return m_keyPairSpec; }
98 inline void SetKeyPairSpec(const DataKeyPairSpec& value) { m_keyPairSpec = value; }
99 inline void SetKeyPairSpec(DataKeyPairSpec&& value) { m_keyPairSpec = std::move(value); }
100 inline GenerateDataKeyPairResult& WithKeyPairSpec(const DataKeyPairSpec& value) { SetKeyPairSpec(value); return *this;}
101 inline GenerateDataKeyPairResult& WithKeyPairSpec(DataKeyPairSpec&& value) { SetKeyPairSpec(std::move(value)); return *this;}
103
105
116 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const{ return m_ciphertextForRecipient; }
117 inline void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer& value) { m_ciphertextForRecipient = value; }
118 inline void SetCiphertextForRecipient(Aws::Utils::ByteBuffer&& value) { m_ciphertextForRecipient = std::move(value); }
122
124
125 inline const Aws::String& GetRequestId() const{ return m_requestId; }
126 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
129 inline GenerateDataKeyPairResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline GenerateDataKeyPairResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline GenerateDataKeyPairResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133 private:
134
135 Aws::Utils::ByteBuffer m_privateKeyCiphertextBlob;
136
137 Aws::Utils::CryptoBuffer m_privateKeyPlaintext;
138
139 Aws::Utils::ByteBuffer m_publicKey;
140
141 Aws::String m_keyId;
142
143 DataKeyPairSpec m_keyPairSpec;
144
145 Aws::Utils::ByteBuffer m_ciphertextForRecipient;
146
147 Aws::String m_requestId;
148 };
149
150} // namespace Model
151} // namespace KMS
152} // namespace Aws
void SetKeyPairSpec(const DataKeyPairSpec &value)
const Aws::Utils::ByteBuffer & GetPublicKey() const
GenerateDataKeyPairResult & WithPrivateKeyPlaintext(Aws::Utils::CryptoBuffer &&value)
void SetPrivateKeyPlaintext(const Aws::Utils::CryptoBuffer &value)
void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyPairResult & WithRequestId(Aws::String &&value)
GenerateDataKeyPairResult & WithPublicKey(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyPairResult & WithKeyId(const Aws::String &value)
GenerateDataKeyPairResult & WithCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyPairResult & WithKeyPairSpec(DataKeyPairSpec &&value)
void SetPrivateKeyCiphertextBlob(Aws::Utils::ByteBuffer &&value)
void SetPrivateKeyPlaintext(Aws::Utils::CryptoBuffer &&value)
void SetCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyPairResult & WithCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
AWS_KMS_API GenerateDataKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
GenerateDataKeyPairResult & WithKeyPairSpec(const DataKeyPairSpec &value)
GenerateDataKeyPairResult & WithPrivateKeyCiphertextBlob(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyPairResult & WithPrivateKeyPlaintext(const Aws::Utils::CryptoBuffer &value)
void SetPublicKey(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyPairResult & WithPublicKey(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyPairResult & WithRequestId(const char *value)
GenerateDataKeyPairResult & WithPrivateKeyCiphertextBlob(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyPairResult & WithRequestId(const Aws::String &value)
void SetPrivateKeyCiphertextBlob(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::CryptoBuffer & GetPrivateKeyPlaintext() const
GenerateDataKeyPairResult & WithKeyId(Aws::String &&value)
GenerateDataKeyPairResult & WithKeyId(const char *value)
void SetPublicKey(Aws::Utils::ByteBuffer &&value)
AWS_KMS_API GenerateDataKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetPrivateKeyCiphertextBlob() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue