7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
77 template <
typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
79 m_encryptionContextSubsetHasBeenSet =
true;
80 m_encryptionContextSubset = std::forward<EncryptionContextSubsetT>(value);
82 template <
typename EncryptionContextSubsetT = Aws::Map<Aws::String, Aws::String>>
87 template <
typename EncryptionContextSubsetKeyT = Aws::String,
typename EncryptionContextSubsetValueT = Aws::String>
89 m_encryptionContextSubsetHasBeenSet =
true;
90 m_encryptionContextSubset.emplace(std::forward<EncryptionContextSubsetKeyT>(key), std::forward<EncryptionContextSubsetValueT>(value));
105 template <
typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
107 m_encryptionContextEqualsHasBeenSet =
true;
108 m_encryptionContextEquals = std::forward<EncryptionContextEqualsT>(value);
110 template <
typename EncryptionContextEqualsT = Aws::Map<Aws::String, Aws::String>>
115 template <
typename EncryptionContextEqualsKeyT = Aws::String,
typename EncryptionContextEqualsValueT = Aws::String>
117 m_encryptionContextEqualsHasBeenSet =
true;
118 m_encryptionContextEquals.emplace(std::forward<EncryptionContextEqualsKeyT>(key), std::forward<EncryptionContextEqualsValueT>(value));
136 template <
typename SourceArnT = Aws::String>
138 m_sourceArnHasBeenSet =
true;
139 m_sourceArn = std::forward<SourceArnT>(value);
141 template <
typename SourceArnT = Aws::String>
153 bool m_encryptionContextSubsetHasBeenSet =
false;
154 bool m_encryptionContextEqualsHasBeenSet =
false;
155 bool m_sourceArnHasBeenSet =
false;
GrantConstraints & WithEncryptionContextSubset(EncryptionContextSubsetT &&value)
GrantConstraints & AddEncryptionContextSubset(EncryptionContextSubsetKeyT &&key, EncryptionContextSubsetValueT &&value)
bool EncryptionContextEqualsHasBeenSet() const
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KMS_API GrantConstraints(Aws::Utils::Json::JsonView jsonValue)
bool EncryptionContextSubsetHasBeenSet() const
AWS_KMS_API GrantConstraints()=default
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
bool SourceArnHasBeenSet() const
const Aws::String & GetSourceArn() const
GrantConstraints & WithSourceArn(SourceArnT &&value)
void SetEncryptionContextEquals(EncryptionContextEqualsT &&value)
GrantConstraints & AddEncryptionContextEquals(EncryptionContextEqualsKeyT &&key, EncryptionContextEqualsValueT &&value)
void SetEncryptionContextSubset(EncryptionContextSubsetT &&value)
GrantConstraints & WithEncryptionContextEquals(EncryptionContextEqualsT &&value)
void SetSourceArn(SourceArnT &&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