AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KmsKeyConfiguration.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/accessanalyzer/model/KmsGrantConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
46 {
47 public:
48 AWS_ACCESSANALYZER_API KmsKeyConfiguration();
49 AWS_ACCESSANALYZER_API KmsKeyConfiguration(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ACCESSANALYZER_API KmsKeyConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
61 inline const Aws::Map<Aws::String, Aws::String>& GetKeyPolicies() const{ return m_keyPolicies; }
62 inline bool KeyPoliciesHasBeenSet() const { return m_keyPoliciesHasBeenSet; }
63 inline void SetKeyPolicies(const Aws::Map<Aws::String, Aws::String>& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies = value; }
64 inline void SetKeyPolicies(Aws::Map<Aws::String, Aws::String>&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies = std::move(value); }
66 inline KmsKeyConfiguration& WithKeyPolicies(Aws::Map<Aws::String, Aws::String>&& value) { SetKeyPolicies(std::move(value)); return *this;}
67 inline KmsKeyConfiguration& AddKeyPolicies(const Aws::String& key, const Aws::String& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, value); return *this; }
68 inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, const Aws::String& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), value); return *this; }
69 inline KmsKeyConfiguration& AddKeyPolicies(const Aws::String& key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, std::move(value)); return *this; }
70 inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), std::move(value)); return *this; }
71 inline KmsKeyConfiguration& AddKeyPolicies(const char* key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, std::move(value)); return *this; }
72 inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, const char* value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), value); return *this; }
73 inline KmsKeyConfiguration& AddKeyPolicies(const char* key, const char* value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, value); return *this; }
75
77
83 inline const Aws::Vector<KmsGrantConfiguration>& GetGrants() const{ return m_grants; }
84 inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
85 inline void SetGrants(const Aws::Vector<KmsGrantConfiguration>& value) { m_grantsHasBeenSet = true; m_grants = value; }
86 inline void SetGrants(Aws::Vector<KmsGrantConfiguration>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
87 inline KmsKeyConfiguration& WithGrants(const Aws::Vector<KmsGrantConfiguration>& value) { SetGrants(value); return *this;}
88 inline KmsKeyConfiguration& WithGrants(Aws::Vector<KmsGrantConfiguration>&& value) { SetGrants(std::move(value)); return *this;}
89 inline KmsKeyConfiguration& AddGrants(const KmsGrantConfiguration& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
90 inline KmsKeyConfiguration& AddGrants(KmsGrantConfiguration&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
92 private:
93
95 bool m_keyPoliciesHasBeenSet = false;
96
98 bool m_grantsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace AccessAnalyzer
103} // namespace Aws
KmsKeyConfiguration & AddGrants(const KmsGrantConfiguration &value)
const Aws::Vector< KmsGrantConfiguration > & GetGrants() const
KmsKeyConfiguration & WithKeyPolicies(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetKeyPolicies() const
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, Aws::String &&value)
void SetGrants(Aws::Vector< KmsGrantConfiguration > &&value)
AWS_ACCESSANALYZER_API KmsKeyConfiguration(Aws::Utils::Json::JsonView jsonValue)
KmsKeyConfiguration & AddKeyPolicies(const Aws::String &key, Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
KmsKeyConfiguration & WithGrants(const Aws::Vector< KmsGrantConfiguration > &value)
KmsKeyConfiguration & AddKeyPolicies(const Aws::String &key, const Aws::String &value)
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, const char *value)
KmsKeyConfiguration & WithKeyPolicies(Aws::Map< Aws::String, Aws::String > &&value)
AWS_ACCESSANALYZER_API KmsKeyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
KmsKeyConfiguration & AddKeyPolicies(const char *key, Aws::String &&value)
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, const Aws::String &value)
void SetGrants(const Aws::Vector< KmsGrantConfiguration > &value)
void SetKeyPolicies(const Aws::Map< Aws::String, Aws::String > &value)
KmsKeyConfiguration & AddKeyPolicies(const char *key, const char *value)
void SetKeyPolicies(Aws::Map< Aws::String, Aws::String > &&value)
KmsKeyConfiguration & AddGrants(KmsGrantConfiguration &&value)
KmsKeyConfiguration & WithGrants(Aws::Vector< KmsGrantConfiguration > &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue