AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
KeySummary.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/KeyState.h>
11#include <aws/payment-cryptography/model/MultiRegionKeyType.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 KeySummary() = default;
34 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
43 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
44 template <typename KeyArnT = Aws::String>
45 void SetKeyArn(KeyArnT&& value) {
46 m_keyArnHasBeenSet = true;
47 m_keyArn = std::forward<KeyArnT>(value);
48 }
49 template <typename KeyArnT = Aws::String>
50 KeySummary& WithKeyArn(KeyArnT&& value) {
51 SetKeyArn(std::forward<KeyArnT>(value));
52 return *this;
53 }
55
57
61 inline KeyState GetKeyState() const { return m_keyState; }
62 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
63 inline void SetKeyState(KeyState value) {
64 m_keyStateHasBeenSet = true;
65 m_keyState = value;
66 }
68 SetKeyState(value);
69 return *this;
70 }
72
74
79 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
80 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
81 template <typename KeyAttributesT = KeyAttributes>
82 void SetKeyAttributes(KeyAttributesT&& value) {
83 m_keyAttributesHasBeenSet = true;
84 m_keyAttributes = std::forward<KeyAttributesT>(value);
85 }
86 template <typename KeyAttributesT = KeyAttributes>
87 KeySummary& WithKeyAttributes(KeyAttributesT&& value) {
88 SetKeyAttributes(std::forward<KeyAttributesT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetKeyCheckValue() const { return m_keyCheckValue; }
99 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
100 template <typename KeyCheckValueT = Aws::String>
101 void SetKeyCheckValue(KeyCheckValueT&& value) {
102 m_keyCheckValueHasBeenSet = true;
103 m_keyCheckValue = std::forward<KeyCheckValueT>(value);
104 }
105 template <typename KeyCheckValueT = Aws::String>
106 KeySummary& WithKeyCheckValue(KeyCheckValueT&& value) {
107 SetKeyCheckValue(std::forward<KeyCheckValueT>(value));
108 return *this;
109 }
111
113
117 inline bool GetExportable() const { return m_exportable; }
118 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
119 inline void SetExportable(bool value) {
120 m_exportableHasBeenSet = true;
121 m_exportable = value;
122 }
123 inline KeySummary& WithExportable(bool value) {
124 SetExportable(value);
125 return *this;
126 }
128
130
133 inline bool GetEnabled() const { return m_enabled; }
134 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
135 inline void SetEnabled(bool value) {
136 m_enabledHasBeenSet = true;
137 m_enabled = value;
138 }
139 inline KeySummary& WithEnabled(bool value) {
140 SetEnabled(value);
141 return *this;
142 }
144
146
156 inline MultiRegionKeyType GetMultiRegionKeyType() const { return m_multiRegionKeyType; }
157 inline bool MultiRegionKeyTypeHasBeenSet() const { return m_multiRegionKeyTypeHasBeenSet; }
159 m_multiRegionKeyTypeHasBeenSet = true;
160 m_multiRegionKeyType = value;
161 }
164 return *this;
165 }
167
169
170 inline const Aws::String& GetPrimaryRegion() const { return m_primaryRegion; }
171 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
172 template <typename PrimaryRegionT = Aws::String>
173 void SetPrimaryRegion(PrimaryRegionT&& value) {
174 m_primaryRegionHasBeenSet = true;
175 m_primaryRegion = std::forward<PrimaryRegionT>(value);
176 }
177 template <typename PrimaryRegionT = Aws::String>
178 KeySummary& WithPrimaryRegion(PrimaryRegionT&& value) {
179 SetPrimaryRegion(std::forward<PrimaryRegionT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_keyArn;
185
186 KeyState m_keyState{KeyState::NOT_SET};
187
188 KeyAttributes m_keyAttributes;
189
190 Aws::String m_keyCheckValue;
191
192 bool m_exportable{false};
193
194 bool m_enabled{false};
195
197
198 Aws::String m_primaryRegion;
199 bool m_keyArnHasBeenSet = false;
200 bool m_keyStateHasBeenSet = false;
201 bool m_keyAttributesHasBeenSet = false;
202 bool m_keyCheckValueHasBeenSet = false;
203 bool m_exportableHasBeenSet = false;
204 bool m_enabledHasBeenSet = false;
205 bool m_multiRegionKeyTypeHasBeenSet = false;
206 bool m_primaryRegionHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace PaymentCryptography
211} // namespace Aws
KeySummary & WithKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:87
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKeyCheckValue() const
Definition KeySummary.h:98
KeySummary & WithPrimaryRegion(PrimaryRegionT &&value)
Definition KeySummary.h:178
KeySummary & WithMultiRegionKeyType(MultiRegionKeyType value)
Definition KeySummary.h:162
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary()=default
const Aws::String & GetPrimaryRegion() const
Definition KeySummary.h:170
const KeyAttributes & GetKeyAttributes() const
Definition KeySummary.h:79
KeySummary & WithKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:106
KeySummary & WithExportable(bool value)
Definition KeySummary.h:123
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:82
void SetMultiRegionKeyType(MultiRegionKeyType value)
Definition KeySummary.h:158
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKeyArn() const
Definition KeySummary.h:42
void SetKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:101
MultiRegionKeyType GetMultiRegionKeyType() const
Definition KeySummary.h:156
KeySummary & WithKeyArn(KeyArnT &&value)
Definition KeySummary.h:50
KeySummary & WithKeyState(KeyState value)
Definition KeySummary.h:67
void SetPrimaryRegion(PrimaryRegionT &&value)
Definition KeySummary.h:173
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue