AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GrantConstraints.h
1
6#pragma once
7#include <aws/kms/KMS_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 KMS
23{
24namespace Model
25{
26
56 {
57 public:
58 AWS_KMS_API GrantConstraints();
62
63
65
73 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextSubset() const{ return m_encryptionContextSubset; }
74 inline bool EncryptionContextSubsetHasBeenSet() const { return m_encryptionContextSubsetHasBeenSet; }
75 inline void SetEncryptionContextSubset(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = value; }
76 inline void SetEncryptionContextSubset(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = std::move(value); }
79 inline GrantConstraints& AddEncryptionContextSubset(const Aws::String& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, value); return *this; }
80 inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), value); return *this; }
81 inline GrantConstraints& AddEncryptionContextSubset(const Aws::String& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, std::move(value)); return *this; }
82 inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), std::move(value)); return *this; }
83 inline GrantConstraints& AddEncryptionContextSubset(const char* key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, std::move(value)); return *this; }
84 inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(std::move(key), value); return *this; }
85 inline GrantConstraints& AddEncryptionContextSubset(const char* key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset.emplace(key, value); return *this; }
87
89
96 inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextEquals() const{ return m_encryptionContextEquals; }
97 inline bool EncryptionContextEqualsHasBeenSet() const { return m_encryptionContextEqualsHasBeenSet; }
98 inline void SetEncryptionContextEquals(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = value; }
99 inline void SetEncryptionContextEquals(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = std::move(value); }
102 inline GrantConstraints& AddEncryptionContextEquals(const Aws::String& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, value); return *this; }
103 inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), value); return *this; }
104 inline GrantConstraints& AddEncryptionContextEquals(const Aws::String& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, std::move(value)); return *this; }
105 inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), std::move(value)); return *this; }
106 inline GrantConstraints& AddEncryptionContextEquals(const char* key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, std::move(value)); return *this; }
107 inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(std::move(key), value); return *this; }
108 inline GrantConstraints& AddEncryptionContextEquals(const char* key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals.emplace(key, value); return *this; }
110 private:
111
112 Aws::Map<Aws::String, Aws::String> m_encryptionContextSubset;
113 bool m_encryptionContextSubsetHasBeenSet = false;
114
115 Aws::Map<Aws::String, Aws::String> m_encryptionContextEquals;
116 bool m_encryptionContextEqualsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace KMS
121} // namespace Aws
void SetEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextEquals(const Aws::String &key, const Aws::String &value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const char *value)
void SetEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
GrantConstraints & AddEncryptionContextSubset(const Aws::String &key, Aws::String &&value)
GrantConstraints & AddEncryptionContextSubset(const char *key, Aws::String &&value)
GrantConstraints & AddEncryptionContextEquals(const char *key, const char *value)
GrantConstraints & AddEncryptionContextSubset(const char *key, const char *value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
GrantConstraints & WithEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
AWS_KMS_API GrantConstraints(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextSubset() const
AWS_KMS_API GrantConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextEquals() const
void SetEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
GrantConstraints & WithEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, Aws::String &&value)
void SetEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextEquals(const Aws::String &key, Aws::String &&value)
GrantConstraints & WithEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, Aws::String &&value)
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const Aws::String &value)
GrantConstraints & AddEncryptionContextEquals(const char *key, Aws::String &&value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const Aws::String &value)
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const char *value)
GrantConstraints & WithEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextSubset(const Aws::String &key, const 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