AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImportAs2805KeyCryptogram.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
9#include <aws/payment-cryptography/model/As2805KeyVariant.h>
10#include <aws/payment-cryptography/model/KeyAlgorithm.h>
11#include <aws/payment-cryptography/model/KeyModesOfUse.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PaymentCryptography {
23namespace Model {
24
32 public:
33 AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram() = default;
34 AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline As2805KeyVariant GetAs2805KeyVariant() const { return m_as2805KeyVariant; }
43 inline bool As2805KeyVariantHasBeenSet() const { return m_as2805KeyVariantHasBeenSet; }
45 m_as2805KeyVariantHasBeenSet = true;
46 m_as2805KeyVariant = value;
47 }
50 return *this;
51 }
53
55
56 inline const KeyModesOfUse& GetKeyModesOfUse() const { return m_keyModesOfUse; }
57 inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; }
58 template <typename KeyModesOfUseT = KeyModesOfUse>
59 void SetKeyModesOfUse(KeyModesOfUseT&& value) {
60 m_keyModesOfUseHasBeenSet = true;
61 m_keyModesOfUse = std::forward<KeyModesOfUseT>(value);
62 }
63 template <typename KeyModesOfUseT = KeyModesOfUse>
65 SetKeyModesOfUse(std::forward<KeyModesOfUseT>(value));
66 return *this;
67 }
69
71
74 inline KeyAlgorithm GetKeyAlgorithm() const { return m_keyAlgorithm; }
75 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
76 inline void SetKeyAlgorithm(KeyAlgorithm value) {
77 m_keyAlgorithmHasBeenSet = true;
78 m_keyAlgorithm = value;
79 }
81 SetKeyAlgorithm(value);
82 return *this;
83 }
85
87
91 inline bool GetExportable() const { return m_exportable; }
92 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
93 inline void SetExportable(bool value) {
94 m_exportableHasBeenSet = true;
95 m_exportable = value;
96 }
98 SetExportable(value);
99 return *this;
100 }
102
104
105 inline const Aws::String& GetWrappingKeyIdentifier() const { return m_wrappingKeyIdentifier; }
106 inline bool WrappingKeyIdentifierHasBeenSet() const { return m_wrappingKeyIdentifierHasBeenSet; }
107 template <typename WrappingKeyIdentifierT = Aws::String>
108 void SetWrappingKeyIdentifier(WrappingKeyIdentifierT&& value) {
109 m_wrappingKeyIdentifierHasBeenSet = true;
110 m_wrappingKeyIdentifier = std::forward<WrappingKeyIdentifierT>(value);
111 }
112 template <typename WrappingKeyIdentifierT = Aws::String>
113 ImportAs2805KeyCryptogram& WithWrappingKeyIdentifier(WrappingKeyIdentifierT&& value) {
114 SetWrappingKeyIdentifier(std::forward<WrappingKeyIdentifierT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetWrappedKeyCryptogram() const { return m_wrappedKeyCryptogram; }
124 inline bool WrappedKeyCryptogramHasBeenSet() const { return m_wrappedKeyCryptogramHasBeenSet; }
125 template <typename WrappedKeyCryptogramT = Aws::String>
126 void SetWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) {
127 m_wrappedKeyCryptogramHasBeenSet = true;
128 m_wrappedKeyCryptogram = std::forward<WrappedKeyCryptogramT>(value);
129 }
130 template <typename WrappedKeyCryptogramT = Aws::String>
131 ImportAs2805KeyCryptogram& WithWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) {
132 SetWrappedKeyCryptogram(std::forward<WrappedKeyCryptogramT>(value));
133 return *this;
134 }
136 private:
138
139 KeyModesOfUse m_keyModesOfUse;
140
141 KeyAlgorithm m_keyAlgorithm{KeyAlgorithm::NOT_SET};
142
143 bool m_exportable{false};
144
145 Aws::String m_wrappingKeyIdentifier;
146
147 Aws::String m_wrappedKeyCryptogram;
148 bool m_as2805KeyVariantHasBeenSet = false;
149 bool m_keyModesOfUseHasBeenSet = false;
150 bool m_keyAlgorithmHasBeenSet = false;
151 bool m_exportableHasBeenSet = false;
152 bool m_wrappingKeyIdentifierHasBeenSet = false;
153 bool m_wrappedKeyCryptogramHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace PaymentCryptography
158} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportAs2805KeyCryptogram & WithWrappedKeyCryptogram(WrappedKeyCryptogramT &&value)
ImportAs2805KeyCryptogram & WithKeyModesOfUse(KeyModesOfUseT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram()=default
ImportAs2805KeyCryptogram & WithAs2805KeyVariant(As2805KeyVariant value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportAs2805KeyCryptogram(Aws::Utils::Json::JsonView jsonValue)
ImportAs2805KeyCryptogram & WithKeyAlgorithm(KeyAlgorithm value)
ImportAs2805KeyCryptogram & WithWrappingKeyIdentifier(WrappingKeyIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue