AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
VerifyMacRequest.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/MacAttributes.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PaymentCryptographyData {
16namespace Model {
17
21 public:
22 AWS_PAYMENTCRYPTOGRAPHYDATA_API VerifyMacRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "VerifyMac"; }
29
30 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
38 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
39 template <typename KeyIdentifierT = Aws::String>
40 void SetKeyIdentifier(KeyIdentifierT&& value) {
41 m_keyIdentifierHasBeenSet = true;
42 m_keyIdentifier = std::forward<KeyIdentifierT>(value);
43 }
44 template <typename KeyIdentifierT = Aws::String>
45 VerifyMacRequest& WithKeyIdentifier(KeyIdentifierT&& value) {
46 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetMessageData() const { return m_messageData; }
57 inline bool MessageDataHasBeenSet() const { return m_messageDataHasBeenSet; }
58 template <typename MessageDataT = Aws::String>
59 void SetMessageData(MessageDataT&& value) {
60 m_messageDataHasBeenSet = true;
61 m_messageData = std::forward<MessageDataT>(value);
62 }
63 template <typename MessageDataT = Aws::String>
64 VerifyMacRequest& WithMessageData(MessageDataT&& value) {
65 SetMessageData(std::forward<MessageDataT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMac() const { return m_mac; }
75 inline bool MacHasBeenSet() const { return m_macHasBeenSet; }
76 template <typename MacT = Aws::String>
77 void SetMac(MacT&& value) {
78 m_macHasBeenSet = true;
79 m_mac = std::forward<MacT>(value);
80 }
81 template <typename MacT = Aws::String>
82 VerifyMacRequest& WithMac(MacT&& value) {
83 SetMac(std::forward<MacT>(value));
84 return *this;
85 }
87
89
93 inline const MacAttributes& GetVerificationAttributes() const { return m_verificationAttributes; }
94 inline bool VerificationAttributesHasBeenSet() const { return m_verificationAttributesHasBeenSet; }
95 template <typename VerificationAttributesT = MacAttributes>
96 void SetVerificationAttributes(VerificationAttributesT&& value) {
97 m_verificationAttributesHasBeenSet = true;
98 m_verificationAttributes = std::forward<VerificationAttributesT>(value);
99 }
100 template <typename VerificationAttributesT = MacAttributes>
101 VerifyMacRequest& WithVerificationAttributes(VerificationAttributesT&& value) {
102 SetVerificationAttributes(std::forward<VerificationAttributesT>(value));
103 return *this;
104 }
106
108
111 inline int GetMacLength() const { return m_macLength; }
112 inline bool MacLengthHasBeenSet() const { return m_macLengthHasBeenSet; }
113 inline void SetMacLength(int value) {
114 m_macLengthHasBeenSet = true;
115 m_macLength = value;
116 }
117 inline VerifyMacRequest& WithMacLength(int value) {
118 SetMacLength(value);
119 return *this;
120 }
122 private:
123 Aws::String m_keyIdentifier;
124
125 Aws::String m_messageData;
126
127 Aws::String m_mac;
128
129 MacAttributes m_verificationAttributes;
130
131 int m_macLength{0};
132 bool m_keyIdentifierHasBeenSet = false;
133 bool m_messageDataHasBeenSet = false;
134 bool m_macHasBeenSet = false;
135 bool m_verificationAttributesHasBeenSet = false;
136 bool m_macLengthHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace PaymentCryptographyData
141} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHYDATA_API VerifyMacRequest()=default
VerifyMacRequest & WithKeyIdentifier(KeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
VerifyMacRequest & WithVerificationAttributes(VerificationAttributesT &&value)
void SetVerificationAttributes(VerificationAttributesT &&value)
VerifyMacRequest & WithMessageData(MessageDataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String