AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
WrappedKey.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/KeyCheckValueAlgorithm.h>
10#include <aws/payment-cryptography/model/WrappedKeyMaterialFormat.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace PaymentCryptography {
22namespace Model {
23
31 public:
32 AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey() = default;
33 AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetWrappingKeyArn() const { return m_wrappingKeyArn; }
42 inline bool WrappingKeyArnHasBeenSet() const { return m_wrappingKeyArnHasBeenSet; }
43 template <typename WrappingKeyArnT = Aws::String>
44 void SetWrappingKeyArn(WrappingKeyArnT&& value) {
45 m_wrappingKeyArnHasBeenSet = true;
46 m_wrappingKeyArn = std::forward<WrappingKeyArnT>(value);
47 }
48 template <typename WrappingKeyArnT = Aws::String>
49 WrappedKey& WithWrappingKeyArn(WrappingKeyArnT&& value) {
50 SetWrappingKeyArn(std::forward<WrappingKeyArnT>(value));
51 return *this;
52 }
54
56
59 inline WrappedKeyMaterialFormat GetWrappedKeyMaterialFormat() const { return m_wrappedKeyMaterialFormat; }
60 inline bool WrappedKeyMaterialFormatHasBeenSet() const { return m_wrappedKeyMaterialFormatHasBeenSet; }
62 m_wrappedKeyMaterialFormatHasBeenSet = true;
63 m_wrappedKeyMaterialFormat = value;
64 }
67 return *this;
68 }
70
72
76 inline const Aws::String& GetKeyMaterial() const { return m_keyMaterial; }
77 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
78 template <typename KeyMaterialT = Aws::String>
79 void SetKeyMaterial(KeyMaterialT&& value) {
80 m_keyMaterialHasBeenSet = true;
81 m_keyMaterial = std::forward<KeyMaterialT>(value);
82 }
83 template <typename KeyMaterialT = Aws::String>
84 WrappedKey& WithKeyMaterial(KeyMaterialT&& value) {
85 SetKeyMaterial(std::forward<KeyMaterialT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetKeyCheckValue() const { return m_keyCheckValue; }
96 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
97 template <typename KeyCheckValueT = Aws::String>
98 void SetKeyCheckValue(KeyCheckValueT&& value) {
99 m_keyCheckValueHasBeenSet = true;
100 m_keyCheckValue = std::forward<KeyCheckValueT>(value);
101 }
102 template <typename KeyCheckValueT = Aws::String>
103 WrappedKey& WithKeyCheckValue(KeyCheckValueT&& value) {
104 SetKeyCheckValue(std::forward<KeyCheckValueT>(value));
105 return *this;
106 }
108
110
119 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
120 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
122 m_keyCheckValueAlgorithmHasBeenSet = true;
123 m_keyCheckValueAlgorithm = value;
124 }
127 return *this;
128 }
130 private:
131 Aws::String m_wrappingKeyArn;
132
134
135 Aws::String m_keyMaterial;
136
137 Aws::String m_keyCheckValue;
138
140 bool m_wrappingKeyArnHasBeenSet = false;
141 bool m_wrappedKeyMaterialFormatHasBeenSet = false;
142 bool m_keyMaterialHasBeenSet = false;
143 bool m_keyCheckValueHasBeenSet = false;
144 bool m_keyCheckValueAlgorithmHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace PaymentCryptography
149} // namespace Aws
WrappedKey & WithKeyCheckValue(KeyCheckValueT &&value)
Definition WrappedKey.h:103
const Aws::String & GetKeyMaterial() const
Definition WrappedKey.h:76
WrappedKeyMaterialFormat GetWrappedKeyMaterialFormat() const
Definition WrappedKey.h:59
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
Definition WrappedKey.h:119
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyCheckValue(KeyCheckValueT &&value)
Definition WrappedKey.h:98
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey(Aws::Utils::Json::JsonView jsonValue)
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey & operator=(Aws::Utils::Json::JsonView jsonValue)
WrappedKey & WithWrappingKeyArn(WrappingKeyArnT &&value)
Definition WrappedKey.h:49
void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat value)
Definition WrappedKey.h:61
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:121
void SetWrappingKeyArn(WrappingKeyArnT &&value)
Definition WrappedKey.h:44
const Aws::String & GetWrappingKeyArn() const
Definition WrappedKey.h:41
WrappedKey & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:125
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey()=default
WrappedKey & WithWrappedKeyMaterialFormat(WrappedKeyMaterialFormat value)
Definition WrappedKey.h:65
WrappedKey & WithKeyMaterial(KeyMaterialT &&value)
Definition WrappedKey.h:84
void SetKeyMaterial(KeyMaterialT &&value)
Definition WrappedKey.h:79
const Aws::String & GetKeyCheckValue() const
Definition WrappedKey.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue