AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
KeySummary.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/KeyState.h>
10#include <aws/payment-cryptography/model/KeyAttributes.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PaymentCryptography
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary() = default;
38 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
48 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
49 template<typename KeyArnT = Aws::String>
50 void SetKeyArn(KeyArnT&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::forward<KeyArnT>(value); }
51 template<typename KeyArnT = Aws::String>
52 KeySummary& WithKeyArn(KeyArnT&& value) { SetKeyArn(std::forward<KeyArnT>(value)); return *this;}
54
56
60 inline KeyState GetKeyState() const { return m_keyState; }
61 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
62 inline void SetKeyState(KeyState value) { m_keyStateHasBeenSet = true; m_keyState = value; }
63 inline KeySummary& WithKeyState(KeyState value) { SetKeyState(value); return *this;}
65
67
72 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
73 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
74 template<typename KeyAttributesT = KeyAttributes>
75 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
76 template<typename KeyAttributesT = KeyAttributes>
77 KeySummary& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
79
81
85 inline const Aws::String& GetKeyCheckValue() const { return m_keyCheckValue; }
86 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
87 template<typename KeyCheckValueT = Aws::String>
88 void SetKeyCheckValue(KeyCheckValueT&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::forward<KeyCheckValueT>(value); }
89 template<typename KeyCheckValueT = Aws::String>
90 KeySummary& WithKeyCheckValue(KeyCheckValueT&& value) { SetKeyCheckValue(std::forward<KeyCheckValueT>(value)); return *this;}
92
94
98 inline bool GetExportable() const { return m_exportable; }
99 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
100 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
101 inline KeySummary& WithExportable(bool value) { SetExportable(value); return *this;}
103
105
108 inline bool GetEnabled() const { return m_enabled; }
109 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
110 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
111 inline KeySummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
113 private:
114
115 Aws::String m_keyArn;
116 bool m_keyArnHasBeenSet = false;
117
118 KeyState m_keyState{KeyState::NOT_SET};
119 bool m_keyStateHasBeenSet = false;
120
121 KeyAttributes m_keyAttributes;
122 bool m_keyAttributesHasBeenSet = false;
123
124 Aws::String m_keyCheckValue;
125 bool m_keyCheckValueHasBeenSet = false;
126
127 bool m_exportable{false};
128 bool m_exportableHasBeenSet = false;
129
130 bool m_enabled{false};
131 bool m_enabledHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace PaymentCryptography
136} // namespace Aws
KeySummary & WithKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:77
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKeyCheckValue() const
Definition KeySummary.h:85
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary()=default
const KeyAttributes & GetKeyAttributes() const
Definition KeySummary.h:72
KeySummary & WithKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:90
KeySummary & WithExportable(bool value)
Definition KeySummary.h:101
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:75
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKeyArn() const
Definition KeySummary.h:47
void SetKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:88
KeySummary & WithKeyArn(KeyArnT &&value)
Definition KeySummary.h:52
KeySummary & WithKeyState(KeyState value)
Definition KeySummary.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue