AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ReEncryptDataRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography-data/PaymentCryptographyDataRequest.h>
9#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
10#include <aws/payment-cryptography-data/model/ReEncryptionAttributes.h>
11#include <aws/payment-cryptography-data/model/WrappedKey.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PaymentCryptographyData {
17namespace Model {
18
22 public:
23 AWS_PAYMENTCRYPTOGRAPHYDATA_API ReEncryptDataRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ReEncryptData"; }
30
31 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
32
34
40 inline const Aws::String& GetIncomingKeyIdentifier() const { return m_incomingKeyIdentifier; }
41 inline bool IncomingKeyIdentifierHasBeenSet() const { return m_incomingKeyIdentifierHasBeenSet; }
42 template <typename IncomingKeyIdentifierT = Aws::String>
43 void SetIncomingKeyIdentifier(IncomingKeyIdentifierT&& value) {
44 m_incomingKeyIdentifierHasBeenSet = true;
45 m_incomingKeyIdentifier = std::forward<IncomingKeyIdentifierT>(value);
46 }
47 template <typename IncomingKeyIdentifierT = Aws::String>
48 ReEncryptDataRequest& WithIncomingKeyIdentifier(IncomingKeyIdentifierT&& value) {
49 SetIncomingKeyIdentifier(std::forward<IncomingKeyIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetOutgoingKeyIdentifier() const { return m_outgoingKeyIdentifier; }
60 inline bool OutgoingKeyIdentifierHasBeenSet() const { return m_outgoingKeyIdentifierHasBeenSet; }
61 template <typename OutgoingKeyIdentifierT = Aws::String>
62 void SetOutgoingKeyIdentifier(OutgoingKeyIdentifierT&& value) {
63 m_outgoingKeyIdentifierHasBeenSet = true;
64 m_outgoingKeyIdentifier = std::forward<OutgoingKeyIdentifierT>(value);
65 }
66 template <typename OutgoingKeyIdentifierT = Aws::String>
67 ReEncryptDataRequest& WithOutgoingKeyIdentifier(OutgoingKeyIdentifierT&& value) {
68 SetOutgoingKeyIdentifier(std::forward<OutgoingKeyIdentifierT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetCipherText() const { return m_cipherText; }
79 inline bool CipherTextHasBeenSet() const { return m_cipherTextHasBeenSet; }
80 template <typename CipherTextT = Aws::String>
81 void SetCipherText(CipherTextT&& value) {
82 m_cipherTextHasBeenSet = true;
83 m_cipherText = std::forward<CipherTextT>(value);
84 }
85 template <typename CipherTextT = Aws::String>
86 ReEncryptDataRequest& WithCipherText(CipherTextT&& value) {
87 SetCipherText(std::forward<CipherTextT>(value));
88 return *this;
89 }
91
93
96 inline const ReEncryptionAttributes& GetIncomingEncryptionAttributes() const { return m_incomingEncryptionAttributes; }
97 inline bool IncomingEncryptionAttributesHasBeenSet() const { return m_incomingEncryptionAttributesHasBeenSet; }
98 template <typename IncomingEncryptionAttributesT = ReEncryptionAttributes>
99 void SetIncomingEncryptionAttributes(IncomingEncryptionAttributesT&& value) {
100 m_incomingEncryptionAttributesHasBeenSet = true;
101 m_incomingEncryptionAttributes = std::forward<IncomingEncryptionAttributesT>(value);
102 }
103 template <typename IncomingEncryptionAttributesT = ReEncryptionAttributes>
104 ReEncryptDataRequest& WithIncomingEncryptionAttributes(IncomingEncryptionAttributesT&& value) {
105 SetIncomingEncryptionAttributes(std::forward<IncomingEncryptionAttributesT>(value));
106 return *this;
107 }
109
111
115 inline const ReEncryptionAttributes& GetOutgoingEncryptionAttributes() const { return m_outgoingEncryptionAttributes; }
116 inline bool OutgoingEncryptionAttributesHasBeenSet() const { return m_outgoingEncryptionAttributesHasBeenSet; }
117 template <typename OutgoingEncryptionAttributesT = ReEncryptionAttributes>
118 void SetOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT&& value) {
119 m_outgoingEncryptionAttributesHasBeenSet = true;
120 m_outgoingEncryptionAttributes = std::forward<OutgoingEncryptionAttributesT>(value);
121 }
122 template <typename OutgoingEncryptionAttributesT = ReEncryptionAttributes>
123 ReEncryptDataRequest& WithOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT&& value) {
124 SetOutgoingEncryptionAttributes(std::forward<OutgoingEncryptionAttributesT>(value));
125 return *this;
126 }
128
130
134 inline const WrappedKey& GetIncomingWrappedKey() const { return m_incomingWrappedKey; }
135 inline bool IncomingWrappedKeyHasBeenSet() const { return m_incomingWrappedKeyHasBeenSet; }
136 template <typename IncomingWrappedKeyT = WrappedKey>
137 void SetIncomingWrappedKey(IncomingWrappedKeyT&& value) {
138 m_incomingWrappedKeyHasBeenSet = true;
139 m_incomingWrappedKey = std::forward<IncomingWrappedKeyT>(value);
140 }
141 template <typename IncomingWrappedKeyT = WrappedKey>
142 ReEncryptDataRequest& WithIncomingWrappedKey(IncomingWrappedKeyT&& value) {
143 SetIncomingWrappedKey(std::forward<IncomingWrappedKeyT>(value));
144 return *this;
145 }
147
149
153 inline const WrappedKey& GetOutgoingWrappedKey() const { return m_outgoingWrappedKey; }
154 inline bool OutgoingWrappedKeyHasBeenSet() const { return m_outgoingWrappedKeyHasBeenSet; }
155 template <typename OutgoingWrappedKeyT = WrappedKey>
156 void SetOutgoingWrappedKey(OutgoingWrappedKeyT&& value) {
157 m_outgoingWrappedKeyHasBeenSet = true;
158 m_outgoingWrappedKey = std::forward<OutgoingWrappedKeyT>(value);
159 }
160 template <typename OutgoingWrappedKeyT = WrappedKey>
161 ReEncryptDataRequest& WithOutgoingWrappedKey(OutgoingWrappedKeyT&& value) {
162 SetOutgoingWrappedKey(std::forward<OutgoingWrappedKeyT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_incomingKeyIdentifier;
168
169 Aws::String m_outgoingKeyIdentifier;
170
171 Aws::String m_cipherText;
172
173 ReEncryptionAttributes m_incomingEncryptionAttributes;
174
175 ReEncryptionAttributes m_outgoingEncryptionAttributes;
176
177 WrappedKey m_incomingWrappedKey;
178
179 WrappedKey m_outgoingWrappedKey;
180 bool m_incomingKeyIdentifierHasBeenSet = false;
181 bool m_outgoingKeyIdentifierHasBeenSet = false;
182 bool m_cipherTextHasBeenSet = false;
183 bool m_incomingEncryptionAttributesHasBeenSet = false;
184 bool m_outgoingEncryptionAttributesHasBeenSet = false;
185 bool m_incomingWrappedKeyHasBeenSet = false;
186 bool m_outgoingWrappedKeyHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace PaymentCryptographyData
191} // namespace Aws
void SetOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT &&value)
const ReEncryptionAttributes & GetOutgoingEncryptionAttributes() const
ReEncryptDataRequest & WithOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT &&value)
ReEncryptDataRequest & WithIncomingEncryptionAttributes(IncomingEncryptionAttributesT &&value)
void SetOutgoingKeyIdentifier(OutgoingKeyIdentifierT &&value)
void SetIncomingEncryptionAttributes(IncomingEncryptionAttributesT &&value)
ReEncryptDataRequest & WithOutgoingKeyIdentifier(OutgoingKeyIdentifierT &&value)
ReEncryptDataRequest & WithIncomingKeyIdentifier(IncomingKeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API ReEncryptDataRequest()=default
ReEncryptDataRequest & WithIncomingWrappedKey(IncomingWrappedKeyT &&value)
const ReEncryptionAttributes & GetIncomingEncryptionAttributes() const
void SetIncomingKeyIdentifier(IncomingKeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ReEncryptDataRequest & WithOutgoingWrappedKey(OutgoingWrappedKeyT &&value)
ReEncryptDataRequest & WithCipherText(CipherTextT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String