AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DecryptDataRequest.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 DecryptDataRequest();
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 "DecryptData"; }
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 DecryptDataRequest& WithKeyIdentifier(const Aws::String& value) { SetKeyIdentifier(value); return *this;}
51 inline DecryptDataRequest& WithKeyIdentifier(Aws::String&& value) { SetKeyIdentifier(std::move(value)); return *this;}
52 inline DecryptDataRequest& WithKeyIdentifier(const char* value) { SetKeyIdentifier(value); return *this;}
54
56
59 inline const Aws::String& GetCipherText() const{ return m_cipherText; }
60 inline bool CipherTextHasBeenSet() const { return m_cipherTextHasBeenSet; }
61 inline void SetCipherText(const Aws::String& value) { m_cipherTextHasBeenSet = true; m_cipherText = value; }
62 inline void SetCipherText(Aws::String&& value) { m_cipherTextHasBeenSet = true; m_cipherText = std::move(value); }
63 inline void SetCipherText(const char* value) { m_cipherTextHasBeenSet = true; m_cipherText.assign(value); }
64 inline DecryptDataRequest& WithCipherText(const Aws::String& value) { SetCipherText(value); return *this;}
65 inline DecryptDataRequest& WithCipherText(Aws::String&& value) { SetCipherText(std::move(value)); return *this;}
66 inline DecryptDataRequest& WithCipherText(const char* value) { SetCipherText(value); return *this;}
68
70
73 inline const EncryptionDecryptionAttributes& GetDecryptionAttributes() const{ return m_decryptionAttributes; }
74 inline bool DecryptionAttributesHasBeenSet() const { return m_decryptionAttributesHasBeenSet; }
75 inline void SetDecryptionAttributes(const EncryptionDecryptionAttributes& value) { m_decryptionAttributesHasBeenSet = true; m_decryptionAttributes = value; }
76 inline void SetDecryptionAttributes(EncryptionDecryptionAttributes&& value) { m_decryptionAttributesHasBeenSet = true; m_decryptionAttributes = std::move(value); }
80
82
86 inline const WrappedKey& GetWrappedKey() const{ return m_wrappedKey; }
87 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
88 inline void SetWrappedKey(const WrappedKey& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = value; }
89 inline void SetWrappedKey(WrappedKey&& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = std::move(value); }
90 inline DecryptDataRequest& WithWrappedKey(const WrappedKey& value) { SetWrappedKey(value); return *this;}
91 inline DecryptDataRequest& WithWrappedKey(WrappedKey&& value) { SetWrappedKey(std::move(value)); return *this;}
93 private:
94
95 Aws::String m_keyIdentifier;
96 bool m_keyIdentifierHasBeenSet = false;
97
98 Aws::String m_cipherText;
99 bool m_cipherTextHasBeenSet = false;
100
101 EncryptionDecryptionAttributes m_decryptionAttributes;
102 bool m_decryptionAttributesHasBeenSet = false;
103
104 WrappedKey m_wrappedKey;
105 bool m_wrappedKeyHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace PaymentCryptographyData
110} // namespace Aws
DecryptDataRequest & WithWrappedKey(const WrappedKey &value)
DecryptDataRequest & WithKeyIdentifier(const Aws::String &value)
DecryptDataRequest & WithKeyIdentifier(const char *value)
void SetDecryptionAttributes(EncryptionDecryptionAttributes &&value)
DecryptDataRequest & WithCipherText(const Aws::String &value)
void SetDecryptionAttributes(const EncryptionDecryptionAttributes &value)
DecryptDataRequest & WithDecryptionAttributes(EncryptionDecryptionAttributes &&value)
DecryptDataRequest & WithDecryptionAttributes(const EncryptionDecryptionAttributes &value)
DecryptDataRequest & WithCipherText(Aws::String &&value)
DecryptDataRequest & WithKeyIdentifier(Aws::String &&value)
const EncryptionDecryptionAttributes & GetDecryptionAttributes() const
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
DecryptDataRequest & WithWrappedKey(WrappedKey &&value)
DecryptDataRequest & WithCipherText(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_PAYMENTCRYPTOGRAPHYDATA_API DecryptDataRequest()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String