AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ReEncryptResult.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 ReEncryptResult() = default;
30
32
36 inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const { return m_ciphertextBlob; }
37 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
38 void SetCiphertextBlob(CiphertextBlobT&& value) {
39 m_ciphertextBlobHasBeenSet = true;
40 m_ciphertextBlob = std::forward<CiphertextBlobT>(value);
41 }
42 template <typename CiphertextBlobT = Aws::Utils::ByteBuffer>
43 ReEncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) {
44 SetCiphertextBlob(std::forward<CiphertextBlobT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetSourceKeyId() const { return m_sourceKeyId; }
54 template <typename SourceKeyIdT = Aws::String>
55 void SetSourceKeyId(SourceKeyIdT&& value) {
56 m_sourceKeyIdHasBeenSet = true;
57 m_sourceKeyId = std::forward<SourceKeyIdT>(value);
58 }
59 template <typename SourceKeyIdT = Aws::String>
60 ReEncryptResult& WithSourceKeyId(SourceKeyIdT&& value) {
61 SetSourceKeyId(std::forward<SourceKeyIdT>(value));
62 return *this;
63 }
65
67
72 inline const Aws::String& GetKeyId() const { return m_keyId; }
73 template <typename KeyIdT = Aws::String>
74 void SetKeyId(KeyIdT&& value) {
75 m_keyIdHasBeenSet = true;
76 m_keyId = std::forward<KeyIdT>(value);
77 }
78 template <typename KeyIdT = Aws::String>
79 ReEncryptResult& WithKeyId(KeyIdT&& value) {
80 SetKeyId(std::forward<KeyIdT>(value));
81 return *this;
82 }
84
86
90 inline EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const { return m_sourceEncryptionAlgorithm; }
92 m_sourceEncryptionAlgorithmHasBeenSet = true;
93 m_sourceEncryptionAlgorithm = value;
94 }
97 return *this;
98 }
100
102
105 inline EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const { return m_destinationEncryptionAlgorithm; }
107 m_destinationEncryptionAlgorithmHasBeenSet = true;
108 m_destinationEncryptionAlgorithm = value;
109 }
112 return *this;
113 }
115
117
122 inline const Aws::String& GetSourceKeyMaterialId() const { return m_sourceKeyMaterialId; }
123 template <typename SourceKeyMaterialIdT = Aws::String>
124 void SetSourceKeyMaterialId(SourceKeyMaterialIdT&& value) {
125 m_sourceKeyMaterialIdHasBeenSet = true;
126 m_sourceKeyMaterialId = std::forward<SourceKeyMaterialIdT>(value);
127 }
128 template <typename SourceKeyMaterialIdT = Aws::String>
129 ReEncryptResult& WithSourceKeyMaterialId(SourceKeyMaterialIdT&& value) {
130 SetSourceKeyMaterialId(std::forward<SourceKeyMaterialIdT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetDestinationKeyMaterialId() const { return m_destinationKeyMaterialId; }
141 template <typename DestinationKeyMaterialIdT = Aws::String>
142 void SetDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) {
143 m_destinationKeyMaterialIdHasBeenSet = true;
144 m_destinationKeyMaterialId = std::forward<DestinationKeyMaterialIdT>(value);
145 }
146 template <typename DestinationKeyMaterialIdT = Aws::String>
147 ReEncryptResult& WithDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) {
148 SetDestinationKeyMaterialId(std::forward<DestinationKeyMaterialIdT>(value));
149 return *this;
150 }
152
154
155 inline const Aws::String& GetRequestId() const { return m_requestId; }
156 template <typename RequestIdT = Aws::String>
157 void SetRequestId(RequestIdT&& value) {
158 m_requestIdHasBeenSet = true;
159 m_requestId = std::forward<RequestIdT>(value);
160 }
161 template <typename RequestIdT = Aws::String>
162 ReEncryptResult& WithRequestId(RequestIdT&& value) {
163 SetRequestId(std::forward<RequestIdT>(value));
164 return *this;
165 }
167 private:
168 Aws::Utils::ByteBuffer m_ciphertextBlob{};
169
170 Aws::String m_sourceKeyId;
171
172 Aws::String m_keyId;
173
175
176 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm{EncryptionAlgorithmSpec::NOT_SET};
177
178 Aws::String m_sourceKeyMaterialId;
179
180 Aws::String m_destinationKeyMaterialId;
181
182 Aws::String m_requestId;
183 bool m_ciphertextBlobHasBeenSet = false;
184 bool m_sourceKeyIdHasBeenSet = false;
185 bool m_keyIdHasBeenSet = false;
186 bool m_sourceEncryptionAlgorithmHasBeenSet = false;
187 bool m_destinationEncryptionAlgorithmHasBeenSet = false;
188 bool m_sourceKeyMaterialIdHasBeenSet = false;
189 bool m_destinationKeyMaterialIdHasBeenSet = false;
190 bool m_requestIdHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace KMS
195} // namespace Aws
EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
const Aws::String & GetDestinationKeyMaterialId() const
void SetSourceKeyId(SourceKeyIdT &&value)
void SetDestinationKeyMaterialId(DestinationKeyMaterialIdT &&value)
ReEncryptResult & WithRequestId(RequestIdT &&value)
void SetCiphertextBlob(CiphertextBlobT &&value)
AWS_KMS_API ReEncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API ReEncryptResult()=default
ReEncryptResult & WithDestinationKeyMaterialId(DestinationKeyMaterialIdT &&value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetSourceKeyMaterialId() const
ReEncryptResult & WithSourceKeyId(SourceKeyIdT &&value)
AWS_KMS_API ReEncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReEncryptResult & WithCiphertextBlob(CiphertextBlobT &&value)
const Aws::String & GetSourceKeyId() const
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptResult & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value)
ReEncryptResult & WithKeyId(KeyIdT &&value)
EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const
ReEncryptResult & WithSourceKeyMaterialId(SourceKeyMaterialIdT &&value)
ReEncryptResult & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value)
void SetSourceKeyMaterialId(SourceKeyMaterialIdT &&value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue