7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/qldb/QLDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/qldb/model/PermissionsMode.h>
47 template<
typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
49 template<
typename NameT = Aws::String>
60 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
61 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
62 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
64 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
66 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
109 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
144 template<
typename KmsKeyT = Aws::String>
145 void SetKmsKey(KmsKeyT&& value) { m_kmsKeyHasBeenSet =
true; m_kmsKey = std::forward<KmsKeyT>(value); }
146 template<
typename KmsKeyT = Aws::String>
152 bool m_nameHasBeenSet =
false;
155 bool m_tagsHasBeenSet =
false;
158 bool m_permissionsModeHasBeenSet =
false;
160 bool m_deletionProtection{
false};
161 bool m_deletionProtectionHasBeenSet =
false;
164 bool m_kmsKeyHasBeenSet =
false;
CreateLedgerRequest & WithTags(TagsT &&value)
void SetName(NameT &&value)
bool DeletionProtectionHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetKmsKey(KmsKeyT &&value)
CreateLedgerRequest & WithKmsKey(KmsKeyT &&value)
AWS_QLDB_API Aws::String SerializePayload() const override
void SetPermissionsMode(PermissionsMode value)
bool PermissionsModeHasBeenSet() const
bool NameHasBeenSet() const
void SetDeletionProtection(bool value)
CreateLedgerRequest & WithName(NameT &&value)
PermissionsMode GetPermissionsMode() const
void SetTags(TagsT &&value)
bool TagsHasBeenSet() const
const Aws::String & GetName() const
CreateLedgerRequest & WithDeletionProtection(bool value)
bool KmsKeyHasBeenSet() const
virtual const char * GetServiceRequestName() const override
CreateLedgerRequest & WithPermissionsMode(PermissionsMode value)
AWS_QLDB_API CreateLedgerRequest()=default
CreateLedgerRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool GetDeletionProtection() const
const Aws::String & GetKmsKey() const
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