AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DecryptResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/EncryptionAlgorithmSpec.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API DecryptResult() = default;
31
33
38 inline const Aws::String& GetKeyId() const { return m_keyId; }
39 template <typename KeyIdT = Aws::String>
40 void SetKeyId(KeyIdT&& value) {
41 m_keyIdHasBeenSet = true;
42 m_keyId = std::forward<KeyIdT>(value);
43 }
44 template <typename KeyIdT = Aws::String>
45 DecryptResult& WithKeyId(KeyIdT&& value) {
46 SetKeyId(std::forward<KeyIdT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
60 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
61 void SetPlaintext(PlaintextT&& value) {
62 m_plaintextHasBeenSet = true;
63 m_plaintext = std::forward<PlaintextT>(value);
64 }
65 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
66 DecryptResult& WithPlaintext(PlaintextT&& value) {
67 SetPlaintext(std::forward<PlaintextT>(value));
68 return *this;
69 }
71
73
76 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
78 m_encryptionAlgorithmHasBeenSet = true;
79 m_encryptionAlgorithm = value;
80 }
83 return *this;
84 }
86
88
100 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
101 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
102 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
103 m_ciphertextForRecipientHasBeenSet = true;
104 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
105 }
106 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
107 DecryptResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
108 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
121 template <typename KeyMaterialIdT = Aws::String>
122 void SetKeyMaterialId(KeyMaterialIdT&& value) {
123 m_keyMaterialIdHasBeenSet = true;
124 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
125 }
126 template <typename KeyMaterialIdT = Aws::String>
127 DecryptResult& WithKeyMaterialId(KeyMaterialIdT&& value) {
128 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
129 return *this;
130 }
132
134
135 inline const Aws::String& GetRequestId() const { return m_requestId; }
136 template <typename RequestIdT = Aws::String>
137 void SetRequestId(RequestIdT&& value) {
138 m_requestIdHasBeenSet = true;
139 m_requestId = std::forward<RequestIdT>(value);
140 }
141 template <typename RequestIdT = Aws::String>
142 DecryptResult& WithRequestId(RequestIdT&& value) {
143 SetRequestId(std::forward<RequestIdT>(value));
144 return *this;
145 }
147 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
148
149 private:
150 Aws::String m_keyId;
151
152 Aws::Utils::CryptoBuffer m_plaintext{};
153
155
156 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
157
158 Aws::String m_keyMaterialId;
159
160 Aws::String m_requestId;
161 Aws::Http::HttpResponseCode m_HttpResponseCode;
162 bool m_keyIdHasBeenSet = false;
163 bool m_plaintextHasBeenSet = false;
164 bool m_encryptionAlgorithmHasBeenSet = false;
165 bool m_ciphertextForRecipientHasBeenSet = false;
166 bool m_keyMaterialIdHasBeenSet = false;
167 bool m_requestIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace KMS
172} // namespace Aws
DecryptResult & WithPlaintext(PlaintextT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetKeyMaterialId() const
void SetKeyMaterialId(KeyMaterialIdT &&value)
const Aws::String & GetRequestId() const
EncryptionAlgorithmSpec GetEncryptionAlgorithm() const
AWS_KMS_API DecryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetKeyId() const
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
DecryptResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
DecryptResult & WithKeyMaterialId(KeyMaterialIdT &&value)
DecryptResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
AWS_KMS_API DecryptResult()=default
DecryptResult & WithEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetKeyId(KeyIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value)
DecryptResult & WithRequestId(RequestIdT &&value)
void SetPlaintext(PlaintextT &&value)
AWS_KMS_API DecryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue