AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReEncryptDataRequest.h
1
6#pragma once
7#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
8#include <aws/payment-cryptography-data/PaymentCryptographyDataRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/payment-cryptography-data/model/ReEncryptionAttributes.h>
11#include <aws/payment-cryptography-data/model/WrappedKey.h>
12#include <utility>
13
14namespace Aws
15{
16namespace PaymentCryptographyData
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PAYMENTCRYPTOGRAPHYDATA_API ReEncryptDataRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ReEncryptData"; }
33
34 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetIncomingKeyIdentifier() const { return m_incomingKeyIdentifier; }
45 inline bool IncomingKeyIdentifierHasBeenSet() const { return m_incomingKeyIdentifierHasBeenSet; }
46 template<typename IncomingKeyIdentifierT = Aws::String>
47 void SetIncomingKeyIdentifier(IncomingKeyIdentifierT&& value) { m_incomingKeyIdentifierHasBeenSet = true; m_incomingKeyIdentifier = std::forward<IncomingKeyIdentifierT>(value); }
48 template<typename IncomingKeyIdentifierT = Aws::String>
49 ReEncryptDataRequest& WithIncomingKeyIdentifier(IncomingKeyIdentifierT&& value) { SetIncomingKeyIdentifier(std::forward<IncomingKeyIdentifierT>(value)); return *this;}
51
53
57 inline const Aws::String& GetOutgoingKeyIdentifier() const { return m_outgoingKeyIdentifier; }
58 inline bool OutgoingKeyIdentifierHasBeenSet() const { return m_outgoingKeyIdentifierHasBeenSet; }
59 template<typename OutgoingKeyIdentifierT = Aws::String>
60 void SetOutgoingKeyIdentifier(OutgoingKeyIdentifierT&& value) { m_outgoingKeyIdentifierHasBeenSet = true; m_outgoingKeyIdentifier = std::forward<OutgoingKeyIdentifierT>(value); }
61 template<typename OutgoingKeyIdentifierT = Aws::String>
62 ReEncryptDataRequest& WithOutgoingKeyIdentifier(OutgoingKeyIdentifierT&& value) { SetOutgoingKeyIdentifier(std::forward<OutgoingKeyIdentifierT>(value)); return *this;}
64
66
70 inline const Aws::String& GetCipherText() const { return m_cipherText; }
71 inline bool CipherTextHasBeenSet() const { return m_cipherTextHasBeenSet; }
72 template<typename CipherTextT = Aws::String>
73 void SetCipherText(CipherTextT&& value) { m_cipherTextHasBeenSet = true; m_cipherText = std::forward<CipherTextT>(value); }
74 template<typename CipherTextT = Aws::String>
75 ReEncryptDataRequest& WithCipherText(CipherTextT&& value) { SetCipherText(std::forward<CipherTextT>(value)); return *this;}
77
79
82 inline const ReEncryptionAttributes& GetIncomingEncryptionAttributes() const { return m_incomingEncryptionAttributes; }
83 inline bool IncomingEncryptionAttributesHasBeenSet() const { return m_incomingEncryptionAttributesHasBeenSet; }
84 template<typename IncomingEncryptionAttributesT = ReEncryptionAttributes>
85 void SetIncomingEncryptionAttributes(IncomingEncryptionAttributesT&& value) { m_incomingEncryptionAttributesHasBeenSet = true; m_incomingEncryptionAttributes = std::forward<IncomingEncryptionAttributesT>(value); }
86 template<typename IncomingEncryptionAttributesT = ReEncryptionAttributes>
87 ReEncryptDataRequest& WithIncomingEncryptionAttributes(IncomingEncryptionAttributesT&& value) { SetIncomingEncryptionAttributes(std::forward<IncomingEncryptionAttributesT>(value)); return *this;}
89
91
95 inline const ReEncryptionAttributes& GetOutgoingEncryptionAttributes() const { return m_outgoingEncryptionAttributes; }
96 inline bool OutgoingEncryptionAttributesHasBeenSet() const { return m_outgoingEncryptionAttributesHasBeenSet; }
97 template<typename OutgoingEncryptionAttributesT = ReEncryptionAttributes>
98 void SetOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT&& value) { m_outgoingEncryptionAttributesHasBeenSet = true; m_outgoingEncryptionAttributes = std::forward<OutgoingEncryptionAttributesT>(value); }
99 template<typename OutgoingEncryptionAttributesT = ReEncryptionAttributes>
100 ReEncryptDataRequest& WithOutgoingEncryptionAttributes(OutgoingEncryptionAttributesT&& value) { SetOutgoingEncryptionAttributes(std::forward<OutgoingEncryptionAttributesT>(value)); return *this;}
102
104
108 inline const WrappedKey& GetIncomingWrappedKey() const { return m_incomingWrappedKey; }
109 inline bool IncomingWrappedKeyHasBeenSet() const { return m_incomingWrappedKeyHasBeenSet; }
110 template<typename IncomingWrappedKeyT = WrappedKey>
111 void SetIncomingWrappedKey(IncomingWrappedKeyT&& value) { m_incomingWrappedKeyHasBeenSet = true; m_incomingWrappedKey = std::forward<IncomingWrappedKeyT>(value); }
112 template<typename IncomingWrappedKeyT = WrappedKey>
113 ReEncryptDataRequest& WithIncomingWrappedKey(IncomingWrappedKeyT&& value) { SetIncomingWrappedKey(std::forward<IncomingWrappedKeyT>(value)); return *this;}
115
117
121 inline const WrappedKey& GetOutgoingWrappedKey() const { return m_outgoingWrappedKey; }
122 inline bool OutgoingWrappedKeyHasBeenSet() const { return m_outgoingWrappedKeyHasBeenSet; }
123 template<typename OutgoingWrappedKeyT = WrappedKey>
124 void SetOutgoingWrappedKey(OutgoingWrappedKeyT&& value) { m_outgoingWrappedKeyHasBeenSet = true; m_outgoingWrappedKey = std::forward<OutgoingWrappedKeyT>(value); }
125 template<typename OutgoingWrappedKeyT = WrappedKey>
126 ReEncryptDataRequest& WithOutgoingWrappedKey(OutgoingWrappedKeyT&& value) { SetOutgoingWrappedKey(std::forward<OutgoingWrappedKeyT>(value)); return *this;}
128 private:
129
130 Aws::String m_incomingKeyIdentifier;
131 bool m_incomingKeyIdentifierHasBeenSet = false;
132
133 Aws::String m_outgoingKeyIdentifier;
134 bool m_outgoingKeyIdentifierHasBeenSet = false;
135
136 Aws::String m_cipherText;
137 bool m_cipherTextHasBeenSet = false;
138
139 ReEncryptionAttributes m_incomingEncryptionAttributes;
140 bool m_incomingEncryptionAttributesHasBeenSet = false;
141
142 ReEncryptionAttributes m_outgoingEncryptionAttributes;
143 bool m_outgoingEncryptionAttributesHasBeenSet = false;
144
145 WrappedKey m_incomingWrappedKey;
146 bool m_incomingWrappedKeyHasBeenSet = false;
147
148 WrappedKey m_outgoingWrappedKey;
149 bool m_outgoingWrappedKeyHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace PaymentCryptographyData
154} // 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