AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GenerateMacRequest.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 GenerateMacRequest() = 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 "GenerateMac"; }
29
30 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
37 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
38 template <typename KeyIdentifierT = Aws::String>
39 void SetKeyIdentifier(KeyIdentifierT&& value) {
40 m_keyIdentifierHasBeenSet = true;
41 m_keyIdentifier = std::forward<KeyIdentifierT>(value);
42 }
43 template <typename KeyIdentifierT = Aws::String>
44 GenerateMacRequest& WithKeyIdentifier(KeyIdentifierT&& value) {
45 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetMessageData() const { return m_messageData; }
56 inline bool MessageDataHasBeenSet() const { return m_messageDataHasBeenSet; }
57 template <typename MessageDataT = Aws::String>
58 void SetMessageData(MessageDataT&& value) {
59 m_messageDataHasBeenSet = true;
60 m_messageData = std::forward<MessageDataT>(value);
61 }
62 template <typename MessageDataT = Aws::String>
63 GenerateMacRequest& WithMessageData(MessageDataT&& value) {
64 SetMessageData(std::forward<MessageDataT>(value));
65 return *this;
66 }
68
70
74 inline const MacAttributes& GetGenerationAttributes() const { return m_generationAttributes; }
75 inline bool GenerationAttributesHasBeenSet() const { return m_generationAttributesHasBeenSet; }
76 template <typename GenerationAttributesT = MacAttributes>
77 void SetGenerationAttributes(GenerationAttributesT&& value) {
78 m_generationAttributesHasBeenSet = true;
79 m_generationAttributes = std::forward<GenerationAttributesT>(value);
80 }
81 template <typename GenerationAttributesT = MacAttributes>
82 GenerateMacRequest& WithGenerationAttributes(GenerationAttributesT&& value) {
83 SetGenerationAttributes(std::forward<GenerationAttributesT>(value));
84 return *this;
85 }
87
89
92 inline int GetMacLength() const { return m_macLength; }
93 inline bool MacLengthHasBeenSet() const { return m_macLengthHasBeenSet; }
94 inline void SetMacLength(int value) {
95 m_macLengthHasBeenSet = true;
96 m_macLength = value;
97 }
98 inline GenerateMacRequest& WithMacLength(int value) {
99 SetMacLength(value);
100 return *this;
101 }
103 private:
104 Aws::String m_keyIdentifier;
105
106 Aws::String m_messageData;
107
108 MacAttributes m_generationAttributes;
109
110 int m_macLength{0};
111 bool m_keyIdentifierHasBeenSet = false;
112 bool m_messageDataHasBeenSet = false;
113 bool m_generationAttributesHasBeenSet = false;
114 bool m_macLengthHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace PaymentCryptographyData
119} // namespace Aws
virtual const char * GetServiceRequestName() const override
GenerateMacRequest & WithGenerationAttributes(GenerationAttributesT &&value)
GenerateMacRequest & WithKeyIdentifier(KeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
void SetGenerationAttributes(GenerationAttributesT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API GenerateMacRequest()=default
GenerateMacRequest & WithMessageData(MessageDataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String