AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWrappingKeyArn(const Aws::String& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = value; }
50 inline void SetWrappingKeyArn(Aws::String&& value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn = std::move(value); }
51 inline void SetWrappingKeyArn(const char* value) { m_wrappingKeyArnHasBeenSet = true; m_wrappingKeyArn.assign(value); }
52 inline WrappedKey& WithWrappingKeyArn(const Aws::String& value) { SetWrappingKeyArn(value); return *this;}
53 inline WrappedKey& WithWrappingKeyArn(Aws::String&& value) { SetWrappingKeyArn(std::move(value)); return *this;}
54 inline WrappedKey& WithWrappingKeyArn(const char* value) { SetWrappingKeyArn(value); return *this;}
56
58
61 inline const WrappedKeyMaterialFormat& GetWrappedKeyMaterialFormat() const{ return m_wrappedKeyMaterialFormat; }
62 inline bool WrappedKeyMaterialFormatHasBeenSet() const { return m_wrappedKeyMaterialFormatHasBeenSet; }
63 inline void SetWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = value; }
64 inline void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat&& value) { m_wrappedKeyMaterialFormatHasBeenSet = true; m_wrappedKeyMaterialFormat = std::move(value); }
68
70
74 inline const Aws::String& GetKeyMaterial() const{ return m_keyMaterial; }
75 inline bool KeyMaterialHasBeenSet() const { return m_keyMaterialHasBeenSet; }
76 inline void SetKeyMaterial(const Aws::String& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = value; }
77 inline void SetKeyMaterial(Aws::String&& value) { m_keyMaterialHasBeenSet = true; m_keyMaterial = std::move(value); }
78 inline void SetKeyMaterial(const char* value) { m_keyMaterialHasBeenSet = true; m_keyMaterial.assign(value); }
79 inline WrappedKey& WithKeyMaterial(const Aws::String& value) { SetKeyMaterial(value); return *this;}
80 inline WrappedKey& WithKeyMaterial(Aws::String&& value) { SetKeyMaterial(std::move(value)); return *this;}
81 inline WrappedKey& WithKeyMaterial(const char* value) { SetKeyMaterial(value); return *this;}
83
85
89 inline const Aws::String& GetKeyCheckValue() const{ return m_keyCheckValue; }
90 inline bool KeyCheckValueHasBeenSet() const { return m_keyCheckValueHasBeenSet; }
91 inline void SetKeyCheckValue(const Aws::String& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = value; }
92 inline void SetKeyCheckValue(Aws::String&& value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue = std::move(value); }
93 inline void SetKeyCheckValue(const char* value) { m_keyCheckValueHasBeenSet = true; m_keyCheckValue.assign(value); }
94 inline WrappedKey& WithKeyCheckValue(const Aws::String& value) { SetKeyCheckValue(value); return *this;}
95 inline WrappedKey& WithKeyCheckValue(Aws::String&& value) { SetKeyCheckValue(std::move(value)); return *this;}
96 inline WrappedKey& WithKeyCheckValue(const char* value) { SetKeyCheckValue(value); return *this;}
98
100
109 inline const KeyCheckValueAlgorithm& GetKeyCheckValueAlgorithm() const{ return m_keyCheckValueAlgorithm; }
110 inline bool KeyCheckValueAlgorithmHasBeenSet() const { return m_keyCheckValueAlgorithmHasBeenSet; }
111 inline void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = value; }
112 inline void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm&& value) { m_keyCheckValueAlgorithmHasBeenSet = true; m_keyCheckValueAlgorithm = std::move(value); }
116 private:
117
118 Aws::String m_wrappingKeyArn;
119 bool m_wrappingKeyArnHasBeenSet = false;
120
121 WrappedKeyMaterialFormat m_wrappedKeyMaterialFormat;
122 bool m_wrappedKeyMaterialFormatHasBeenSet = false;
123
124 Aws::String m_keyMaterial;
125 bool m_keyMaterialHasBeenSet = false;
126
127 Aws::String m_keyCheckValue;
128 bool m_keyCheckValueHasBeenSet = false;
129
130 KeyCheckValueAlgorithm m_keyCheckValueAlgorithm;
131 bool m_keyCheckValueAlgorithmHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace PaymentCryptography
136} // namespace Aws
WrappedKey & WithKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
Definition WrappedKey.h:114
WrappedKey & WithKeyMaterial(const Aws::String &value)
Definition WrappedKey.h:79
void SetWrappingKeyArn(Aws::String &&value)
Definition WrappedKey.h:50
const Aws::String & GetKeyMaterial() const
Definition WrappedKey.h:74
void SetKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
Definition WrappedKey.h:111
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
WrappedKey & WithKeyCheckValueAlgorithm(const KeyCheckValueAlgorithm &value)
Definition WrappedKey.h:113
const WrappedKeyMaterialFormat & GetWrappedKeyMaterialFormat() const
Definition WrappedKey.h:61
WrappedKey & WithWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat &value)
Definition WrappedKey.h:65
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey(Aws::Utils::Json::JsonView jsonValue)
WrappedKey & WithWrappingKeyArn(const char *value)
Definition WrappedKey.h:54
WrappedKey & WithWrappedKeyMaterialFormat(WrappedKeyMaterialFormat &&value)
Definition WrappedKey.h:66
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey & operator=(Aws::Utils::Json::JsonView jsonValue)
WrappedKey & WithKeyCheckValue(const char *value)
Definition WrappedKey.h:96
WrappedKey & WithKeyCheckValue(const Aws::String &value)
Definition WrappedKey.h:94
const KeyCheckValueAlgorithm & GetKeyCheckValueAlgorithm() const
Definition WrappedKey.h:109
void SetKeyCheckValue(Aws::String &&value)
Definition WrappedKey.h:92
void SetKeyMaterial(const Aws::String &value)
Definition WrappedKey.h:76
WrappedKey & WithKeyMaterial(const char *value)
Definition WrappedKey.h:81
void SetWrappedKeyMaterialFormat(const WrappedKeyMaterialFormat &value)
Definition WrappedKey.h:63
void SetWrappingKeyArn(const Aws::String &value)
Definition WrappedKey.h:49
const Aws::String & GetWrappingKeyArn() const
Definition WrappedKey.h:47
void SetWrappingKeyArn(const char *value)
Definition WrappedKey.h:51
void SetKeyMaterial(Aws::String &&value)
Definition WrappedKey.h:77
void SetKeyCheckValue(const char *value)
Definition WrappedKey.h:93
AWS_PAYMENTCRYPTOGRAPHY_API WrappedKey()
void SetWrappedKeyMaterialFormat(WrappedKeyMaterialFormat &&value)
Definition WrappedKey.h:64
WrappedKey & WithKeyCheckValue(Aws::String &&value)
Definition WrappedKey.h:95
void SetKeyCheckValue(const Aws::String &value)
Definition WrappedKey.h:91
WrappedKey & WithWrappingKeyArn(const Aws::String &value)
Definition WrappedKey.h:52
WrappedKey & WithWrappingKeyArn(Aws::String &&value)
Definition WrappedKey.h:53
WrappedKey & WithKeyMaterial(Aws::String &&value)
Definition WrappedKey.h:80
void SetKeyCheckValueAlgorithm(KeyCheckValueAlgorithm &&value)
Definition WrappedKey.h:112
const Aws::String & GetKeyCheckValue() const
Definition WrappedKey.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue