AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Key.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/payment-cryptography/model/KeyAttributes.h>
10#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.h>
11#include <aws/payment-cryptography/model/KeyState.h>
12#include <aws/payment-cryptography/model/KeyOrigin.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace PaymentCryptography
27{
28namespace Model
29{
30
37 class Key
38 {
39 public:
40 AWS_PAYMENTCRYPTOGRAPHY_API Key();
41 AWS_PAYMENTCRYPTOGRAPHY_API Key(Aws::Utils::Json::JsonView jsonValue);
42 AWS_PAYMENTCRYPTOGRAPHY_API Key& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetKeyArn() const{ return m_keyArn; }
51 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
52 inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; }
53 inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); }
54 inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); }
55 inline Key& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;}
56 inline Key& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;}
57 inline Key& WithKeyArn(const char* value) { SetKeyArn(value); return *this;}
59
61
66 inline const KeyAttributes& GetKeyAttributes() const{ return m_keyAttributes; }
67 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
68 inline void SetKeyAttributes(const KeyAttributes& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = value; }
69 inline void SetKeyAttributes(KeyAttributes&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::move(value); }
70 inline Key& WithKeyAttributes(const KeyAttributes& value) { SetKeyAttributes(value); return *this;}
71 inline Key& WithKeyAttributes(KeyAttributes&& value) { SetKeyAttributes(std::move(value)); return *this;}
73
75
79 inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; }
80 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
81 inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = value; }
82 inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::move(value); }
83 inline void SetKeyCheckValue(const char* value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue.assign(value); }
84 inline Key& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;}
85 inline Key& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;}
86 inline Key& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;}
88
90
99 inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; }
100 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
101 inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
102 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); }
104 inline Key& WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { SetKeyCheckValueAlgorithm(std::move(value)); return *this;}
106
108
111 inline bool GetEnabled() const{ return m_enabled; }
112 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
113 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
114 inline Key& WithEnabled(bool value) { SetEnabled(value); return *this;}
116
118
122 inline bool GetExportable() const{ return m_exportable; }
123 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
124 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
125 inline Key& WithExportable(bool value) { SetExportable(value); return *this;}
127
129
132 inline const KeyState& GetKeyState() const{ return m_keyState; }
133 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
134 inline void SetKeyState(const KeyState& value) { m_keyStateHasBeenSet = true; m_keyState = value; }
135 inline void SetKeyState(KeyState&& value) { m_keyStateHasBeenSet = true; m_keyState = std::move(value); }
136 inline Key& WithKeyState(const KeyState& value) { SetKeyState(value); return *this;}
137 inline Key& WithKeyState(KeyState&& value) { SetKeyState(std::move(value)); return *this;}
139
141
147 inline const KeyOrigin& GetKeyOrigin() const{ return m_keyOrigin; }
148 inline bool KeyOriginHasBeenSet() const { return m_keyOriginHasBeenSet; }
149 inline void SetKeyOrigin(const KeyOrigin& value) { m_keyOriginHasBeenSet = true; m_keyOrigin = value; }
150 inline void SetKeyOrigin(KeyOrigin&& value) { m_keyOriginHasBeenSet = true; m_keyOrigin = std::move(value); }
151 inline Key& WithKeyOrigin(const KeyOrigin& value) { SetKeyOrigin(value); return *this;}
152 inline Key& WithKeyOrigin(KeyOrigin&& value) { SetKeyOrigin(std::move(value)); return *this;}
154
156
159 inline const Aws::Utils::DateTime& GetCreateTimestamp() const{ return m_createTimestamp; }
160 inline bool CreateTimestampHasBeenSet() const { return m_createTimestampHasBeenSet; }
161 inline void SetCreateTimestamp(const Aws::Utils::DateTime& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = value; }
162 inline void SetCreateTimestamp(Aws::Utils::DateTime&& value) { m_createTimestampHasBeenSet = true; m_createTimestamp = std::move(value); }
163 inline Key& WithCreateTimestamp(const Aws::Utils::DateTime& value) { SetCreateTimestamp(value); return *this;}
164 inline Key& WithCreateTimestamp(Aws::Utils::DateTime&& value) { SetCreateTimestamp(std::move(value)); return *this;}
166
168
172 inline const Aws::Utils::DateTime& GetUsageStartTimestamp() const{ return m_usageStartTimestamp; }
173 inline bool UsageStartTimestampHasBeenSet() const { return m_usageStartTimestampHasBeenSet; }
174 inline void SetUsageStartTimestamp(const Aws::Utils::DateTime& value) { m_usageStartTimestampHasBeenSet = true; m_usageStartTimestamp = value; }
175 inline void SetUsageStartTimestamp(Aws::Utils::DateTime&& value) { m_usageStartTimestampHasBeenSet = true; m_usageStartTimestamp = std::move(value); }
176 inline Key& WithUsageStartTimestamp(const Aws::Utils::DateTime& value) { SetUsageStartTimestamp(value); return *this;}
177 inline Key& WithUsageStartTimestamp(Aws::Utils::DateTime&& value) { SetUsageStartTimestamp(std::move(value)); return *this;}
179
181
185 inline const Aws::Utils::DateTime& GetUsageStopTimestamp() const{ return m_usageStopTimestamp; }
186 inline bool UsageStopTimestampHasBeenSet() const { return m_usageStopTimestampHasBeenSet; }
187 inline void SetUsageStopTimestamp(const Aws::Utils::DateTime& value) { m_usageStopTimestampHasBeenSet = true; m_usageStopTimestamp = value; }
188 inline void SetUsageStopTimestamp(Aws::Utils::DateTime&& value) { m_usageStopTimestampHasBeenSet = true; m_usageStopTimestamp = std::move(value); }
189 inline Key& WithUsageStopTimestamp(const Aws::Utils::DateTime& value) { SetUsageStopTimestamp(value); return *this;}
190 inline Key& WithUsageStopTimestamp(Aws::Utils::DateTime&& value) { SetUsageStopTimestamp(std::move(value)); return *this;}
192
194
199 inline const Aws::Utils::DateTime& GetDeletePendingTimestamp() const{ return m_deletePendingTimestamp; }
200 inline bool DeletePendingTimestampHasBeenSet() const { return m_deletePendingTimestampHasBeenSet; }
201 inline void SetDeletePendingTimestamp(const Aws::Utils::DateTime& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = value; }
202 inline void SetDeletePendingTimestamp(Aws::Utils::DateTime&& value) { m_deletePendingTimestampHasBeenSet = true; m_deletePendingTimestamp = std::move(value); }
204 inline Key& WithDeletePendingTimestamp(Aws::Utils::DateTime&& value) { SetDeletePendingTimestamp(std::move(value)); return *this;}
206
208
214 inline const Aws::Utils::DateTime& GetDeleteTimestamp() const{ return m_deleteTimestamp; }
215 inline bool DeleteTimestampHasBeenSet() const { return m_deleteTimestampHasBeenSet; }
216 inline void SetDeleteTimestamp(const Aws::Utils::DateTime& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = value; }
217 inline void SetDeleteTimestamp(Aws::Utils::DateTime&& value) { m_deleteTimestampHasBeenSet = true; m_deleteTimestamp = std::move(value); }
218 inline Key& WithDeleteTimestamp(const Aws::Utils::DateTime& value) { SetDeleteTimestamp(value); return *this;}
219 inline Key& WithDeleteTimestamp(Aws::Utils::DateTime&& value) { SetDeleteTimestamp(std::move(value)); return *this;}
221 private:
222
223 Aws::String m_keyArn;
224 bool m_keyArnHasBeenSet = false;
225
226 KeyAttributes m_keyAttributes;
227 bool m_keyAttributesHasBeenSet = false;
228
229 Aws::String m_keyCheckValue;
230 bool m_keyCheckValueHasBeenSet = false;
231
232 KeyCheckValueAlgorithm m_keyCheckValueAlgorithm;
233 bool m_keyCheckValueAlgorithmHasBeenSet = false;
234
235 bool m_enabled;
236 bool m_enabledHasBeenSet = false;
237
238 bool m_exportable;
239 bool m_exportableHasBeenSet = false;
240
241 KeyState m_keyState;
242 bool m_keyStateHasBeenSet = false;
243
244 KeyOrigin m_keyOrigin;
245 bool m_keyOriginHasBeenSet = false;
246
247 Aws::Utils::DateTime m_createTimestamp;
248 bool m_createTimestampHasBeenSet = false;
249
250 Aws::Utils::DateTime m_usageStartTimestamp;
251 bool m_usageStartTimestampHasBeenSet = false;
252
253 Aws::Utils::DateTime m_usageStopTimestamp;
254 bool m_usageStopTimestampHasBeenSet = false;
255
256 Aws::Utils::DateTime m_deletePendingTimestamp;
257 bool m_deletePendingTimestampHasBeenSet = false;
258
259 Aws::Utils::DateTime m_deleteTimestamp;
260 bool m_deleteTimestampHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace PaymentCryptography
265} // namespace Aws
Key & WithDeletePendingTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:203
Key & WithKeyCheckValue(Aws::String &&value)
Definition Key.h:85
Key & WithCreateTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:163
AWS_PAYMENTCRYPTOGRAPHY_API Key(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreateTimestamp() const
Definition Key.h:159
const KeyOrigin & GetKeyOrigin() const
Definition Key.h:147
void SetKeyAttributes(const KeyAttributes &value)
Definition Key.h:68
void SetEnabled(bool value)
Definition Key.h:113
void SetKeyCheckValue(Aws::String &&value)
Definition Key.h:82
bool UsageStartTimestampHasBeenSet() const
Definition Key.h:173
Key & WithKeyState(const KeyState &value)
Definition Key.h:136
Key & WithEnabled(bool value)
Definition Key.h:114
Key & WithUsageStopTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:190
void SetKeyArn(const char *value)
Definition Key.h:54
void SetKeyCheckValue(const char *value)
Definition Key.h:83
void SetCreateTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:161
bool DeletePendingTimestampHasBeenSet() const
Definition Key.h:200
bool CreateTimestampHasBeenSet() const
Definition Key.h:160
bool KeyCheckValueHasBeenSet() const
Definition Key.h:80
bool DeleteTimestampHasBeenSet() const
Definition Key.h:215
void SetDeleteTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:217
Key & WithDeleteTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:219
bool KeyCheckValueAlgorithmHasBeenSet() const
Definition Key.h:100
const Aws::Utils::DateTime & GetDeletePendingTimestamp() const
Definition Key.h:199
void SetKeyOrigin(const KeyOrigin &value)
Definition Key.h:149
bool UsageStopTimestampHasBeenSet() const
Definition Key.h:186
void SetKeyAttributes(KeyAttributes &&value)
Definition Key.h:69
Key & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
Definition Key.h:104
const Aws::String & GetKeyArn() const
Definition Key.h:50
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUsageStopTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:188
Key & WithKeyOrigin(const KeyOrigin &value)
Definition Key.h:151
void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
Definition Key.h:101
const KeyState & GetKeyState() const
Definition Key.h:132
void SetKeyArn(Aws::String &&value)
Definition Key.h:53
Key & WithKeyAttributes(KeyAttributes &&value)
Definition Key.h:71
const Aws::Utils::DateTime & GetUsageStopTimestamp() const
Definition Key.h:185
Key & WithKeyAttributes(const KeyAttributes &value)
Definition Key.h:70
Key & WithUsageStopTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:189
void SetKeyState(KeyState &&value)
Definition Key.h:135
Key & WithDeletePendingTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:204
bool KeyAttributesHasBeenSet() const
Definition Key.h:67
void SetCreateTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:162
Key & WithKeyArn(Aws::String &&value)
Definition Key.h:56
Key & WithKeyArn(const Aws::String &value)
Definition Key.h:55
Key & WithUsageStartTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:177
Key & WithCreateTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:164
void SetDeleteTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:216
Key & WithKeyState(KeyState &&value)
Definition Key.h:137
void SetExportable(bool value)
Definition Key.h:124
void SetKeyState(const KeyState &value)
Definition Key.h:134
void SetKeyArn(const Aws::String &value)
Definition Key.h:52
void SetKeyCheckValue(const Aws::String &value)
Definition Key.h:81
void SetKeyOrigin(KeyOrigin &&value)
Definition Key.h:150
Key & WithKeyCheckValue(const char *value)
Definition Key.h:86
Key & WithUsageStartTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:176
const Aws::String & GetKeyCheckValue() const
Definition Key.h:79
const KeyCheckValueAlgorithm & GetKeyCheckValueAlgorithm() const
Definition Key.h:99
Key & WithDeleteTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:218
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
Definition Key.h:102
void SetUsageStartTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:175
const KeyAttributes & GetKeyAttributes() const
Definition Key.h:66
void SetDeletePendingTimestamp(Aws::Utils::DateTime &&value)
Definition Key.h:202
const Aws::Utils::DateTime & GetUsageStartTimestamp() const
Definition Key.h:172
void SetUsageStartTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:174
AWS_PAYMENTCRYPTOGRAPHY_API Key()
void SetUsageStopTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:187
AWS_PAYMENTCRYPTOGRAPHY_API Key & operator=(Aws::Utils::Json::JsonView jsonValue)
Key & WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
Definition Key.h:103
Key & WithKeyArn(const char *value)
Definition Key.h:57
Key & WithExportable(bool value)
Definition Key.h:125
Key & WithKeyOrigin(KeyOrigin &&value)
Definition Key.h:152
Key & WithKeyCheckValue(const Aws::String &value)
Definition Key.h:84
void SetDeletePendingTimestamp(const Aws::Utils::DateTime &value)
Definition Key.h:201
const Aws::Utils::DateTime & GetDeleteTimestamp() const
Definition Key.h:214
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue