AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
KeyModesOfUse.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace PaymentCryptography {
17namespace Model {
18
27 public:
28 AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse() = default;
29 AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse(Aws::Utils::Json::JsonView jsonValue);
30 AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
38 inline bool GetEncrypt() const { return m_encrypt; }
39 inline bool EncryptHasBeenSet() const { return m_encryptHasBeenSet; }
40 inline void SetEncrypt(bool value) {
41 m_encryptHasBeenSet = true;
42 m_encrypt = value;
43 }
44 inline KeyModesOfUse& WithEncrypt(bool value) {
45 SetEncrypt(value);
46 return *this;
47 }
49
51
55 inline bool GetDecrypt() const { return m_decrypt; }
56 inline bool DecryptHasBeenSet() const { return m_decryptHasBeenSet; }
57 inline void SetDecrypt(bool value) {
58 m_decryptHasBeenSet = true;
59 m_decrypt = value;
60 }
61 inline KeyModesOfUse& WithDecrypt(bool value) {
62 SetDecrypt(value);
63 return *this;
64 }
66
68
72 inline bool GetWrap() const { return m_wrap; }
73 inline bool WrapHasBeenSet() const { return m_wrapHasBeenSet; }
74 inline void SetWrap(bool value) {
75 m_wrapHasBeenSet = true;
76 m_wrap = value;
77 }
78 inline KeyModesOfUse& WithWrap(bool value) {
79 SetWrap(value);
80 return *this;
81 }
83
85
89 inline bool GetUnwrap() const { return m_unwrap; }
90 inline bool UnwrapHasBeenSet() const { return m_unwrapHasBeenSet; }
91 inline void SetUnwrap(bool value) {
92 m_unwrapHasBeenSet = true;
93 m_unwrap = value;
94 }
95 inline KeyModesOfUse& WithUnwrap(bool value) {
96 SetUnwrap(value);
97 return *this;
98 }
100
102
106 inline bool GetGenerate() const { return m_generate; }
107 inline bool GenerateHasBeenSet() const { return m_generateHasBeenSet; }
108 inline void SetGenerate(bool value) {
109 m_generateHasBeenSet = true;
110 m_generate = value;
111 }
112 inline KeyModesOfUse& WithGenerate(bool value) {
113 SetGenerate(value);
114 return *this;
115 }
117
119
123 inline bool GetSign() const { return m_sign; }
124 inline bool SignHasBeenSet() const { return m_signHasBeenSet; }
125 inline void SetSign(bool value) {
126 m_signHasBeenSet = true;
127 m_sign = value;
128 }
129 inline KeyModesOfUse& WithSign(bool value) {
130 SetSign(value);
131 return *this;
132 }
134
136
140 inline bool GetVerify() const { return m_verify; }
141 inline bool VerifyHasBeenSet() const { return m_verifyHasBeenSet; }
142 inline void SetVerify(bool value) {
143 m_verifyHasBeenSet = true;
144 m_verify = value;
145 }
146 inline KeyModesOfUse& WithVerify(bool value) {
147 SetVerify(value);
148 return *this;
149 }
151
153
157 inline bool GetDeriveKey() const { return m_deriveKey; }
158 inline bool DeriveKeyHasBeenSet() const { return m_deriveKeyHasBeenSet; }
159 inline void SetDeriveKey(bool value) {
160 m_deriveKeyHasBeenSet = true;
161 m_deriveKey = value;
162 }
163 inline KeyModesOfUse& WithDeriveKey(bool value) {
164 SetDeriveKey(value);
165 return *this;
166 }
168
170
175 inline bool GetNoRestrictions() const { return m_noRestrictions; }
176 inline bool NoRestrictionsHasBeenSet() const { return m_noRestrictionsHasBeenSet; }
177 inline void SetNoRestrictions(bool value) {
178 m_noRestrictionsHasBeenSet = true;
179 m_noRestrictions = value;
180 }
181 inline KeyModesOfUse& WithNoRestrictions(bool value) {
182 SetNoRestrictions(value);
183 return *this;
184 }
186 private:
187 bool m_encrypt{false};
188
189 bool m_decrypt{false};
190
191 bool m_wrap{false};
192
193 bool m_unwrap{false};
194
195 bool m_generate{false};
196
197 bool m_sign{false};
198
199 bool m_verify{false};
200
201 bool m_deriveKey{false};
202
203 bool m_noRestrictions{false};
204 bool m_encryptHasBeenSet = false;
205 bool m_decryptHasBeenSet = false;
206 bool m_wrapHasBeenSet = false;
207 bool m_unwrapHasBeenSet = false;
208 bool m_generateHasBeenSet = false;
209 bool m_signHasBeenSet = false;
210 bool m_verifyHasBeenSet = false;
211 bool m_deriveKeyHasBeenSet = false;
212 bool m_noRestrictionsHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace PaymentCryptography
217} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse(Aws::Utils::Json::JsonView jsonValue)
KeyModesOfUse & WithNoRestrictions(bool value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTCRYPTOGRAPHY_API KeyModesOfUse()=default
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue