AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GenerateMacRequest.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/MacAttributes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace PaymentCryptographyData
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_PAYMENTCRYPTOGRAPHYDATA_API GenerateMacRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GenerateMac"; }
32
33 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetKeyIdentifier() const { return m_keyIdentifier; }
41 inline bool KeyIdentifierHasBeenSet() const { return m_keyIdentifierHasBeenSet; }
42 template<typename KeyIdentifierT = Aws::String>
43 void SetKeyIdentifier(KeyIdentifierT&& value) { m_keyIdentifierHasBeenSet = true; m_keyIdentifier = std::forward<KeyIdentifierT>(value); }
44 template<typename KeyIdentifierT = Aws::String>
45 GenerateMacRequest& WithKeyIdentifier(KeyIdentifierT&& value) { SetKeyIdentifier(std::forward<KeyIdentifierT>(value)); return *this;}
47
49
53 inline const Aws::String& GetMessageData() const { return m_messageData; }
54 inline bool MessageDataHasBeenSet() const { return m_messageDataHasBeenSet; }
55 template<typename MessageDataT = Aws::String>
56 void SetMessageData(MessageDataT&& value) { m_messageDataHasBeenSet = true; m_messageData = std::forward<MessageDataT>(value); }
57 template<typename MessageDataT = Aws::String>
58 GenerateMacRequest& WithMessageData(MessageDataT&& value) { SetMessageData(std::forward<MessageDataT>(value)); return *this;}
60
62
66 inline const MacAttributes& GetGenerationAttributes() const { return m_generationAttributes; }
67 inline bool GenerationAttributesHasBeenSet() const { return m_generationAttributesHasBeenSet; }
68 template<typename GenerationAttributesT = MacAttributes>
69 void SetGenerationAttributes(GenerationAttributesT&& value) { m_generationAttributesHasBeenSet = true; m_generationAttributes = std::forward<GenerationAttributesT>(value); }
70 template<typename GenerationAttributesT = MacAttributes>
71 GenerateMacRequest& WithGenerationAttributes(GenerationAttributesT&& value) { SetGenerationAttributes(std::forward<GenerationAttributesT>(value)); return *this;}
73
75
78 inline int GetMacLength() const { return m_macLength; }
79 inline bool MacLengthHasBeenSet() const { return m_macLengthHasBeenSet; }
80 inline void SetMacLength(int value) { m_macLengthHasBeenSet = true; m_macLength = value; }
81 inline GenerateMacRequest& WithMacLength(int value) { SetMacLength(value); return *this;}
83 private:
84
85 Aws::String m_keyIdentifier;
86 bool m_keyIdentifierHasBeenSet = false;
87
88 Aws::String m_messageData;
89 bool m_messageDataHasBeenSet = false;
90
91 MacAttributes m_generationAttributes;
92 bool m_generationAttributesHasBeenSet = false;
93
94 int m_macLength{0};
95 bool m_macLengthHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace PaymentCryptographyData
100} // 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