AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
KmsGrantConstraints.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AccessAnalyzer {
21namespace Model {
22
37 public:
38 AWS_ACCESSANALYZER_API KmsGrantConstraints() = default;
39 AWS_ACCESSANALYZER_API KmsGrantConstraints(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API KmsGrantConstraints& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
51 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextEquals() const { return m_encryptionContextEquals; }
52 inline bool EncryptionContextEqualsHasBeenSet() const { return m_encryptionContextEqualsHasBeenSet; }
53 template <typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
54 void SetEncryptionContextEquals(EncryptionContextEqualsT&& value) {
55 m_encryptionContextEqualsHasBeenSet = true;
56 m_encryptionContextEquals = std::forward<EncryptionContextEqualsT>(value);
57 }
58 template <typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
59 KmsGrantConstraints& WithEncryptionContextEquals(EncryptionContextEqualsT&& value) {
60 SetEncryptionContextEquals(std::forward<EncryptionContextEqualsT>(value));
61 return *this;
62 }
63 template <typename EncryptionContextEqualsKeyT = Aws::String, typename EncryptionContextEqualsValueT = Aws::String>
64 KmsGrantConstraints& AddEncryptionContextEquals(EncryptionContextEqualsKeyT&& key, EncryptionContextEqualsValueT&& value) {
65 m_encryptionContextEqualsHasBeenSet = true;
66 m_encryptionContextEquals.emplace(std::forward<EncryptionContextEqualsKeyT>(key), std::forward<EncryptionContextEqualsValueT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextSubset() const { return m_encryptionContextSubset; }
81 inline bool EncryptionContextSubsetHasBeenSet() const { return m_encryptionContextSubsetHasBeenSet; }
82 template <typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
83 void SetEncryptionContextSubset(EncryptionContextSubsetT&& value) {
84 m_encryptionContextSubsetHasBeenSet = true;
85 m_encryptionContextSubset = std::forward<EncryptionContextSubsetT>(value);
86 }
87 template <typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
88 KmsGrantConstraints& WithEncryptionContextSubset(EncryptionContextSubsetT&& value) {
89 SetEncryptionContextSubset(std::forward<EncryptionContextSubsetT>(value));
90 return *this;
91 }
92 template <typename EncryptionContextSubsetKeyT = Aws::String, typename EncryptionContextSubsetValueT = Aws::String>
93 KmsGrantConstraints& AddEncryptionContextSubset(EncryptionContextSubsetKeyT&& key, EncryptionContextSubsetValueT&& value) {
94 m_encryptionContextSubsetHasBeenSet = true;
95 m_encryptionContextSubset.emplace(std::forward<EncryptionContextSubsetKeyT>(key), std::forward<EncryptionContextSubsetValueT>(value));
96 return *this;
97 }
99 private:
100 Aws::Map<Aws::String, Aws::String> m_encryptionContextEquals;
101
102 Aws::Map<Aws::String, Aws::String> m_encryptionContextSubset;
103 bool m_encryptionContextEqualsHasBeenSet = false;
104 bool m_encryptionContextSubsetHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace AccessAnalyzer
109} // namespace Aws
AWS_ACCESSANALYZER_API KmsGrantConstraints(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextSubset() const
void SetEncryptionContextEquals(EncryptionContextEqualsT &&value)
KmsGrantConstraints & WithEncryptionContextEquals(EncryptionContextEqualsT &&value)
AWS_ACCESSANALYZER_API KmsGrantConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsGrantConstraints & AddEncryptionContextSubset(EncryptionContextSubsetKeyT &&key, EncryptionContextSubsetValueT &&value)
KmsGrantConstraints & AddEncryptionContextEquals(EncryptionContextEqualsKeyT &&key, EncryptionContextEqualsValueT &&value)
KmsGrantConstraints & WithEncryptionContextSubset(EncryptionContextSubsetT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextEquals() const
void SetEncryptionContextSubset(EncryptionContextSubsetT &&value)
AWS_ACCESSANALYZER_API KmsGrantConstraints()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue