AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
DukptEncryptionAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
9#include <aws/payment-cryptography-data/model/DukptDerivationType.h>
10#include <aws/payment-cryptography-data/model/DukptEncryptionMode.h>
11#include <aws/payment-cryptography-data/model/DukptKeyVariant.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PaymentCryptographyData {
23namespace Model {
24
32 public:
33 AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes() = default;
34 AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetKeySerialNumber() const { return m_keySerialNumber; }
45 inline bool KeySerialNumberHasBeenSet() const { return m_keySerialNumberHasBeenSet; }
46 template <typename KeySerialNumberT = Aws::String>
47 void SetKeySerialNumber(KeySerialNumberT&& value) {
48 m_keySerialNumberHasBeenSet = true;
49 m_keySerialNumber = std::forward<KeySerialNumberT>(value);
50 }
51 template <typename KeySerialNumberT = Aws::String>
53 SetKeySerialNumber(std::forward<KeySerialNumberT>(value));
54 return *this;
55 }
57
59
62 inline DukptEncryptionMode GetMode() const { return m_mode; }
63 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
64 inline void SetMode(DukptEncryptionMode value) {
65 m_modeHasBeenSet = true;
66 m_mode = value;
67 }
69 SetMode(value);
70 return *this;
71 }
73
75
81 inline DukptDerivationType GetDukptKeyDerivationType() const { return m_dukptKeyDerivationType; }
82 inline bool DukptKeyDerivationTypeHasBeenSet() const { return m_dukptKeyDerivationTypeHasBeenSet; }
84 m_dukptKeyDerivationTypeHasBeenSet = true;
85 m_dukptKeyDerivationType = value;
86 }
89 return *this;
90 }
92
94
98 inline DukptKeyVariant GetDukptKeyVariant() const { return m_dukptKeyVariant; }
99 inline bool DukptKeyVariantHasBeenSet() const { return m_dukptKeyVariantHasBeenSet; }
101 m_dukptKeyVariantHasBeenSet = true;
102 m_dukptKeyVariant = value;
103 }
105 SetDukptKeyVariant(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetInitializationVector() const { return m_initializationVector; }
116 inline bool InitializationVectorHasBeenSet() const { return m_initializationVectorHasBeenSet; }
117 template <typename InitializationVectorT = Aws::String>
118 void SetInitializationVector(InitializationVectorT&& value) {
119 m_initializationVectorHasBeenSet = true;
120 m_initializationVector = std::forward<InitializationVectorT>(value);
121 }
122 template <typename InitializationVectorT = Aws::String>
123 DukptEncryptionAttributes& WithInitializationVector(InitializationVectorT&& value) {
124 SetInitializationVector(std::forward<InitializationVectorT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_keySerialNumber;
130
132
133 DukptDerivationType m_dukptKeyDerivationType{DukptDerivationType::NOT_SET};
134
135 DukptKeyVariant m_dukptKeyVariant{DukptKeyVariant::NOT_SET};
136
137 Aws::String m_initializationVector;
138 bool m_keySerialNumberHasBeenSet = false;
139 bool m_modeHasBeenSet = false;
140 bool m_dukptKeyDerivationTypeHasBeenSet = false;
141 bool m_dukptKeyVariantHasBeenSet = false;
142 bool m_initializationVectorHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace PaymentCryptographyData
147} // namespace Aws
DukptEncryptionAttributes & WithInitializationVector(InitializationVectorT &&value)
DukptEncryptionAttributes & WithDukptKeyDerivationType(DukptDerivationType value)
DukptEncryptionAttributes & WithDukptKeyVariant(DukptKeyVariant value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes()=default
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
DukptEncryptionAttributes & WithMode(DukptEncryptionMode value)
DukptEncryptionAttributes & WithKeySerialNumber(KeySerialNumberT &&value)
AWS_PAYMENTCRYPTOGRAPHYDATA_API DukptEncryptionAttributes(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue