AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EncryptDataRequest.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/EncryptionDecryptionAttributes.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 EncryptDataRequest() = 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 "EncryptData"; }
33
34 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
46 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
47 template<typename KeyIdentifierT = Aws::String>
48 void SetKeyIdentifier(KeyIdentifierT&& value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier = std::forward<KeyIdentifierT>(value); }
49 template<typename KeyIdentifierT = Aws::String>
50 EncryptDataRequest& WithKeyIdentifier(KeyIdentifierT&& value) { SetKeyIdentifier(std::forward<KeyIdentifierT>(value)); return *this;}
52
54
63 inline const Aws::String& GetPlainText() const { return m_plainText; }
64 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
65 template<typename PlainTextT = Aws::String>
66 void SetPlainText(PlainTextT&& value) { m_plainTextHasBeenSet = true; m_plainText = std::forward<PlainTextT>(value); }
67 template<typename PlainTextT = Aws::String>
68 EncryptDataRequest& WithPlainText(PlainTextT&& value) { SetPlainText(std::forward<PlainTextT>(value)); return *this;}
70
72
75 inline const EncryptionDecryptionAttributes& GetEncryptionAttributes() const { return m_encryptionAttributes; }
76 inline bool EncryptionAttributesHasBeenSet() const { return m_encryptionAttributesHasBeenSet; }
77 template<typename EncryptionAttributesT = EncryptionDecryptionAttributes>
78 void SetEncryptionAttributes(EncryptionAttributesT&& value) { m_encryptionAttributesHasBeenSet = true; m_encryptionAttributes = std::forward<EncryptionAttributesT>(value); }
79 template<typename EncryptionAttributesT = EncryptionDecryptionAttributes>
80 EncryptDataRequest& WithEncryptionAttributes(EncryptionAttributesT&& value) { SetEncryptionAttributes(std::forward<EncryptionAttributesT>(value)); return *this;}
82
84
88 inline const WrappedKey& GetWrappedKey() const { return m_wrappedKey; }
89 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
90 template<typename WrappedKeyT = WrappedKey>
91 void SetWrappedKey(WrappedKeyT&& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = std::forward<WrappedKeyT>(value); }
92 template<typename WrappedKeyT = WrappedKey>
93 EncryptDataRequest& WithWrappedKey(WrappedKeyT&& value) { SetWrappedKey(std::forward<WrappedKeyT>(value)); return *this;}
95 private:
96
97 Aws::String m_keyIdentifier;
98 bool m_keyIdentifierHasBeenSet = false;
99
100 Aws::String m_plainText;
101 bool m_plainTextHasBeenSet = false;
102
103 EncryptionDecryptionAttributes m_encryptionAttributes;
104 bool m_encryptionAttributesHasBeenSet = false;
105
106 WrappedKey m_wrappedKey;
107 bool m_wrappedKeyHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace PaymentCryptographyData
112} // 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