AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GeneratePinDataRequest.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/PinBlockFormatForPinData.h>
11#include <aws/payment-cryptography-data/model/PinGenerationAttributes.h>
12#include <aws/payment-cryptography-data/model/WrappedKey.h>
13
14#include <utility>
15
16namespace Aws {
17namespace PaymentCryptographyData {
18namespace Model {
19
23 public:
24 AWS_PAYMENTCRYPTOGRAPHYDATA_API GeneratePinDataRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GeneratePinData"; }
31
32 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetGenerationKeyIdentifier() const { return m_generationKeyIdentifier; }
40 inline bool GenerationKeyIdentifierHasBeenSet() const { return m_generationKeyIdentifierHasBeenSet; }
41 template <typename GenerationKeyIdentifierT = Aws::String>
42 void SetGenerationKeyIdentifier(GenerationKeyIdentifierT&& value) {
43 m_generationKeyIdentifierHasBeenSet = true;
44 m_generationKeyIdentifier = std::forward<GenerationKeyIdentifierT>(value);
45 }
46 template <typename GenerationKeyIdentifierT = Aws::String>
47 GeneratePinDataRequest& WithGenerationKeyIdentifier(GenerationKeyIdentifierT&& value) {
48 SetGenerationKeyIdentifier(std::forward<GenerationKeyIdentifierT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetEncryptionKeyIdentifier() const { return m_encryptionKeyIdentifier; }
60 inline bool EncryptionKeyIdentifierHasBeenSet() const { return m_encryptionKeyIdentifierHasBeenSet; }
61 template <typename EncryptionKeyIdentifierT = Aws::String>
62 void SetEncryptionKeyIdentifier(EncryptionKeyIdentifierT&& value) {
63 m_encryptionKeyIdentifierHasBeenSet = true;
64 m_encryptionKeyIdentifier = std::forward<EncryptionKeyIdentifierT>(value);
65 }
66 template <typename EncryptionKeyIdentifierT = Aws::String>
67 GeneratePinDataRequest& WithEncryptionKeyIdentifier(EncryptionKeyIdentifierT&& value) {
68 SetEncryptionKeyIdentifier(std::forward<EncryptionKeyIdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const PinGenerationAttributes& GetGenerationAttributes() const { return m_generationAttributes; }
78 inline bool GenerationAttributesHasBeenSet() const { return m_generationAttributesHasBeenSet; }
79 template <typename GenerationAttributesT = PinGenerationAttributes>
80 void SetGenerationAttributes(GenerationAttributesT&& value) {
81 m_generationAttributesHasBeenSet = true;
82 m_generationAttributes = std::forward<GenerationAttributesT>(value);
83 }
84 template <typename GenerationAttributesT = PinGenerationAttributes>
85 GeneratePinDataRequest& WithGenerationAttributes(GenerationAttributesT&& value) {
86 SetGenerationAttributes(std::forward<GenerationAttributesT>(value));
87 return *this;
88 }
90
92
95 inline int GetPinDataLength() const { return m_pinDataLength; }
96 inline bool PinDataLengthHasBeenSet() const { return m_pinDataLengthHasBeenSet; }
97 inline void SetPinDataLength(int value) {
98 m_pinDataLengthHasBeenSet = true;
99 m_pinDataLength = value;
100 }
102 SetPinDataLength(value);
103 return *this;
104 }
106
108
112 inline const Aws::String& GetPrimaryAccountNumber() const { return m_primaryAccountNumber; }
113 inline bool PrimaryAccountNumberHasBeenSet() const { return m_primaryAccountNumberHasBeenSet; }
114 template <typename PrimaryAccountNumberT = Aws::String>
115 void SetPrimaryAccountNumber(PrimaryAccountNumberT&& value) {
116 m_primaryAccountNumberHasBeenSet = true;
117 m_primaryAccountNumber = std::forward<PrimaryAccountNumberT>(value);
118 }
119 template <typename PrimaryAccountNumberT = Aws::String>
120 GeneratePinDataRequest& WithPrimaryAccountNumber(PrimaryAccountNumberT&& value) {
121 SetPrimaryAccountNumber(std::forward<PrimaryAccountNumberT>(value));
122 return *this;
123 }
125
127
139 inline PinBlockFormatForPinData GetPinBlockFormat() const { return m_pinBlockFormat; }
140 inline bool PinBlockFormatHasBeenSet() const { return m_pinBlockFormatHasBeenSet; }
142 m_pinBlockFormatHasBeenSet = true;
143 m_pinBlockFormat = value;
144 }
146 SetPinBlockFormat(value);
147 return *this;
148 }
150
152
153 inline const WrappedKey& GetEncryptionWrappedKey() const { return m_encryptionWrappedKey; }
154 inline bool EncryptionWrappedKeyHasBeenSet() const { return m_encryptionWrappedKeyHasBeenSet; }
155 template <typename EncryptionWrappedKeyT = WrappedKey>
156 void SetEncryptionWrappedKey(EncryptionWrappedKeyT&& value) {
157 m_encryptionWrappedKeyHasBeenSet = true;
158 m_encryptionWrappedKey = std::forward<EncryptionWrappedKeyT>(value);
159 }
160 template <typename EncryptionWrappedKeyT = WrappedKey>
161 GeneratePinDataRequest& WithEncryptionWrappedKey(EncryptionWrappedKeyT&& value) {
162 SetEncryptionWrappedKey(std::forward<EncryptionWrappedKeyT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_generationKeyIdentifier;
168
169 Aws::String m_encryptionKeyIdentifier;
170
171 PinGenerationAttributes m_generationAttributes;
172
173 int m_pinDataLength{0};
174
175 Aws::String m_primaryAccountNumber;
176
178
179 WrappedKey m_encryptionWrappedKey;
180 bool m_generationKeyIdentifierHasBeenSet = false;
181 bool m_encryptionKeyIdentifierHasBeenSet = false;
182 bool m_generationAttributesHasBeenSet = false;
183 bool m_pinDataLengthHasBeenSet = false;
184 bool m_primaryAccountNumberHasBeenSet = false;
185 bool m_pinBlockFormatHasBeenSet = false;
186 bool m_encryptionWrappedKeyHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace PaymentCryptographyData
191} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHYDATA_API GeneratePinDataRequest()=default
GeneratePinDataRequest & WithEncryptionKeyIdentifier(EncryptionKeyIdentifierT &&value)
GeneratePinDataRequest & WithEncryptionWrappedKey(EncryptionWrappedKeyT &&value)
void SetGenerationKeyIdentifier(GenerationKeyIdentifierT &&value)
const PinGenerationAttributes & GetGenerationAttributes() const
GeneratePinDataRequest & WithGenerationKeyIdentifier(GenerationKeyIdentifierT &&value)
void SetEncryptionKeyIdentifier(EncryptionKeyIdentifierT &&value)
GeneratePinDataRequest & WithGenerationAttributes(GenerationAttributesT &&value)
GeneratePinDataRequest & WithPrimaryAccountNumber(PrimaryAccountNumberT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
GeneratePinDataRequest & WithPinBlockFormat(PinBlockFormatForPinData value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String