AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetKeyIdentifier(const Aws::String& value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier = value; }
48 inline void SetKeyIdentifier(Aws::String&& value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier = std::move(value); }
49 inline void SetKeyIdentifier(const char* value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier.assign(value); }
50 inline EncryptDataRequest& WithKeyIdentifier(const Aws::String& value) { SetKeyIdentifier(value); return *this;}
51 inline EncryptDataRequest& WithKeyIdentifier(Aws::String&& value) { SetKeyIdentifier(std::move(value)); return *this;}
52 inline EncryptDataRequest& WithKeyIdentifier(const char* value) { SetKeyIdentifier(value); return *this;}
54
56
65 inline const Aws::String& GetPlainText() const{ return m_plainText; }
66 inline bool PlainTextHasBeenSet() const { return m_plainTextHasBeenSet; }
67 inline void SetPlainText(const Aws::String& value) { m_plainTextHasBeenSet = true; m_plainText = value; }
68 inline void SetPlainText(Aws::String&& value) { m_plainTextHasBeenSet = true; m_plainText = std::move(value); }
69 inline void SetPlainText(const char* value) { m_plainTextHasBeenSet = true; m_plainText.assign(value); }
70 inline EncryptDataRequest& WithPlainText(const Aws::String& value) { SetPlainText(value); return *this;}
71 inline EncryptDataRequest& WithPlainText(Aws::String&& value) { SetPlainText(std::move(value)); return *this;}
72 inline EncryptDataRequest& WithPlainText(const char* value) { SetPlainText(value); return *this;}
74
76
79 inline const EncryptionDecryptionAttributes& GetEncryptionAttributes() const{ return m_encryptionAttributes; }
80 inline bool EncryptionAttributesHasBeenSet() const { return m_encryptionAttributesHasBeenSet; }
81 inline void SetEncryptionAttributes(const EncryptionDecryptionAttributes& value) { m_encryptionAttributesHasBeenSet = true; m_encryptionAttributes = value; }
82 inline void SetEncryptionAttributes(EncryptionDecryptionAttributes&& value) { m_encryptionAttributesHasBeenSet = true; m_encryptionAttributes = std::move(value); }
86
88
92 inline const WrappedKey& GetWrappedKey() const{ return m_wrappedKey; }
93 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
94 inline void SetWrappedKey(const WrappedKey& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = value; }
95 inline void SetWrappedKey(WrappedKey&& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = std::move(value); }
96 inline EncryptDataRequest& WithWrappedKey(const WrappedKey& value) { SetWrappedKey(value); return *this;}
97 inline EncryptDataRequest& WithWrappedKey(WrappedKey&& value) { SetWrappedKey(std::move(value)); return *this;}
99 private:
100
101 Aws::String m_keyIdentifier;
102 bool m_keyIdentifierHasBeenSet = false;
103
104 Aws::String m_plainText;
105 bool m_plainTextHasBeenSet = false;
106
107 EncryptionDecryptionAttributes m_encryptionAttributes;
108 bool m_encryptionAttributesHasBeenSet = false;
109
110 WrappedKey m_wrappedKey;
111 bool m_wrappedKeyHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace PaymentCryptographyData
116} // namespace Aws
const EncryptionDecryptionAttributes & GetEncryptionAttributes() const
EncryptDataRequest & WithWrappedKey(const WrappedKey &value)
EncryptDataRequest & WithKeyIdentifier(const char *value)
EncryptDataRequest & WithKeyIdentifier(const Aws::String &value)
EncryptDataRequest & WithPlainText(const char *value)
EncryptDataRequest & WithKeyIdentifier(Aws::String &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
void SetEncryptionAttributes(EncryptionDecryptionAttributes &&value)
EncryptDataRequest & WithEncryptionAttributes(const EncryptionDecryptionAttributes &value)
EncryptDataRequest & WithPlainText(const Aws::String &value)
EncryptDataRequest & WithWrappedKey(WrappedKey &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API EncryptDataRequest()
EncryptDataRequest & WithPlainText(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetEncryptionAttributes(const EncryptionDecryptionAttributes &value)
EncryptDataRequest & WithEncryptionAttributes(EncryptionDecryptionAttributes &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String