AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DecryptResult.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/EncryptionAlgorithmSpec.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 DecryptResult() = default;
35
36
38
43 inline const Aws::String& GetKeyId() const { return m_keyId; }
44 template<typename KeyIdT = Aws::String>
45 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
46 template<typename KeyIdT = Aws::String>
47 DecryptResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
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) { m_plaintextHasBeenSet = true; m_plaintext = std::forward<PlaintextT>(value); }
61 template<typename PlaintextT = Aws::Utils::CryptoBuffer>
62 DecryptResult& WithPlaintext(PlaintextT&& value) { SetPlaintext(std::forward<PlaintextT>(value)); return *this;}
64
66
69 inline EncryptionAlgorithmSpec GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
70 inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_encryptionAlgorithmHasBeenSet = true; m_encryptionAlgorithm = value; }
73
75
85 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
86 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
87 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) { m_ciphertextForRecipientHasBeenSet = true; m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value); }
88 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
89 DecryptResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) { SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value)); return *this;}
91
93
99 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
100 template<typename KeyMaterialIdT = Aws::String>
101 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet = true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
102 template<typename KeyMaterialIdT = Aws::String>
103 DecryptResult& WithKeyMaterialId(KeyMaterialIdT&& value) { SetKeyMaterialId(std::forward<KeyMaterialIdT>(value)); return *this;}
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template<typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
111 template<typename RequestIdT = Aws::String>
112 DecryptResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_keyId;
117 bool m_keyIdHasBeenSet = false;
118
119 Aws::Utils::CryptoBuffer m_plaintext{};
120 bool m_plaintextHasBeenSet = false;
121
123 bool m_encryptionAlgorithmHasBeenSet = false;
124
125 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
126 bool m_ciphertextForRecipientHasBeenSet = false;
127
128 Aws::String m_keyMaterialId;
129 bool m_keyMaterialIdHasBeenSet = false;
130
131 Aws::String m_requestId;
132 bool m_requestIdHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace KMS
137} // 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