AWS SDK for C++  1.8.126
AWS SDK for C++
ReEncryptResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/kms/KMS_EXPORTS.h>
8 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace KMS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Utils::ByteBuffer& GetCiphertextBlob() const{ return m_ciphertextBlob; }
42 
47  inline void SetCiphertextBlob(const Aws::Utils::ByteBuffer& value) { m_ciphertextBlob = value; }
48 
53  inline void SetCiphertextBlob(Aws::Utils::ByteBuffer&& value) { m_ciphertextBlob = std::move(value); }
54 
59  inline ReEncryptResult& WithCiphertextBlob(const Aws::Utils::ByteBuffer& value) { SetCiphertextBlob(value); return *this;}
60 
65  inline ReEncryptResult& WithCiphertextBlob(Aws::Utils::ByteBuffer&& value) { SetCiphertextBlob(std::move(value)); return *this;}
66 
67 
71  inline const Aws::String& GetSourceKeyId() const{ return m_sourceKeyId; }
72 
76  inline void SetSourceKeyId(const Aws::String& value) { m_sourceKeyId = value; }
77 
81  inline void SetSourceKeyId(Aws::String&& value) { m_sourceKeyId = std::move(value); }
82 
86  inline void SetSourceKeyId(const char* value) { m_sourceKeyId.assign(value); }
87 
91  inline ReEncryptResult& WithSourceKeyId(const Aws::String& value) { SetSourceKeyId(value); return *this;}
92 
96  inline ReEncryptResult& WithSourceKeyId(Aws::String&& value) { SetSourceKeyId(std::move(value)); return *this;}
97 
101  inline ReEncryptResult& WithSourceKeyId(const char* value) { SetSourceKeyId(value); return *this;}
102 
103 
109  inline const Aws::String& GetKeyId() const{ return m_keyId; }
110 
116  inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
117 
123  inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
124 
130  inline void SetKeyId(const char* value) { m_keyId.assign(value); }
131 
137  inline ReEncryptResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
138 
144  inline ReEncryptResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
145 
151  inline ReEncryptResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
152 
153 
158  inline const EncryptionAlgorithmSpec& GetSourceEncryptionAlgorithm() const{ return m_sourceEncryptionAlgorithm; }
159 
164  inline void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_sourceEncryptionAlgorithm = value; }
165 
170  inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_sourceEncryptionAlgorithm = std::move(value); }
171 
176  inline ReEncryptResult& WithSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { SetSourceEncryptionAlgorithm(value); return *this;}
177 
182  inline ReEncryptResult& WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetSourceEncryptionAlgorithm(std::move(value)); return *this;}
183 
184 
188  inline const EncryptionAlgorithmSpec& GetDestinationEncryptionAlgorithm() const{ return m_destinationEncryptionAlgorithm; }
189 
193  inline void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { m_destinationEncryptionAlgorithm = value; }
194 
198  inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { m_destinationEncryptionAlgorithm = std::move(value); }
199 
203  inline ReEncryptResult& WithDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec& value) { SetDestinationEncryptionAlgorithm(value); return *this;}
204 
208  inline ReEncryptResult& WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec&& value) { SetDestinationEncryptionAlgorithm(std::move(value)); return *this;}
209 
210  private:
211 
212  Aws::Utils::ByteBuffer m_ciphertextBlob;
213 
214  Aws::String m_sourceKeyId;
215 
216  Aws::String m_keyId;
217 
218  EncryptionAlgorithmSpec m_sourceEncryptionAlgorithm;
219 
220  EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm;
221  };
222 
223 } // namespace Model
224 } // namespace KMS
225 } // namespace Aws
Aws::KMS::Model::ReEncryptResult::WithCiphertextBlob
ReEncryptResult & WithCiphertextBlob(const Aws::Utils::ByteBuffer &value)
Definition: ReEncryptResult.h:59
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::KMS::Model::ReEncryptResult::SetKeyId
void SetKeyId(Aws::String &&value)
Definition: ReEncryptResult.h:123
Aws::KMS::Model::ReEncryptResult::SetDestinationEncryptionAlgorithm
void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
Definition: ReEncryptResult.h:198
Aws::KMS::Model::ReEncryptResult::GetSourceKeyId
const Aws::String & GetSourceKeyId() const
Definition: ReEncryptResult.h:71
Aws::KMS::Model::ReEncryptResult::WithKeyId
ReEncryptResult & WithKeyId(const Aws::String &value)
Definition: ReEncryptResult.h:137
Aws::KMS::Model::ReEncryptResult::GetSourceEncryptionAlgorithm
const EncryptionAlgorithmSpec & GetSourceEncryptionAlgorithm() const
Definition: ReEncryptResult.h:158
Aws::KMS::Model::ReEncryptResult::SetSourceEncryptionAlgorithm
void SetSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
Definition: ReEncryptResult.h:164
Aws::KMS::Model::ReEncryptResult::WithKeyId
ReEncryptResult & WithKeyId(const char *value)
Definition: ReEncryptResult.h:151
Aws::KMS::Model::EncryptionAlgorithmSpec
EncryptionAlgorithmSpec
Definition: EncryptionAlgorithmSpec.h:17
Aws::KMS::Model::ReEncryptResult::WithSourceEncryptionAlgorithm
ReEncryptResult & WithSourceEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
Definition: ReEncryptResult.h:176
Aws::KMS::Model::ReEncryptResult::WithSourceKeyId
ReEncryptResult & WithSourceKeyId(const char *value)
Definition: ReEncryptResult.h:101
Aws::KMS::Model::ReEncryptResult::WithSourceEncryptionAlgorithm
ReEncryptResult & WithSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
Definition: ReEncryptResult.h:182
Aws::KMS::Model::ReEncryptResult::SetSourceKeyId
void SetSourceKeyId(const char *value)
Definition: ReEncryptResult.h:86
EncryptionAlgorithmSpec.h
Aws::KMS::Model::ReEncryptResult::WithCiphertextBlob
ReEncryptResult & WithCiphertextBlob(Aws::Utils::ByteBuffer &&value)
Definition: ReEncryptResult.h:65
Aws::KMS::Model::ReEncryptResult::SetSourceKeyId
void SetSourceKeyId(Aws::String &&value)
Definition: ReEncryptResult.h:81
Aws::KMS::Model::ReEncryptResult::WithDestinationEncryptionAlgorithm
ReEncryptResult & WithDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
Definition: ReEncryptResult.h:208
Aws::KMS::Model::ReEncryptResult::ReEncryptResult
ReEncryptResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:28
Aws::KMS::Model::ReEncryptResult::GetKeyId
const Aws::String & GetKeyId() const
Definition: ReEncryptResult.h:109
Aws::KMS::Model::ReEncryptResult::SetCiphertextBlob
void SetCiphertextBlob(const Aws::Utils::ByteBuffer &value)
Definition: ReEncryptResult.h:47
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::KMS::Model::ReEncryptResult::SetDestinationEncryptionAlgorithm
void SetDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
Definition: ReEncryptResult.h:193
Aws::KMS::Model::ReEncryptResult::SetKeyId
void SetKeyId(const char *value)
Definition: ReEncryptResult.h:130
Aws::KMS::Model::ReEncryptResult::WithSourceKeyId
ReEncryptResult & WithSourceKeyId(Aws::String &&value)
Definition: ReEncryptResult.h:96
Aws::KMS::Model::ReEncryptResult::GetDestinationEncryptionAlgorithm
const EncryptionAlgorithmSpec & GetDestinationEncryptionAlgorithm() const
Definition: ReEncryptResult.h:188
Aws::CodePipeline::Model::EncryptionKeyType::NOT_SET
@ NOT_SET
Aws::KMS::Model::ReEncryptResult::GetCiphertextBlob
const Aws::Utils::ByteBuffer & GetCiphertextBlob() const
Definition: ReEncryptResult.h:41
Aws::KMS::Model::ReEncryptResult
Definition: ReEncryptResult.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::KMS::Model::ReEncryptResult::SetCiphertextBlob
void SetCiphertextBlob(Aws::Utils::ByteBuffer &&value)
Definition: ReEncryptResult.h:53
Aws::KMS::Model::ReEncryptResult::WithSourceKeyId
ReEncryptResult & WithSourceKeyId(const Aws::String &value)
Definition: ReEncryptResult.h:91
Array.h
KMS_EXPORTS.h
Aws::KMS::Model::ReEncryptResult::SetSourceEncryptionAlgorithm
void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec &&value)
Definition: ReEncryptResult.h:170
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::KMS::Model::ReEncryptResult::ReEncryptResult
ReEncryptResult()
Aws::KMS::Model::ReEncryptResult::operator=
ReEncryptResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::KMS::Model::ReEncryptResult::WithKeyId
ReEncryptResult & WithKeyId(Aws::String &&value)
Definition: ReEncryptResult.h:144
Aws::KMS::Model::ReEncryptResult::SetSourceKeyId
void SetSourceKeyId(const Aws::String &value)
Definition: ReEncryptResult.h:76
Aws::KMS::Model::ReEncryptResult::SetKeyId
void SetKeyId(const Aws::String &value)
Definition: ReEncryptResult.h:116
Aws::KMS::Model::ReEncryptResult::WithDestinationEncryptionAlgorithm
ReEncryptResult & WithDestinationEncryptionAlgorithm(const EncryptionAlgorithmSpec &value)
Definition: ReEncryptResult.h:203