AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEncryptionContextEquals(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = value; }
60 inline void SetEncryptionContextEquals(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = std::move(value); }
63 inline KmsGrantConstraints& AddEncryptionContextEquals(const Aws::String& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, value); return *this; }
64 inline KmsGrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), value); return *this; }
65 inline KmsGrantConstraints& AddEncryptionContextEquals(const Aws::String& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, std::move(value)); return *this; }
66 inline KmsGrantConstraints& AddEncryptionContextEquals(Aws::String&& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), std::move(value)); return *this; }
67 inline KmsGrantConstraints& AddEncryptionContextEquals(const char* key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, std::move(value)); return *this; }
68 inline KmsGrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), value); return *this; }
69 inline KmsGrantConstraints& AddEncryptionContextEquals(const char* key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, value); return *this; }
71
73
81 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextSubset() const{ return m_encryptionContextSubset; }
82 inline bool EncryptionContextSubsetHasBeenSet() const { return m_encryptionContextSubsetHasBeenSet; }
83 inline void SetEncryptionContextSubset(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = value; }
84 inline void SetEncryptionContextSubset(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = std::move(value); }
87 inline KmsGrantConstraints& AddEncryptionContextSubset(const Aws::String& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, value); return *this; }
88 inline KmsGrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), value); return *this; }
89 inline KmsGrantConstraints& AddEncryptionContextSubset(const Aws::String& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, std::move(value)); return *this; }
90 inline KmsGrantConstraints& AddEncryptionContextSubset(Aws::String&& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), std::move(value)); return *this; }
91 inline KmsGrantConstraints& AddEncryptionContextSubset(const char* key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, std::move(value)); return *this; }
92 inline KmsGrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), value); return *this; }
93 inline KmsGrantConstraints& AddEncryptionContextSubset(const char* key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, value); return *this; }
95 private:
96
97 Aws::Map<Aws::String, Aws::String> m_encryptionContextEquals;
98 bool m_encryptionContextEqualsHasBeenSet = false;
99
100 Aws::Map<Aws::String, Aws::String> m_encryptionContextSubset;
101 bool m_encryptionContextSubsetHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace AccessAnalyzer
106} // namespace Aws
KmsGrantConstraints & AddEncryptionContextEquals(const Aws::String &key, const Aws::String &value)
KmsGrantConstraints & AddEncryptionContextEquals(const char *key, Aws::String &&value)
KmsGrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const char *value)
void SetEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
AWS_ACCESSANALYZER_API KmsGrantConstraints(Aws::Utils::Json::JsonView jsonValue)
KmsGrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextSubset() const
KmsGrantConstraints & AddEncryptionContextEquals(const Aws::String &key, Aws::String &&value)
KmsGrantConstraints & WithEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
KmsGrantConstraints & WithEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
KmsGrantConstraints & WithEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
KmsGrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const Aws::String &value)
KmsGrantConstraints & AddEncryptionContextEquals(const char *key, const char *value)
AWS_ACCESSANALYZER_API KmsGrantConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsGrantConstraints & AddEncryptionContextSubset(const char *key, const char *value)
void SetEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
KmsGrantConstraints & AddEncryptionContextSubset(const Aws::String &key, const Aws::String &value)
KmsGrantConstraints & AddEncryptionContextSubset(const Aws::String &key, Aws::String &&value)
void SetEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&value)
KmsGrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const char *value)
KmsGrantConstraints & AddEncryptionContextSubset(const char *key, Aws::String &&value)
KmsGrantConstraints & AddEncryptionContextSubset(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextEquals() const
KmsGrantConstraints & AddEncryptionContextEquals(Aws::String &&key, Aws::String &&value)
void SetEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
KmsGrantConstraints & WithEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&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