AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DecryptResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10#include <aws/kms/model/EncryptionAlgorithmSpec.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API DecryptResult() = default;
30
32
37 inline const Aws::String& GetKeyId() const { return m_keyId; }
38 template <typename KeyIdT = Aws::String>
39 void SetKeyId(KeyIdT&& value) {
40 m_keyIdHasBeenSet = true;
41 m_keyId = std::forward<KeyIdT>(value);
42 }
43 template <typename KeyIdT = Aws::String>
44 DecryptResult& WithKeyId(KeyIdT&& value) {
45 SetKeyId(std::forward<KeyIdT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const { return m_plaintext; }
59 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
60 void SetPlaintext(PlaintextT&& value) {
61 m_plaintextHasBeenSet = true;
62 m_plaintext = std::forward<PlaintextT>(value);
63 }
64 template <typename PlaintextT = Aws::Utils::CryptoBuffer>
65 DecryptResult& WithPlaintext(PlaintextT&& value) {
66 SetPlaintext(std::forward<PlaintextT>(value));
67 return *this;
68 }
70
72
75 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
77 m_encryptionAlgorithmHasBeenSet = true;
78 m_encryptionAlgorithm = value;
79 }
82 return *this;
83 }
85
87
99 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
100 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
101 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) {
102 m_ciphertextForRecipientHasBeenSet = true;
103 m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value);
104 }
105 template <typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
106 DecryptResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) {
107 SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value));
108 return *this;
109 }
111
113
119 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
120 template <typename KeyMaterialIdT = Aws::String>
121 void SetKeyMaterialId(KeyMaterialIdT&& value) {
122 m_keyMaterialIdHasBeenSet = true;
123 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
124 }
125 template <typename KeyMaterialIdT = Aws::String>
126 DecryptResult& WithKeyMaterialId(KeyMaterialIdT&& value) {
127 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
141 DecryptResult& WithRequestId(RequestIdT&& value) {
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_keyId;
148
149 Aws::Utils::CryptoBuffer m_plaintext{};
150
152
153 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
154
155 Aws::String m_keyMaterialId;
156
157 Aws::String m_requestId;
158 bool m_keyIdHasBeenSet = false;
159 bool m_plaintextHasBeenSet = false;
160 bool m_encryptionAlgorithmHasBeenSet = false;
161 bool m_ciphertextForRecipientHasBeenSet = false;
162 bool m_keyMaterialIdHasBeenSet = false;
163 bool m_requestIdHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace KMS
168} // 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)
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