AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EncryptDataRequest.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/EncryptionDecryptionAttributes.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 EncryptDataRequest() = 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 "EncryptData"; }
30
31 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
32
34
41 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
42 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
43 template <typename KeyIdentifierT = Aws::String>
44 void SetKeyIdentifier(KeyIdentifierT&& value) {
45 m_keyIdentifierHasBeenSet = true;
46 m_keyIdentifier = std::forward<KeyIdentifierT>(value);
47 }
48 template <typename KeyIdentifierT = Aws::String>
49 EncryptDataRequest& WithKeyIdentifier(KeyIdentifierT&& value) {
50 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
51 return *this;
52 }
54
56
65 inline const Aws::String& GetPlainText() const { return m_plainText; }
66 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
67 template <typename PlainTextT = Aws::String>
68 void SetPlainText(PlainTextT&& value) {
69 m_plainTextHasBeenSet = true;
70 m_plainText = std::forward<PlainTextT>(value);
71 }
72 template <typename PlainTextT = Aws::String>
73 EncryptDataRequest& WithPlainText(PlainTextT&& value) {
74 SetPlainText(std::forward<PlainTextT>(value));
75 return *this;
76 }
78
80
83 inline const EncryptionDecryptionAttributes& GetEncryptionAttributes() const { return m_encryptionAttributes; }
84 inline bool EncryptionAttributesHasBeenSet() const { return m_encryptionAttributesHasBeenSet; }
85 template <typename EncryptionAttributesT = EncryptionDecryptionAttributes>
86 void SetEncryptionAttributes(EncryptionAttributesT&& value) {
87 m_encryptionAttributesHasBeenSet = true;
88 m_encryptionAttributes = std::forward<EncryptionAttributesT>(value);
89 }
90 template <typename EncryptionAttributesT = EncryptionDecryptionAttributes>
91 EncryptDataRequest& WithEncryptionAttributes(EncryptionAttributesT&& value) {
92 SetEncryptionAttributes(std::forward<EncryptionAttributesT>(value));
93 return *this;
94 }
96
98
102 inline const WrappedKey& GetWrappedKey() const { return m_wrappedKey; }
103 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
104 template <typename WrappedKeyT = WrappedKey>
105 void SetWrappedKey(WrappedKeyT&& value) {
106 m_wrappedKeyHasBeenSet = true;
107 m_wrappedKey = std::forward<WrappedKeyT>(value);
108 }
109 template <typename WrappedKeyT = WrappedKey>
110 EncryptDataRequest& WithWrappedKey(WrappedKeyT&& value) {
111 SetWrappedKey(std::forward<WrappedKeyT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_keyIdentifier;
117
118 Aws::String m_plainText;
119
120 EncryptionDecryptionAttributes m_encryptionAttributes;
121
122 WrappedKey m_wrappedKey;
123 bool m_keyIdentifierHasBeenSet = false;
124 bool m_plainTextHasBeenSet = false;
125 bool m_encryptionAttributesHasBeenSet = false;
126 bool m_wrappedKeyHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace PaymentCryptographyData
131} // namespace Aws
void SetEncryptionAttributes(EncryptionAttributesT &&value)
const EncryptionDecryptionAttributes & GetEncryptionAttributes() const
EncryptDataRequest & WithEncryptionAttributes(EncryptionAttributesT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
EncryptDataRequest & WithWrappedKey(WrappedKeyT &&value)
EncryptDataRequest & WithKeyIdentifier(KeyIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
AWS_PAYMENTCRYPTOGRAPHYDATA_API EncryptDataRequest()=default
EncryptDataRequest & WithPlainText(PlainTextT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String