AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename KeyModesOfUseT = KeyModesOfUse>
49 void SetKeyModesOfUse(KeyModesOfUseT&& value) { m_keyModesOfUseHasBeenSet = true; m_keyModesOfUse = std::forward<KeyModesOfUseT>(value); }
50 template<typename KeyModesOfUseT = KeyModesOfUse>
51 KeyBlockHeaders& WithKeyModesOfUse(KeyModesOfUseT&& value) { SetKeyModesOfUse(std::forward<KeyModesOfUseT>(value)); return *this;}
53
55
69 inline KeyExportability GetKeyExportability() const { return m_keyExportability; }
70 inline bool KeyExportabilityHasBeenSet() const { return m_keyExportabilityHasBeenSet; }
71 inline void SetKeyExportability(KeyExportability value) { m_keyExportabilityHasBeenSet = true; m_keyExportability = value; }
74
76
80 inline const Aws::String& GetKeyVersion() const { return m_keyVersion; }
81 inline bool KeyVersionHasBeenSet() const { return m_keyVersionHasBeenSet; }
82 template<typename KeyVersionT = Aws::String>
83 void SetKeyVersion(KeyVersionT&& value) { m_keyVersionHasBeenSet = true; m_keyVersion = std::forward<KeyVersionT>(value); }
84 template<typename KeyVersionT = Aws::String>
85 KeyBlockHeaders& WithKeyVersion(KeyVersionT&& value) { SetKeyVersion(std::forward<KeyVersionT>(value)); return *this;}
87
89
98 inline const Aws::Map<Aws::String, Aws::String>& GetOptionalBlocks() const { return m_optionalBlocks; }
99 inline bool OptionalBlocksHasBeenSet() const { return m_optionalBlocksHasBeenSet; }
100 template<typename OptionalBlocksT = Aws::Map<Aws::String, Aws::String>>
101 void SetOptionalBlocks(OptionalBlocksT&& value) { m_optionalBlocksHasBeenSet = true; m_optionalBlocks = std::forward<OptionalBlocksT>(value); }
102 template<typename OptionalBlocksT = Aws::Map<Aws::String, Aws::String>>
103 KeyBlockHeaders& WithOptionalBlocks(OptionalBlocksT&& value) { SetOptionalBlocks(std::forward<OptionalBlocksT>(value)); return *this;}
104 template<typename OptionalBlocksKeyT = Aws::String, typename OptionalBlocksValueT = Aws::String>
105 KeyBlockHeaders& AddOptionalBlocks(OptionalBlocksKeyT&& key, OptionalBlocksValueT&& value) {
106 m_optionalBlocksHasBeenSet = true; m_optionalBlocks.emplace(std::forward<OptionalBlocksKeyT>(key), std::forward<OptionalBlocksValueT>(value)); return *this;
107 }
109 private:
110
111 KeyModesOfUse m_keyModesOfUse;
112 bool m_keyModesOfUseHasBeenSet = false;
113
115 bool m_keyExportabilityHasBeenSet = false;
116
117 Aws::String m_keyVersion;
118 bool m_keyVersionHasBeenSet = false;
119
120 Aws::Map<Aws::String, Aws::String> m_optionalBlocks;
121 bool m_optionalBlocksHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace PaymentCryptography
126} // namespace Aws
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders()=default
KeyBlockHeaders & WithKeyExportability(KeyExportability value)
KeyBlockHeaders & WithOptionalBlocks(OptionalBlocksT &&value)
const Aws::Map< Aws::String, Aws::String > & GetOptionalBlocks() const
AWS_PAYMENTCRYPTOGRAPHY_API Aws::Utils::Json::JsonValue Jsonize() const
KeyBlockHeaders & WithKeyVersion(KeyVersionT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyBlockHeaders & AddOptionalBlocks(OptionalBlocksKeyT &&key, OptionalBlocksValueT &&value)
AWS_PAYMENTCRYPTOGRAPHY_API KeyBlockHeaders(Aws::Utils::Json::JsonView jsonValue)
KeyBlockHeaders & WithKeyModesOfUse(KeyModesOfUseT &&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