AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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 <aws/payment-cryptography/model/MultiRegionKeyType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PaymentCryptography
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary() = default;
39 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API KeySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetKeyArn() const { return m_keyArn; }
49 inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; }
50 template<typename KeyArnT = Aws::String>
51 void SetKeyArn(KeyArnT&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::forward<KeyArnT>(value); }
52 template<typename KeyArnT = Aws::String>
53 KeySummary& WithKeyArn(KeyArnT&& value) { SetKeyArn(std::forward<KeyArnT>(value)); return *this;}
55
57
61 inline KeyState GetKeyState() const { return m_keyState; }
62 inline bool KeyStateHasBeenSet() const { return m_keyStateHasBeenSet; }
63 inline void SetKeyState(KeyState value) { m_keyStateHasBeenSet = true; m_keyState = value; }
64 inline KeySummary& WithKeyState(KeyState value) { SetKeyState(value); return *this;}
66
68
73 inline const KeyAttributes& GetKeyAttributes() const { return m_keyAttributes; }
74 inline bool KeyAttributesHasBeenSet() const { return m_keyAttributesHasBeenSet; }
75 template<typename KeyAttributesT = KeyAttributes>
76 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet = true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
77 template<typename KeyAttributesT = KeyAttributes>
78 KeySummary& WithKeyAttributes(KeyAttributesT&& value) { SetKeyAttributes(std::forward<KeyAttributesT>(value)); return *this;}
80
82
86 inline const Aws::String& GetKeyCheckValue() const { return m_keyCheckValue; }
87 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
88 template<typename KeyCheckValueT = Aws::String>
89 void SetKeyCheckValue(KeyCheckValueT&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::forward<KeyCheckValueT>(value); }
90 template<typename KeyCheckValueT = Aws::String>
91 KeySummary& WithKeyCheckValue(KeyCheckValueT&& value) { SetKeyCheckValue(std::forward<KeyCheckValueT>(value)); return *this;}
93
95
99 inline bool GetExportable() const { return m_exportable; }
100 inline bool ExportableHasBeenSet() const { return m_exportableHasBeenSet; }
101 inline void SetExportable(bool value) { m_exportableHasBeenSet = true; m_exportable = value; }
102 inline KeySummary& WithExportable(bool value) { SetExportable(value); return *this;}
104
106
109 inline bool GetEnabled() const { return m_enabled; }
110 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
111 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
112 inline KeySummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
114
116
117 inline MultiRegionKeyType GetMultiRegionKeyType() const { return m_multiRegionKeyType; }
118 inline bool MultiRegionKeyTypeHasBeenSet() const { return m_multiRegionKeyTypeHasBeenSet; }
119 inline void SetMultiRegionKeyType(MultiRegionKeyType value) { m_multiRegionKeyTypeHasBeenSet = true; m_multiRegionKeyType = value; }
122
124
125 inline const Aws::String& GetPrimaryRegion() const { return m_primaryRegion; }
126 inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; }
127 template<typename PrimaryRegionT = Aws::String>
128 void SetPrimaryRegion(PrimaryRegionT&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::forward<PrimaryRegionT>(value); }
129 template<typename PrimaryRegionT = Aws::String>
130 KeySummary& WithPrimaryRegion(PrimaryRegionT&& value) { SetPrimaryRegion(std::forward<PrimaryRegionT>(value)); return *this;}
132 private:
133
134 Aws::String m_keyArn;
135 bool m_keyArnHasBeenSet = false;
136
137 KeyState m_keyState{KeyState::NOT_SET};
138 bool m_keyStateHasBeenSet = false;
139
140 KeyAttributes m_keyAttributes;
141 bool m_keyAttributesHasBeenSet = false;
142
143 Aws::String m_keyCheckValue;
144 bool m_keyCheckValueHasBeenSet = false;
145
146 bool m_exportable{false};
147 bool m_exportableHasBeenSet = false;
148
149 bool m_enabled{false};
150 bool m_enabledHasBeenSet = false;
151
153 bool m_multiRegionKeyTypeHasBeenSet = false;
154
155 Aws::String m_primaryRegion;
156 bool m_primaryRegionHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace PaymentCryptography
161} // namespace Aws
KeySummary & WithKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:78
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKeyCheckValue() const
Definition KeySummary.h:86
KeySummary & WithPrimaryRegion(PrimaryRegionT &&value)
Definition KeySummary.h:130
KeySummary & WithMultiRegionKeyType(MultiRegionKeyType value)
Definition KeySummary.h:120
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary()=default
const Aws::String & GetPrimaryRegion() const
Definition KeySummary.h:125
const KeyAttributes & GetKeyAttributes() const
Definition KeySummary.h:73
KeySummary & WithKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:91
KeySummary & WithExportable(bool value)
Definition KeySummary.h:102
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAttributes(KeyAttributesT &&value)
Definition KeySummary.h:76
void SetMultiRegionKeyType(MultiRegionKeyType value)
Definition KeySummary.h:119
AWS_PAYMENTCRYPTOGRAPHY_API KeySummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKeyArn() const
Definition KeySummary.h:48
void SetKeyCheckValue(KeyCheckValueT &&value)
Definition KeySummary.h:89
MultiRegionKeyType GetMultiRegionKeyType() const
Definition KeySummary.h:117
KeySummary & WithKeyArn(KeyArnT &&value)
Definition KeySummary.h:53
KeySummary & WithKeyState(KeyState value)
Definition KeySummary.h:64
void SetPrimaryRegion(PrimaryRegionT &&value)
Definition KeySummary.h:128
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue