AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
WrappedKey.h
1
6#pragma once
7#include <aws/payment-cryptography-data/PaymentCryptographyData_EXPORTS.h>
8#include <aws/payment-cryptography-data/model/KeyCheckValueAlgorithm.h>
9#include <aws/payment-cryptography-data/model/WrappedKeyMaterial.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PaymentCryptographyData {
21namespace Model {
22
30 public:
31 AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey() = default;
32 AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const WrappedKeyMaterial& GetWrappedKeyMaterial() const { return m_wrappedKeyMaterial; }
41 inline bool WrappedKeyMaterialHasBeenSet() const { return m_wrappedKeyMaterialHasBeenSet; }
42 template <typename WrappedKeyMaterialT = WrappedKeyMaterial>
43 void SetWrappedKeyMaterial(WrappedKeyMaterialT&& value) {
44 m_wrappedKeyMaterialHasBeenSet = true;
45 m_wrappedKeyMaterial = std::forward<WrappedKeyMaterialT>(value);
46 }
47 template <typename WrappedKeyMaterialT = WrappedKeyMaterial>
48 WrappedKey& WithWrappedKeyMaterial(WrappedKeyMaterialT&& value) {
49 SetWrappedKeyMaterial(std::forward<WrappedKeyMaterialT>(value));
50 return *this;
51 }
53
55
64 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
65 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
67 m_keyCheckValueAlgorithmHasBeenSet = true;
68 m_keyCheckValueAlgorithm = value;
69 }
72 return *this;
73 }
75 private:
76 WrappedKeyMaterial m_wrappedKeyMaterial;
77
79 bool m_wrappedKeyMaterialHasBeenSet = false;
80 bool m_keyCheckValueAlgorithmHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace PaymentCryptographyData
85} // namespace Aws
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:66
WrappedKey & WithWrappedKeyMaterial(WrappedKeyMaterialT &&value)
Definition WrappedKey.h:48
AWS_PAYMENTCRYPTOGRAPHYDATA_API Aws::Utils::Json::JsonValue Jsonize() const
WrappedKey & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:70
AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey(Aws::Utils::Json::JsonView jsonValue)
const WrappedKeyMaterial & GetWrappedKeyMaterial() const
Definition WrappedKey.h:40
AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWrappedKeyMaterial(WrappedKeyMaterialT &&value)
Definition WrappedKey.h:43
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
Definition WrappedKey.h:64
AWS_PAYMENTCRYPTOGRAPHYDATA_API WrappedKey()=default
Aws::Utils::Json::JsonValue JsonValue