AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
32 AWS_KMS_API GenerateDataKeyPairResult() = default;
35
36
38
43 inline const Aws::Utils::ByteBuffer& GetPrivateKeyCiphertextBlob() const { return m_privateKeyCiphertextBlob; }
44 template<typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
45 void SetPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) { m_privateKeyCiphertextBlobHasBeenSet = true; m_privateKeyCiphertextBlob = std::forward<PrivateKeyCiphertextBlobT>(value); }
46 template<typename PrivateKeyCiphertextBlobT = Aws::Utils::ByteBuffer>
47 GenerateDataKeyPairResult& WithPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT&& value) { SetPrivateKeyCiphertextBlob(std::forward<PrivateKeyCiphertextBlobT>(value)); return *this;}
49
51
58 inline const Aws::Utils::CryptoBuffer& GetPrivateKeyPlaintext() const { return m_privateKeyPlaintext; }
59 template<typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
60 void SetPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) { m_privateKeyPlaintextHasBeenSet = true; m_privateKeyPlaintext = std::forward<PrivateKeyPlaintextT>(value); }
61 template<typename PrivateKeyPlaintextT = Aws::Utils::CryptoBuffer>
62 GenerateDataKeyPairResult& WithPrivateKeyPlaintext(PrivateKeyPlaintextT&& value) { SetPrivateKeyPlaintext(std::forward<PrivateKeyPlaintextT>(value)); return *this;}
64
66
71 inline const Aws::Utils::ByteBuffer& GetPublicKey() const { return m_publicKey; }
72 template<typename PublicKeyT = Aws::Utils::ByteBuffer>
73 void SetPublicKey(PublicKeyT&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
74 template<typename PublicKeyT = Aws::Utils::ByteBuffer>
75 GenerateDataKeyPairResult& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
77
79
84 inline const Aws::String& GetKeyId() const { return m_keyId; }
85 template<typename KeyIdT = Aws::String>
86 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
87 template<typename KeyIdT = Aws::String>
88 GenerateDataKeyPairResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
90
92
95 inline DataKeyPairSpec GetKeyPairSpec() const { return m_keyPairSpec; }
96 inline void SetKeyPairSpec(DataKeyPairSpec value) { m_keyPairSpecHasBeenSet = true; m_keyPairSpec = value; }
99
101
112 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
113 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
114 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) { m_ciphertextForRecipientHasBeenSet = true; m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value); }
115 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
116 GenerateDataKeyPairResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) { SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value)); return *this;}
118
120
123 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
124 template<typename KeyMaterialIdT = Aws::String>
125 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet = true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
126 template<typename KeyMaterialIdT = Aws::String>
127 GenerateDataKeyPairResult& WithKeyMaterialId(KeyMaterialIdT&& value) { SetKeyMaterialId(std::forward<KeyMaterialIdT>(value)); return *this;}
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template<typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
135 template<typename RequestIdT = Aws::String>
136 GenerateDataKeyPairResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
138 private:
139
140 Aws::Utils::ByteBuffer m_privateKeyCiphertextBlob{};
141 bool m_privateKeyCiphertextBlobHasBeenSet = false;
142
143 Aws::Utils::CryptoBuffer m_privateKeyPlaintext{};
144 bool m_privateKeyPlaintextHasBeenSet = false;
145
146 Aws::Utils::ByteBuffer m_publicKey{};
147 bool m_publicKeyHasBeenSet = false;
148
149 Aws::String m_keyId;
150 bool m_keyIdHasBeenSet = false;
151
153 bool m_keyPairSpecHasBeenSet = false;
154
155 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
156 bool m_ciphertextForRecipientHasBeenSet = false;
157
158 Aws::String m_keyMaterialId;
159 bool m_keyMaterialIdHasBeenSet = false;
160
161 Aws::String m_requestId;
162 bool m_requestIdHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace KMS
167} // namespace Aws
const Aws::Utils::ByteBuffer & GetPublicKey() const
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyPairResult & WithKeyMaterialId(KeyMaterialIdT &&value)
GenerateDataKeyPairResult & WithPublicKey(PublicKeyT &&value)
GenerateDataKeyPairResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyPairResult & WithPrivateKeyPlaintext(PrivateKeyPlaintextT &&value)
GenerateDataKeyPairResult & WithKeyPairSpec(DataKeyPairSpec value)
AWS_KMS_API GenerateDataKeyPairResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetPrivateKeyPlaintext(PrivateKeyPlaintextT &&value)
const Aws::Utils::CryptoBuffer & GetPrivateKeyPlaintext() const
GenerateDataKeyPairResult & WithPrivateKeyCiphertextBlob(PrivateKeyCiphertextBlobT &&value)
AWS_KMS_API GenerateDataKeyPairResult()=default
AWS_KMS_API GenerateDataKeyPairResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateDataKeyPairResult & WithRequestId(RequestIdT &&value)
GenerateDataKeyPairResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::ByteBuffer & GetPrivateKeyCiphertextBlob() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue