AWS SDK for C++  1.9.157
AWS SDK for C++
KmsKeyConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
46  {
47  public:
52 
53 
60  inline const Aws::Vector<KmsGrantConfiguration>& GetGrants() const{ return m_grants; }
61 
68  inline bool GrantsHasBeenSet() const { return m_grantsHasBeenSet; }
69 
76  inline void SetGrants(const Aws::Vector<KmsGrantConfiguration>& value) { m_grantsHasBeenSet = true; m_grants = value; }
77 
84  inline void SetGrants(Aws::Vector<KmsGrantConfiguration>&& value) { m_grantsHasBeenSet = true; m_grants = std::move(value); }
85 
92  inline KmsKeyConfiguration& WithGrants(const Aws::Vector<KmsGrantConfiguration>& value) { SetGrants(value); return *this;}
93 
100  inline KmsKeyConfiguration& WithGrants(Aws::Vector<KmsGrantConfiguration>&& value) { SetGrants(std::move(value)); return *this;}
101 
108  inline KmsKeyConfiguration& AddGrants(const KmsGrantConfiguration& value) { m_grantsHasBeenSet = true; m_grants.push_back(value); return *this; }
109 
116  inline KmsKeyConfiguration& AddGrants(KmsGrantConfiguration&& value) { m_grantsHasBeenSet = true; m_grants.push_back(std::move(value)); return *this; }
117 
118 
125  inline const Aws::Map<Aws::String, Aws::String>& GetKeyPolicies() const{ return m_keyPolicies; }
126 
133  inline bool KeyPoliciesHasBeenSet() const { return m_keyPoliciesHasBeenSet; }
134 
141  inline void SetKeyPolicies(const Aws::Map<Aws::String, Aws::String>& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies = value; }
142 
149  inline void SetKeyPolicies(Aws::Map<Aws::String, Aws::String>&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies = std::move(value); }
150 
157  inline KmsKeyConfiguration& WithKeyPolicies(const Aws::Map<Aws::String, Aws::String>& value) { SetKeyPolicies(value); return *this;}
158 
165  inline KmsKeyConfiguration& WithKeyPolicies(Aws::Map<Aws::String, Aws::String>&& value) { SetKeyPolicies(std::move(value)); return *this;}
166 
173  inline KmsKeyConfiguration& AddKeyPolicies(const Aws::String& key, const Aws::String& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, value); return *this; }
174 
181  inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, const Aws::String& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), value); return *this; }
182 
189  inline KmsKeyConfiguration& AddKeyPolicies(const Aws::String& key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, std::move(value)); return *this; }
190 
197  inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), std::move(value)); return *this; }
198 
205  inline KmsKeyConfiguration& AddKeyPolicies(const char* key, Aws::String&& value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, std::move(value)); return *this; }
206 
213  inline KmsKeyConfiguration& AddKeyPolicies(Aws::String&& key, const char* value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(std::move(key), value); return *this; }
214 
221  inline KmsKeyConfiguration& AddKeyPolicies(const char* key, const char* value) { m_keyPoliciesHasBeenSet = true; m_keyPolicies.emplace(key, value); return *this; }
222 
223  private:
224 
226  bool m_grantsHasBeenSet;
227 
229  bool m_keyPoliciesHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace AccessAnalyzer
234 } // namespace Aws
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::GetKeyPolicies
const Aws::Map< Aws::String, Aws::String > & GetKeyPolicies() const
Definition: KmsKeyConfiguration.h:125
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::KmsKeyConfiguration
KmsKeyConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::WithGrants
KmsKeyConfiguration & WithGrants(Aws::Vector< KmsGrantConfiguration > &&value)
Definition: KmsKeyConfiguration.h:100
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::KeyPoliciesHasBeenSet
bool KeyPoliciesHasBeenSet() const
Definition: KmsKeyConfiguration.h:133
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, Aws::String &&value)
Definition: KmsKeyConfiguration.h:197
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::WithKeyPolicies
KmsKeyConfiguration & WithKeyPolicies(Aws::Map< Aws::String, Aws::String > &&value)
Definition: KmsKeyConfiguration.h:165
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::SetKeyPolicies
void SetKeyPolicies(Aws::Map< Aws::String, Aws::String > &&value)
Definition: KmsKeyConfiguration.h:149
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(const char *key, const char *value)
Definition: KmsKeyConfiguration.h:221
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
KmsGrantConfiguration.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::KmsKeyConfiguration
Definition: KmsKeyConfiguration.h:46
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::operator=
KmsKeyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::SetKeyPolicies
void SetKeyPolicies(const Aws::Map< Aws::String, Aws::String > &value)
Definition: KmsKeyConfiguration.h:141
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::WithKeyPolicies
KmsKeyConfiguration & WithKeyPolicies(const Aws::Map< Aws::String, Aws::String > &value)
Definition: KmsKeyConfiguration.h:157
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::GetGrants
const Aws::Vector< KmsGrantConfiguration > & GetGrants() const
Definition: KmsKeyConfiguration.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::SetGrants
void SetGrants(Aws::Vector< KmsGrantConfiguration > &&value)
Definition: KmsKeyConfiguration.h:84
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::KmsKeyConfiguration
KmsKeyConfiguration()
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(const char *key, Aws::String &&value)
Definition: KmsKeyConfiguration.h:205
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::SetGrants
void SetGrants(const Aws::Vector< KmsGrantConfiguration > &value)
Definition: KmsKeyConfiguration.h:76
Aws::AccessAnalyzer::Model::KmsGrantConfiguration
Definition: KmsGrantConfiguration.h:37
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::GrantsHasBeenSet
bool GrantsHasBeenSet() const
Definition: KmsKeyConfiguration.h:68
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::WithGrants
KmsKeyConfiguration & WithGrants(const Aws::Vector< KmsGrantConfiguration > &value)
Definition: KmsKeyConfiguration.h:92
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(const Aws::String &key, Aws::String &&value)
Definition: KmsKeyConfiguration.h:189
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddGrants
KmsKeyConfiguration & AddGrants(KmsGrantConfiguration &&value)
Definition: KmsKeyConfiguration.h:116
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddGrants
KmsKeyConfiguration & AddGrants(const KmsGrantConfiguration &value)
Definition: KmsKeyConfiguration.h:108
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(const Aws::String &key, const Aws::String &value)
Definition: KmsKeyConfiguration.h:173
AWSMap.h
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, const Aws::String &value)
Definition: KmsKeyConfiguration.h:181
Aws::AccessAnalyzer::Model::KmsKeyConfiguration::AddKeyPolicies
KmsKeyConfiguration & AddKeyPolicies(Aws::String &&key, const char *value)
Definition: KmsKeyConfiguration.h:213
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19