AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
43 inline const Aws::String& GetKeyId() const{ return m_keyId; }
44 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
45 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
46 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
47 inline DecryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
48 inline DecryptResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
49 inline DecryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
51
53
60 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const{ return m_plaintext; }
61 inline void SetPlaintext(const Aws::Utils::CryptoBuffer& value) { m_plaintext = value; }
62 inline void SetPlaintext(Aws::Utils::CryptoBuffer&& value) { m_plaintext = std::move(value); }
63 inline DecryptResult& WithPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPlaintext(value); return *this;}
64 inline DecryptResult& WithPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPlaintext(std::move(value)); return *this;}
66
68
71 inline const EncryptionAlgorithmSpec& GetEncryptionAlgorithm() const{ return m_encryptionAlgorithm; }
72 inline void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_encryptionAlgorithm = value; }
73 inline void SetEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_encryptionAlgorithm = std::move(value); }
75 inline DecryptResult& WithEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetEncryptionAlgorithm(std::move(value)); return *this;}
77
79
89 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const{ return m_ciphertextForRecipient; }
90 inline void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer& value) { m_ciphertextForRecipient = value; }
91 inline void SetCiphertextForRecipient(Aws::Utils::ByteBuffer&& value) { m_ciphertextForRecipient = std::move(value); }
95
97
98 inline const Aws::String& GetRequestId() const{ return m_requestId; }
99 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
100 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
101 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
102 inline DecryptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
103 inline DecryptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
104 inline DecryptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
106 private:
107
108 Aws::String m_keyId;
109
110 Aws::Utils::CryptoBuffer m_plaintext;
111
112 EncryptionAlgorithmSpec m_encryptionAlgorithm;
113
114 Aws::Utils::ByteBuffer m_ciphertextForRecipient;
115
116 Aws::String m_requestId;
117 };
118
119} // namespace Model
120} // namespace KMS
121} // namespace Aws
DecryptResult & WithPlaintext(const Aws::Utils::CryptoBuffer &value)
DecryptResult & WithEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
void SetKeyId(const Aws::String &value)
const Aws::String & GetRequestId() const
DecryptResult & WithKeyId(Aws::String &&value)
void SetRequestId(const char *value)
void SetPlaintext(const Aws::Utils::CryptoBuffer &value)
void SetEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
void SetKeyId(const char *value)
AWS_KMS_API DecryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
const Aws::String & GetKeyId() const
DecryptResult & WithPlaintext(Aws::Utils::CryptoBuffer &&value)
DecryptResult & WithRequestId(const Aws::String &value)
void SetRequestId(Aws::String &&value)
void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetKeyId(Aws::String &&value)
DecryptResult & WithEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
void SetRequestId(const Aws::String &value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
void SetCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
DecryptResult & WithRequestId(const char *value)
DecryptResult & WithRequestId(Aws::String &&value)
DecryptResult & WithCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
DecryptResult & WithKeyId(const char *value)
const EncryptionAlgorithmSpec & GetEncryptionAlgorithm() const
DecryptResult & WithCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
DecryptResult & WithKeyId(const Aws::String &value)
void SetPlaintext(Aws::Utils::CryptoBuffer &&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