AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_ACCESSANALYZER_API KmsGrantConstraints() = default;
44 AWS_ACCESSANALYZER_API KmsGrantConstraints(Aws::Utils::Json::JsonView jsonValue);
45 AWS_ACCESSANALYZER_API KmsGrantConstraints& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
57 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextEquals() const { return m_encryptionContextEquals; }
58 inline bool EncryptionContextEqualsHasBeenSet() const { return m_encryptionContextEqualsHasBeenSet; }
59 template<typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
60 void SetEncryptionContextEquals(EncryptionContextEqualsT&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = std::forward<EncryptionContextEqualsT>(value); }
61 template<typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
62 KmsGrantConstraints& WithEncryptionContextEquals(EncryptionContextEqualsT&& value) { SetEncryptionContextEquals(std::forward<EncryptionContextEqualsT>(value)); return *this;}
63 template<typename EncryptionContextEqualsKeyT = Aws::String, typename EncryptionContextEqualsValueT = Aws::String>
64 KmsGrantConstraints& AddEncryptionContextEquals(EncryptionContextEqualsKeyT&& key, EncryptionContextEqualsValueT&& value) {
65 m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::forward<EncryptionContextEqualsKeyT>(key), std::forward<EncryptionContextEqualsValueT>(value)); return *this;
66 }
68
70
78 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextSubset() const { return m_encryptionContextSubset; }
79 inline bool EncryptionContextSubsetHasBeenSet() const { return m_encryptionContextSubsetHasBeenSet; }
80 template<typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
81 void SetEncryptionContextSubset(EncryptionContextSubsetT&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = std::forward<EncryptionContextSubsetT>(value); }
82 template<typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
83 KmsGrantConstraints& WithEncryptionContextSubset(EncryptionContextSubsetT&& value) { SetEncryptionContextSubset(std::forward<EncryptionContextSubsetT>(value)); return *this;}
84 template<typename EncryptionContextSubsetKeyT = Aws::String, typename EncryptionContextSubsetValueT = Aws::String>
85 KmsGrantConstraints& AddEncryptionContextSubset(EncryptionContextSubsetKeyT&& key, EncryptionContextSubsetValueT&& value) {
86 m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::forward<EncryptionContextSubsetKeyT>(key), std::forward<EncryptionContextSubsetValueT>(value)); return *this;
87 }
89 private:
90
91 Aws::Map<Aws::String, Aws::String> m_encryptionContextEquals;
92 bool m_encryptionContextEqualsHasBeenSet = false;
93
94 Aws::Map<Aws::String, Aws::String> m_encryptionContextSubset;
95 bool m_encryptionContextSubsetHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace AccessAnalyzer
100} // 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