AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImportKeyCryptogram.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/KeyAttributes.h>
10#include <aws/payment-cryptography/model/WrappingKeySpec.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PaymentCryptography {
22namespace Model {
23
31 public:
32 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram() = default;
33 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
40 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
41 template <typename KeyAttributesT = KeyAttributes>
42 void SetKeyAttributes(KeyAttributesT&& value) {
43 m_keyAttributesHasBeenSet = true;
44 m_keyAttributes = std::forward<KeyAttributesT>(value);
45 }
46 template <typename KeyAttributesT = KeyAttributes>
47 ImportKeyCryptogram& WithKeyAttributes(KeyAttributesT&& value) {
48 SetKeyAttributes(std::forward<KeyAttributesT>(value));
49 return *this;
50 }
52
54
57 inline bool GetExportable() const { return m_exportable; }
58 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
59 inline void SetExportable(bool value) {
60 m_exportableHasBeenSet = true;
61 m_exportable = value;
62 }
63 inline ImportKeyCryptogram& WithExportable(bool value) {
64 SetExportable(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetWrappedKeyCryptogram() const { return m_wrappedKeyCryptogram; }
74 inline bool WrappedKeyCryptogramHasBeenSet() const { return m_wrappedKeyCryptogramHasBeenSet; }
75 template <typename WrappedKeyCryptogramT = Aws::String>
76 void SetWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) {
77 m_wrappedKeyCryptogramHasBeenSet = true;
78 m_wrappedKeyCryptogram = std::forward<WrappedKeyCryptogramT>(value);
79 }
80 template <typename WrappedKeyCryptogramT = Aws::String>
81 ImportKeyCryptogram& WithWrappedKeyCryptogram(WrappedKeyCryptogramT&& value) {
82 SetWrappedKeyCryptogram(std::forward<WrappedKeyCryptogramT>(value));
83 return *this;
84 }
86
88
94 inline const Aws::String& GetImportToken() const { return m_importToken; }
95 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
96 template <typename ImportTokenT = Aws::String>
97 void SetImportToken(ImportTokenT&& value) {
98 m_importTokenHasBeenSet = true;
99 m_importToken = std::forward<ImportTokenT>(value);
100 }
101 template <typename ImportTokenT = Aws::String>
102 ImportKeyCryptogram& WithImportToken(ImportTokenT&& value) {
103 SetImportToken(std::forward<ImportTokenT>(value));
104 return *this;
105 }
107
109
112 inline WrappingKeySpec GetWrappingSpec() const { return m_wrappingSpec; }
113 inline bool WrappingSpecHasBeenSet() const { return m_wrappingSpecHasBeenSet; }
114 inline void SetWrappingSpec(WrappingKeySpec value) {
115 m_wrappingSpecHasBeenSet = true;
116 m_wrappingSpec = value;
117 }
119 SetWrappingSpec(value);
120 return *this;
121 }
123 private:
124 KeyAttributes m_keyAttributes;
125
126 bool m_exportable{false};
127
128 Aws::String m_wrappedKeyCryptogram;
129
130 Aws::String m_importToken;
131
133 bool m_keyAttributesHasBeenSet = false;
134 bool m_exportableHasBeenSet = false;
135 bool m_wrappedKeyCryptogramHasBeenSet = false;
136 bool m_importTokenHasBeenSet = false;
137 bool m_wrappingSpecHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace PaymentCryptography
142} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWrappedKeyCryptogram(WrappedKeyCryptogramT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram(Aws::Utils::Json::JsonView jsonValue)
ImportKeyCryptogram & WithImportToken(ImportTokenT &&value)
ImportKeyCryptogram & WithWrappingSpec(WrappingKeySpec value)
ImportKeyCryptogram & WithKeyAttributes(KeyAttributesT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
ImportKeyCryptogram & WithWrappedKeyCryptogram(WrappedKeyCryptogramT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API ImportKeyCryptogram()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue