AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateDataKeyResult.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 <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS
25{
26namespace Model
27{
29 {
30 public:
31 AWS_KMS_API GenerateDataKeyResult();
34
35
37
42 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
43 inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlob = value; }
44 inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlob = std::move(value); }
46 inline GenerateDataKeyResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
48
50
58 inline const Aws::Utils::CryptoBuffer& GetPlaintext() const{ return m_plaintext; }
59 inline void SetPlaintext(const Aws::Utils::CryptoBuffer& value) { m_plaintext = value; }
60 inline void SetPlaintext(Aws::Utils::CryptoBuffer&& value) { m_plaintext = std::move(value); }
61 inline GenerateDataKeyResult& WithPlaintext(const Aws::Utils::CryptoBuffer& value) { SetPlaintext(value); return *this;}
62 inline GenerateDataKeyResult& WithPlaintext(Aws::Utils::CryptoBuffer&& value) { SetPlaintext(std::move(value)); return *this;}
64
66
71 inline const Aws::String& GetKeyId() const{ return m_keyId; }
72 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
73 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
74 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
75 inline GenerateDataKeyResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
76 inline GenerateDataKeyResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
77 inline GenerateDataKeyResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
79
81
92 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const{ return m_ciphertextForRecipient; }
93 inline void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer& value) { m_ciphertextForRecipient = value; }
94 inline void SetCiphertextForRecipient(Aws::Utils::ByteBuffer&& value) { m_ciphertextForRecipient = std::move(value); }
98
100
101 inline const Aws::String& GetRequestId() const{ return m_requestId; }
102 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
103 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
104 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
105 inline GenerateDataKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
106 inline GenerateDataKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
107 inline GenerateDataKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
109 private:
110
111 Aws::Utils::ByteBuffer m_ciphertextBlob;
112
113 Aws::Utils::CryptoBuffer m_plaintext;
114
115 Aws::String m_keyId;
116
117 Aws::Utils::ByteBuffer m_ciphertextForRecipient;
118
119 Aws::String m_requestId;
120 };
121
122} // namespace Model
123} // namespace KMS
124} // namespace Aws
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
void SetCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
AWS_KMS_API GenerateDataKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateDataKeyResult & WithRequestId(const char *value)
void SetKeyId(const Aws::String &value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetRequestId(const Aws::String &value)
AWS_KMS_API GenerateDataKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateDataKeyResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyResult & WithKeyId(Aws::String &&value)
GenerateDataKeyResult & WithCiphertextForRecipient(const Aws::Utils::ByteBuffer &value)
void SetPlaintext(const Aws::Utils::CryptoBuffer &value)
void SetPlaintext(Aws::Utils::CryptoBuffer &&value)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
GenerateDataKeyResult & WithPlaintext(const Aws::Utils::CryptoBuffer &value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
GenerateDataKeyResult & WithKeyId(const char *value)
GenerateDataKeyResult & WithPlaintext(Aws::Utils::CryptoBuffer &&value)
GenerateDataKeyResult & WithRequestId(const Aws::String &value)
GenerateDataKeyResult & WithCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
GenerateDataKeyResult & WithRequestId(Aws::String &&value)
void SetCiphertextForRecipient(Aws::Utils::ByteBuffer &&value)
GenerateDataKeyResult & WithKeyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue