AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = 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 "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 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 DecryptDataRequest& WithKeyIdentifier(KeyIdentifierT&& value) { SetKeyIdentifier(std::forward<KeyIdentifierT>(value)); return *this;}
52
54
57 inline const Aws::String& GetCipherText() const { return m_cipherText; }
58 inline bool CipherTextHasBeenSet() const { return m_cipherTextHasBeenSet; }
59 template<typename CipherTextT = Aws::String>
60 void SetCipherText(CipherTextT&& value) { m_cipherTextHasBeenSet = true; m_cipherText = std::forward<CipherTextT>(value); }
61 template<typename CipherTextT = Aws::String>
62 DecryptDataRequest& WithCipherText(CipherTextT&& value) { SetCipherText(std::forward<CipherTextT>(value)); return *this;}
64
66
69 inline const EncryptionDecryptionAttributes& GetDecryptionAttributes() const { return m_decryptionAttributes; }
70 inline bool DecryptionAttributesHasBeenSet() const { return m_decryptionAttributesHasBeenSet; }
71 template<typename DecryptionAttributesT = EncryptionDecryptionAttributes>
72 void SetDecryptionAttributes(DecryptionAttributesT&& value) { m_decryptionAttributesHasBeenSet = true; m_decryptionAttributes = std::forward<DecryptionAttributesT>(value); }
73 template<typename DecryptionAttributesT = EncryptionDecryptionAttributes>
74 DecryptDataRequest& WithDecryptionAttributes(DecryptionAttributesT&& value) { SetDecryptionAttributes(std::forward<DecryptionAttributesT>(value)); return *this;}
76
78
82 inline const WrappedKey& GetWrappedKey() const { return m_wrappedKey; }
83 inline bool WrappedKeyHasBeenSet() const { return m_wrappedKeyHasBeenSet; }
84 template<typename WrappedKeyT = WrappedKey>
85 void SetWrappedKey(WrappedKeyT&& value) { m_wrappedKeyHasBeenSet = true; m_wrappedKey = std::forward<WrappedKeyT>(value); }
86 template<typename WrappedKeyT = WrappedKey>
87 DecryptDataRequest& WithWrappedKey(WrappedKeyT&& value) { SetWrappedKey(std::forward<WrappedKeyT>(value)); return *this;}
89 private:
90
91 Aws::String m_keyIdentifier;
92 bool m_keyIdentifierHasBeenSet = false;
93
94 Aws::String m_cipherText;
95 bool m_cipherTextHasBeenSet = false;
96
97 EncryptionDecryptionAttributes m_decryptionAttributes;
98 bool m_decryptionAttributesHasBeenSet = false;
99
100 WrappedKey m_wrappedKey;
101 bool m_wrappedKeyHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace PaymentCryptographyData
106} // 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