7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/KmsGrantConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace AccessAnalyzer {
57 template <
typename KeyPoliciesT = Aws::Map<Aws::String, Aws::String>>
59 m_keyPoliciesHasBeenSet =
true;
60 m_keyPolicies = std::forward<KeyPoliciesT>(value);
62 template <
typename KeyPoliciesT = Aws::Map<Aws::String, Aws::String>>
67 template <
typename KeyPoliciesKeyT = Aws::String,
typename KeyPoliciesValueT = Aws::String>
69 m_keyPoliciesHasBeenSet =
true;
70 m_keyPolicies.emplace(std::forward<KeyPoliciesKeyT>(key), std::forward<KeyPoliciesValueT>(value));
84 template <
typename GrantsT = Aws::Vector<KmsGrantConfiguration>>
86 m_grantsHasBeenSet =
true;
87 m_grants = std::forward<GrantsT>(value);
89 template <
typename GrantsT = Aws::Vector<KmsGrantConfiguration>>
94 template <
typename GrantsT = KmsGrantConfiguration>
96 m_grantsHasBeenSet =
true;
97 m_grants.emplace_back(std::forward<GrantsT>(value));
105 bool m_keyPoliciesHasBeenSet =
false;
106 bool m_grantsHasBeenSet =
false;
const Aws::Vector< KmsGrantConfiguration > & GetGrants() const
void SetGrants(GrantsT &&value)
KmsKeyConfiguration & WithGrants(GrantsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetKeyPolicies() const
bool KeyPoliciesHasBeenSet() const
AWS_ACCESSANALYZER_API KmsKeyConfiguration(Aws::Utils::Json::JsonView jsonValue)
bool GrantsHasBeenSet() const
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
KmsKeyConfiguration & AddGrants(GrantsT &&value)
KmsKeyConfiguration & AddKeyPolicies(KeyPoliciesKeyT &&key, KeyPoliciesValueT &&value)
AWS_ACCESSANALYZER_API KmsKeyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API KmsKeyConfiguration()=default
void SetKeyPolicies(KeyPoliciesT &&value)
KmsKeyConfiguration & WithKeyPolicies(KeyPoliciesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue