AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GenerateCardValidationDataRequest.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/CardGenerationAttributes.h>
11
12#include <utility>
13
14namespace Aws {
15namespace PaymentCryptographyData {
16namespace Model {
17
21 public:
22 AWS_PAYMENTCRYPTOGRAPHYDATA_API GenerateCardValidationDataRequest() = 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 "GenerateCardValidationData"; }
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>
46 SetKeyIdentifier(std::forward<KeyIdentifierT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetPrimaryAccountNumber() const { return m_primaryAccountNumber; }
57 inline bool PrimaryAccountNumberHasBeenSet() const { return m_primaryAccountNumberHasBeenSet; }
58 template <typename PrimaryAccountNumberT = Aws::String>
59 void SetPrimaryAccountNumber(PrimaryAccountNumberT&& value) {
60 m_primaryAccountNumberHasBeenSet = true;
61 m_primaryAccountNumber = std::forward<PrimaryAccountNumberT>(value);
62 }
63 template <typename PrimaryAccountNumberT = Aws::String>
65 SetPrimaryAccountNumber(std::forward<PrimaryAccountNumberT>(value));
66 return *this;
67 }
69
71
75 inline const CardGenerationAttributes& GetGenerationAttributes() const { return m_generationAttributes; }
76 inline bool GenerationAttributesHasBeenSet() const { return m_generationAttributesHasBeenSet; }
77 template <typename GenerationAttributesT = CardGenerationAttributes>
78 void SetGenerationAttributes(GenerationAttributesT&& value) {
79 m_generationAttributesHasBeenSet = true;
80 m_generationAttributes = std::forward<GenerationAttributesT>(value);
81 }
82 template <typename GenerationAttributesT = CardGenerationAttributes>
84 SetGenerationAttributes(std::forward<GenerationAttributesT>(value));
85 return *this;
86 }
88
90
93 inline int GetValidationDataLength() const { return m_validationDataLength; }
94 inline bool ValidationDataLengthHasBeenSet() const { return m_validationDataLengthHasBeenSet; }
95 inline void SetValidationDataLength(int value) {
96 m_validationDataLengthHasBeenSet = true;
97 m_validationDataLength = value;
98 }
101 return *this;
102 }
104 private:
105 Aws::String m_keyIdentifier;
106
107 Aws::String m_primaryAccountNumber;
108
109 CardGenerationAttributes m_generationAttributes;
110
111 int m_validationDataLength{0};
112 bool m_keyIdentifierHasBeenSet = false;
113 bool m_primaryAccountNumberHasBeenSet = false;
114 bool m_generationAttributesHasBeenSet = false;
115 bool m_validationDataLengthHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace PaymentCryptographyData
120} // namespace Aws
GenerateCardValidationDataRequest & WithPrimaryAccountNumber(PrimaryAccountNumberT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API GenerateCardValidationDataRequest()=default
GenerateCardValidationDataRequest & WithKeyIdentifier(KeyIdentifierT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::String SerializePayload() const override
GenerateCardValidationDataRequest & WithGenerationAttributes(GenerationAttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String