AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyBlockHeaders.h
1
6#pragma once
7#include <aws/payment-cryptography/PaymentCryptography_EXPORTS.h>
8#include <aws/payment-cryptography/model/KeyModesOfUse.h>
9#include <aws/payment-cryptography/model/KeyExportability.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PaymentCryptography
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders();
39 AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const KeyModesOfUse& GetKeyModesOfUse() const{ return m_keyModesOfUse; }
47 inline bool KeyModesOfUseHasBeenSet() const { return m_keyModesOfUseHasBeenSet; }
48 inline void SetKeyModesOfUse(const KeyModesOfUse& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = value; }
49 inline void SetKeyModesOfUse(KeyModesOfUse&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::move(value); }
50 inline KeyBlockHeaders& WithKeyModesOfUse(const KeyModesOfUse& value) { SetKeyModesOfUse(value); return *this;}
51 inline KeyBlockHeaders& WithKeyModesOfUse(KeyModesOfUse&& value) { SetKeyModesOfUse(std::move(value)); return *this;}
53
55
69 inline const KeyExportability& GetKeyExportability() const{ return m_keyExportability; }
70 inline bool KeyExportabilityHasBeenSet() const { return m_keyExportabilityHasBeenSet; }
71 inline void SetKeyExportability(const KeyExportability& value) { m_keyExportabilityHasBeenSet = true; m_keyExportability = value; }
72 inline void SetKeyExportability(KeyExportability&& value) { m_keyExportabilityHasBeenSet = true; m_keyExportability = std::move(value); }
73 inline KeyBlockHeaders& WithKeyExportability(const KeyExportability& value) { SetKeyExportability(value); return *this;}
74 inline KeyBlockHeaders& WithKeyExportability(KeyExportability&& value) { SetKeyExportability(std::move(value)); return *this;}
76
78
82 inline const Aws::String& GetKeyVersion() const{ return m_keyVersion; }
83 inline bool KeyVersionHasBeenSet() const { return m_keyVersionHasBeenSet; }
84 inline void SetKeyVersion(const Aws::String& value) { m_keyVersionHasBeenSet = true; m_keyVersion = value; }
85 inline void SetKeyVersion(Aws::String&& value) { m_keyVersionHasBeenSet = true; m_keyVersion = std::move(value); }
86 inline void SetKeyVersion(const char* value) { m_keyVersionHasBeenSet = true; m_keyVersion.assign(value); }
87 inline KeyBlockHeaders& WithKeyVersion(const Aws::String& value) { SetKeyVersion(value); return *this;}
88 inline KeyBlockHeaders& WithKeyVersion(Aws::String&& value) { SetKeyVersion(std::move(value)); return *this;}
89 inline KeyBlockHeaders& WithKeyVersion(const char* value) { SetKeyVersion(value); return *this;}
91
93
102 inline const Aws::Map<Aws::String, Aws::String>& GetOptionalBlocks() const{ return m_optionalBlocks; }
103 inline bool OptionalBlocksHasBeenSet() const { return m_optionalBlocksHasBeenSet; }
104 inline void SetOptionalBlocks(const Aws::Map<Aws::String, Aws::String>& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks = value; }
105 inline void SetOptionalBlocks(Aws::Map<Aws::String, Aws::String>&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks = std::move(value); }
108 inline KeyBlockHeaders& AddOptionalBlocks(const Aws::String& key, const Aws::String& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, value); return *this; }
109 inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, const Aws::String& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), value); return *this; }
110 inline KeyBlockHeaders& AddOptionalBlocks(const Aws::String& key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, std::move(value)); return *this; }
111 inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), std::move(value)); return *this; }
112 inline KeyBlockHeaders& AddOptionalBlocks(const char* key, Aws::String&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, std::move(value)); return *this; }
113 inline KeyBlockHeaders& AddOptionalBlocks(Aws::String&& key, const char* value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::move(key), value); return *this; }
114 inline KeyBlockHeaders& AddOptionalBlocks(const char* key, const char* value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(key, value); return *this; }
116 private:
117
118 KeyModesOfUse m_keyModesOfUse;
119 bool m_keyModesOfUseHasBeenSet = false;
120
121 KeyExportability m_keyExportability;
122 bool m_keyExportabilityHasBeenSet = false;
123
124 Aws::String m_keyVersion;
125 bool m_keyVersionHasBeenSet = false;
126
127 Aws::Map<Aws::String, Aws::String> m_optionalBlocks;
128 bool m_optionalBlocksHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace PaymentCryptography
133} // namespace Aws
KeyBlockHeaders & WithKeyExportability(const KeyExportability &value)
KeyBlockHeaders & WithOptionalBlocks(const Aws::Map< Aws::String, Aws::String > &value)
KeyBlockHeaders & AddOptionalBlocks(Aws::String &&key, const char *value)
KeyBlockHeaders & WithOptionalBlocks(Aws::Map< Aws::String, Aws::String > &&value)
KeyBlockHeaders & AddOptionalBlocks(const Aws::String &key, const Aws::String &value)
KeyBlockHeaders & WithKeyVersion(Aws::String &&value)
KeyBlockHeaders & AddOptionalBlocks(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetOptionalBlocks() const
void SetKeyModesOfUse(const KeyModesOfUse &value)
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
KeyBlockHeaders & WithKeyVersion(const char *value)
KeyBlockHeaders & WithKeyModesOfUse(const KeyModesOfUse &value)
void SetOptionalBlocks(const Aws::Map< Aws::String, Aws::String > &value)
KeyBlockHeaders & AddOptionalBlocks(const Aws::String &key, Aws::String &&value)
const KeyExportability & GetKeyExportability() const
KeyBlockHeaders & WithKeyVersion(const Aws::String &value)
KeyBlockHeaders & WithKeyExportability(KeyExportability &&value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders()
KeyBlockHeaders & WithKeyModesOfUse(KeyModesOfUse &&value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyBlockHeaders & AddOptionalBlocks(const char *key, Aws::String &&value)
void SetKeyExportability(KeyExportability &&value)
void SetKeyExportability(const KeyExportability &value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders(Aws::Utils::Json::JsonView jsonValue)
KeyBlockHeaders & AddOptionalBlocks(const char *key, const char *value)
KeyBlockHeaders & AddOptionalBlocks(Aws::String &&key, Aws::String &&value)
void SetOptionalBlocks(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue