AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WrappedKey.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/WrappedKeyMaterialFormat.h>
10#include <aws/payment-cryptography/model/KeyCheckValueAlgorithm.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 WrappedKey() = default;
38 AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetWrappingKeyArn() const { return m_wrappingKeyArn; }
48 inline bool WrappingKeyArnHasBeenSet() const { return m_wrappingKeyArnHasBeenSet; }
49 template<typename WrappingKeyArnT = Aws::String>
50 void SetWrappingKeyArn(WrappingKeyArnT&& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = std::forward<WrappingKeyArnT>(value); }
51 template<typename WrappingKeyArnT = Aws::String>
52 WrappedKey& WithWrappingKeyArn(WrappingKeyArnT&& value) { SetWrappingKeyArn(std::forward<WrappingKeyArnT>(value)); return *this;}
54
56
59 inline WrappedKeyMaterialFormat GetWrappedKeyMaterialFormat() const { return m_wrappedKeyMaterialFormat; }
60 inline bool WrappedKeyMaterialFormatHasBeenSet() const { return m_wrappedKeyMaterialFormatHasBeenSet; }
61 inline void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = value; }
64
66
70 inline const Aws::String& GetKeyMaterial() const { return m_keyMaterial; }
71 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
72 template<typename KeyMaterialT = Aws::String>
73 void SetKeyMaterial(KeyMaterialT&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::forward<KeyMaterialT>(value); }
74 template<typename KeyMaterialT = Aws::String>
75 WrappedKey& WithKeyMaterial(KeyMaterialT&& value) { SetKeyMaterial(std::forward<KeyMaterialT>(value)); return *this;}
77
79
83 inline const Aws::String& GetKeyCheckValue() const { return m_keyCheckValue; }
84 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
85 template<typename KeyCheckValueT = Aws::String>
86 void SetKeyCheckValue(KeyCheckValueT&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::forward<KeyCheckValueT>(value); }
87 template<typename KeyCheckValueT = Aws::String>
88 WrappedKey& WithKeyCheckValue(KeyCheckValueT&& value) { SetKeyCheckValue(std::forward<KeyCheckValueT>(value)); return *this;}
90
92
101 inline KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const { return m_keyCheckValueAlgorithm; }
102 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
103 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
106 private:
107
108 Aws::String m_wrappingKeyArn;
109 bool m_wrappingKeyArnHasBeenSet = false;
110
112 bool m_wrappedKeyMaterialFormatHasBeenSet = false;
113
114 Aws::String m_keyMaterial;
115 bool m_keyMaterialHasBeenSet = false;
116
117 Aws::String m_keyCheckValue;
118 bool m_keyCheckValueHasBeenSet = false;
119
121 bool m_keyCheckValueAlgorithmHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace PaymentCryptography
126} // namespace Aws
WrappedKey & WithKeyCheckValue(KeyCheckValueT &&value)
Definition WrappedKey.h:88
const Aws::String & GetKeyMaterial() const
Definition WrappedKey.h:70
WrappedKeyMaterialFormat GetWrappedKeyMaterialFormat() const
Definition WrappedKey.h:59
KeyCheckValueAlgorithm GetKeyCheckValueAlgorithm() const
Definition WrappedKey.h:101
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyCheckValue(KeyCheckValueT &&value)
Definition WrappedKey.h:86
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:52
void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat value)
Definition WrappedKey.h:61
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:103
void SetWrappingKeyArn(WrappingKeyArnT &&value)
Definition WrappedKey.h:50
const Aws::String & GetWrappingKeyArn() const
Definition WrappedKey.h:47
WrappedKey & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm value)
Definition WrappedKey.h:104
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey()=default
WrappedKey & WithWrappedKeyMaterialFormat(WrappedKeyMaterialFormat value)
Definition WrappedKey.h:62
WrappedKey & WithKeyMaterial(KeyMaterialT &&value)
Definition WrappedKey.h:75
void SetKeyMaterial(KeyMaterialT &&value)
Definition WrappedKey.h:73
const Aws::String & GetKeyCheckValue() const
Definition WrappedKey.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue