AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReEncryptResult.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 <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 ReEncryptResult() = default;
35
36
38
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 ReEncryptResult& WithCiphertextBlob(CiphertextBlobT&& value) { SetCiphertextBlob(std::forward<CiphertextBlobT>(value)); return *this;}
48
50
53 inline const Aws::String& GetSourceKeyId() const { return m_sourceKeyId; }
54 template<typename SourceKeyIdT = Aws::String>
55 void SetSourceKeyId(SourceKeyIdT&& value) { m_sourceKeyIdHasBeenSet = true; m_sourceKeyId = std::forward<SourceKeyIdT>(value); }
56 template<typename SourceKeyIdT = Aws::String>
57 ReEncryptResult& WithSourceKeyId(SourceKeyIdT&& value) { SetSourceKeyId(std::forward<SourceKeyIdT>(value)); return *this;}
59
61
66 inline const Aws::String& GetKeyId() const { return m_keyId; }
67 template<typename KeyIdT = Aws::String>
68 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
69 template<typename KeyIdT = Aws::String>
70 ReEncryptResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
72
74
78 inline EncryptionAlgorithmSpec GetSourceEncryptionAlgorithm() const { return m_sourceEncryptionAlgorithm; }
79 inline void SetSourceEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_sourceEncryptionAlgorithmHasBeenSet = true; m_sourceEncryptionAlgorithm = value; }
82
84
87 inline EncryptionAlgorithmSpec GetDestinationEncryptionAlgorithm() const { return m_destinationEncryptionAlgorithm; }
88 inline void SetDestinationEncryptionAlgorithm(EncryptionAlgorithmSpec value) { m_destinationEncryptionAlgorithmHasBeenSet = true; m_destinationEncryptionAlgorithm = value; }
91
93
98 inline const Aws::String& GetSourceKeyMaterialId() const { return m_sourceKeyMaterialId; }
99 template<typename SourceKeyMaterialIdT = Aws::String>
100 void SetSourceKeyMaterialId(SourceKeyMaterialIdT&& value) { m_sourceKeyMaterialIdHasBeenSet = true; m_sourceKeyMaterialId = std::forward<SourceKeyMaterialIdT>(value); }
101 template<typename SourceKeyMaterialIdT = Aws::String>
102 ReEncryptResult& WithSourceKeyMaterialId(SourceKeyMaterialIdT&& value) { SetSourceKeyMaterialId(std::forward<SourceKeyMaterialIdT>(value)); return *this;}
104
106
110 inline const Aws::String& GetDestinationKeyMaterialId() const { return m_destinationKeyMaterialId; }
111 template<typename DestinationKeyMaterialIdT = Aws::String>
112 void SetDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) { m_destinationKeyMaterialIdHasBeenSet = true; m_destinationKeyMaterialId = std::forward<DestinationKeyMaterialIdT>(value); }
113 template<typename DestinationKeyMaterialIdT = Aws::String>
114 ReEncryptResult& WithDestinationKeyMaterialId(DestinationKeyMaterialIdT&& value) { SetDestinationKeyMaterialId(std::forward<DestinationKeyMaterialIdT>(value)); return *this;}
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template<typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
122 template<typename RequestIdT = Aws::String>
123 ReEncryptResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
125 private:
126
127 Aws::Utils::ByteBuffer m_ciphertextBlob{};
128 bool m_ciphertextBlobHasBeenSet = false;
129
130 Aws::String m_sourceKeyId;
131 bool m_sourceKeyIdHasBeenSet = false;
132
133 Aws::String m_keyId;
134 bool m_keyIdHasBeenSet = false;
135
137 bool m_sourceEncryptionAlgorithmHasBeenSet = false;
138
139 EncryptionAlgorithmSpec m_destinationEncryptionAlgorithm{EncryptionAlgorithmSpec::NOT_SET};
140 bool m_destinationEncryptionAlgorithmHasBeenSet = false;
141
142 Aws::String m_sourceKeyMaterialId;
143 bool m_sourceKeyMaterialIdHasBeenSet = false;
144
145 Aws::String m_destinationKeyMaterialId;
146 bool m_destinationKeyMaterialIdHasBeenSet = false;
147
148 Aws::String m_requestId;
149 bool m_requestIdHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace KMS
154} // 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