AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
KmsEncryptionSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VerifiedPermissions {
21namespace Model {
22
35 public:
36 AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings() = default;
37 AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
50 inline const Aws::String& GetKey() const { return m_key; }
51 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 template <typename KeyT = Aws::String>
53 void SetKey(KeyT&& value) {
54 m_keyHasBeenSet = true;
55 m_key = std::forward<KeyT>(value);
56 }
57 template <typename KeyT = Aws::String>
59 SetKey(std::forward<KeyT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const { return m_encryptionContext; }
69 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
70 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
71 void SetEncryptionContext(EncryptionContextT&& value) {
72 m_encryptionContextHasBeenSet = true;
73 m_encryptionContext = std::forward<EncryptionContextT>(value);
74 }
75 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
76 KmsEncryptionSettings& WithEncryptionContext(EncryptionContextT&& value) {
77 SetEncryptionContext(std::forward<EncryptionContextT>(value));
78 return *this;
79 }
80 template <typename EncryptionContextKeyT = Aws::String, typename EncryptionContextValueT = Aws::String>
81 KmsEncryptionSettings& AddEncryptionContext(EncryptionContextKeyT&& key, EncryptionContextValueT&& value) {
82 m_encryptionContextHasBeenSet = true;
83 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_key;
89
90 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
91 bool m_keyHasBeenSet = false;
92 bool m_encryptionContextHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace VerifiedPermissions
97} // namespace Aws
KmsEncryptionSettings & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings(Aws::Utils::Json::JsonView jsonValue)
KmsEncryptionSettings & WithEncryptionContext(EncryptionContextT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings()=default
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
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