AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
34
35
37
42 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
43 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
44 void SetCiphertextBlob(CiphertextBlobT&& value) { m_ciphertextBlobHasBeenSet = true; m_ciphertextBlob = std::forward<CiphertextBlobT>(value); }
45 template<typename CiphertextBlobT = Aws::Utils::ByteBuffer>
46 GenerateDataKeyResult& WithCiphertextBlob(CiphertextBlobT&& value) { SetCiphertextBlob(std::forward<CiphertextBlobT>(value)); return *this;}
48
50
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 GenerateDataKeyResult& WithPlaintext(PlaintextT&& value) { SetPlaintext(std::forward<PlaintextT>(value)); return *this;}
64
66
71 inline const Aws::String& GetKeyId() const { return m_keyId; }
72 template<typename KeyIdT = Aws::String>
73 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
74 template<typename KeyIdT = Aws::String>
75 GenerateDataKeyResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
77
79
90 inline const Aws::Utils::ByteBuffer& GetCiphertextForRecipient() const { return m_ciphertextForRecipient; }
91 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
92 void SetCiphertextForRecipient(CiphertextForRecipientT&& value) { m_ciphertextForRecipientHasBeenSet = true; m_ciphertextForRecipient = std::forward<CiphertextForRecipientT>(value); }
93 template<typename CiphertextForRecipientT = Aws::Utils::ByteBuffer>
94 GenerateDataKeyResult& WithCiphertextForRecipient(CiphertextForRecipientT&& value) { SetCiphertextForRecipient(std::forward<CiphertextForRecipientT>(value)); return *this;}
96
98
102 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
103 template<typename KeyMaterialIdT = Aws::String>
104 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet = true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
105 template<typename KeyMaterialIdT = Aws::String>
106 GenerateDataKeyResult& WithKeyMaterialId(KeyMaterialIdT&& value) { SetKeyMaterialId(std::forward<KeyMaterialIdT>(value)); return *this;}
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template<typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
114 template<typename RequestIdT = Aws::String>
115 GenerateDataKeyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
117 private:
118
119 Aws::Utils::ByteBuffer m_ciphertextBlob{};
120 bool m_ciphertextBlobHasBeenSet = false;
121
122 Aws::Utils::CryptoBuffer m_plaintext{};
123 bool m_plaintextHasBeenSet = false;
124
125 Aws::String m_keyId;
126 bool m_keyIdHasBeenSet = false;
127
128 Aws::Utils::ByteBuffer m_ciphertextForRecipient{};
129 bool m_ciphertextForRecipientHasBeenSet = false;
130
131 Aws::String m_keyMaterialId;
132 bool m_keyMaterialIdHasBeenSet = false;
133
134 Aws::String m_requestId;
135 bool m_requestIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace KMS
140} // namespace Aws
GenerateDataKeyResult & WithKeyId(KeyIdT &&value)
void SetCiphertextForRecipient(CiphertextForRecipientT &&value)
AWS_KMS_API GenerateDataKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GenerateDataKeyResult()=default
void SetKeyMaterialId(KeyMaterialIdT &&value)
GenerateDataKeyResult & WithPlaintext(PlaintextT &&value)
const Aws::Utils::ByteBuffer & GetCiphertextForRecipient() const
void SetCiphertextBlob(CiphertextBlobT &&value)
GenerateDataKeyResult & WithCiphertextBlob(CiphertextBlobT &&value)
AWS_KMS_API GenerateDataKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
GenerateDataKeyResult & WithCiphertextForRecipient(CiphertextForRecipientT &&value)
GenerateDataKeyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::CryptoBuffer & GetPlaintext() const
GenerateDataKeyResult & WithKeyMaterialId(KeyMaterialIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue