AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
KmsEncryptionState.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 KmsEncryptionState() = default;
37 AWS_VERIFIEDPERMISSIONS_API KmsEncryptionState(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VERIFIEDPERMISSIONS_API KmsEncryptionState& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template <typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) {
51 m_keyHasBeenSet = true;
52 m_key = std::forward<KeyT>(value);
53 }
54 template <typename KeyT = Aws::String>
55 KmsEncryptionState& WithKey(KeyT&& value) {
56 SetKey(std::forward<KeyT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContext() const { return m_encryptionContext; }
66 inline bool EncryptionContextHasBeenSet() const { return m_encryptionContextHasBeenSet; }
67 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
68 void SetEncryptionContext(EncryptionContextT&& value) {
69 m_encryptionContextHasBeenSet = true;
70 m_encryptionContext = std::forward<EncryptionContextT>(value);
71 }
72 template <typename EncryptionContextT = Aws::Map<Aws::String, Aws::String>>
73 KmsEncryptionState& WithEncryptionContext(EncryptionContextT&& value) {
74 SetEncryptionContext(std::forward<EncryptionContextT>(value));
75 return *this;
76 }
77 template <typename EncryptionContextKeyT = Aws::String, typename EncryptionContextValueT = Aws::String>
78 KmsEncryptionState& AddEncryptionContext(EncryptionContextKeyT&& key, EncryptionContextValueT&& value) {
79 m_encryptionContextHasBeenSet = true;
80 m_encryptionContext.emplace(std::forward<EncryptionContextKeyT>(key), std::forward<EncryptionContextValueT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_key;
86
87 Aws::Map<Aws::String, Aws::String> m_encryptionContext;
88 bool m_keyHasBeenSet = false;
89 bool m_encryptionContextHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace VerifiedPermissions
94} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionContext(EncryptionContextT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContext() const
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionState()=default
KmsEncryptionState & AddEncryptionContext(EncryptionContextKeyT &&key, EncryptionContextValueT &&value)
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionState(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API KmsEncryptionState & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsEncryptionState & WithEncryptionContext(EncryptionContextT &&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