AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DecryptDataRequest.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 DecryptDataRequest() = 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 "DecryptData"; }
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 DecryptDataRequest& WithKeyIdentifier(KeyIdentifierT&& value) {
50 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCipherText() const { return m_cipherText; }
60 inline bool CipherTextHasBeenSet() const { return m_cipherTextHasBeenSet; }
61 template <typename CipherTextT = Aws::String>
62 void SetCipherText(CipherTextT&& value) {
63 m_cipherTextHasBeenSet = true;
64 m_cipherText = std::forward<CipherTextT>(value);
65 }
66 template <typename CipherTextT = Aws::String>
67 DecryptDataRequest& WithCipherText(CipherTextT&& value) {
68 SetCipherText(std::forward<CipherTextT>(value));
69 return *this;
70 }
72
74
77 inline const EncryptionDecryptionAttributes& GetDecryptionAttributes() const { return m_decryptionAttributes; }
78 inline bool DecryptionAttributesHasBeenSet() const { return m_decryptionAttributesHasBeenSet; }
79 template <typename DecryptionAttributesT = EncryptionDecryptionAttributes>
80 void SetDecryptionAttributes(DecryptionAttributesT&& value) {
81 m_decryptionAttributesHasBeenSet = true;
82 m_decryptionAttributes = std::forward<DecryptionAttributesT>(value);
83 }
84 template <typename DecryptionAttributesT = EncryptionDecryptionAttributes>
85 DecryptDataRequest& WithDecryptionAttributes(DecryptionAttributesT&& value) {
86 SetDecryptionAttributes(std::forward<DecryptionAttributesT>(value));
87 return *this;
88 }
90
92
96 inline const WrappedKey& GetWrappedKey() const { return m_wrappedKey; }
97 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
98 template <typename WrappedKeyT = WrappedKey>
99 void SetWrappedKey(WrappedKeyT&& value) {
100 m_wrappedKeyHasBeenSet = true;
101 m_wrappedKey = std::forward<WrappedKeyT>(value);
102 }
103 template <typename WrappedKeyT = WrappedKey>
104 DecryptDataRequest& WithWrappedKey(WrappedKeyT&& value) {
105 SetWrappedKey(std::forward<WrappedKeyT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_keyIdentifier;
111
112 Aws::String m_cipherText;
113
114 EncryptionDecryptionAttributes m_decryptionAttributes;
115
116 WrappedKey m_wrappedKey;
117 bool m_keyIdentifierHasBeenSet = false;
118 bool m_cipherTextHasBeenSet = false;
119 bool m_decryptionAttributesHasBeenSet = false;
120 bool m_wrappedKeyHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace PaymentCryptographyData
125} // namespace Aws
DecryptDataRequest & WithKeyIdentifier(KeyIdentifierT &&value)
DecryptDataRequest & WithDecryptionAttributes(DecryptionAttributesT &&value)
const EncryptionDecryptionAttributes & GetDecryptionAttributes() const
DecryptDataRequest & WithCipherText(CipherTextT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
void SetDecryptionAttributes(DecryptionAttributesT &&value)
DecryptDataRequest & WithWrappedKey(WrappedKeyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_PAYMENTCRYPTOGRAPHYDATA_API DecryptDataRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String