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>
49 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
72 inline CreateLedgerRequest&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
116 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
153 inline void SetKmsKey(
const char* value) { m_kmsKeyHasBeenSet =
true; m_kmsKey.assign(value); }
161 bool m_nameHasBeenSet =
false;
164 bool m_tagsHasBeenSet =
false;
167 bool m_permissionsModeHasBeenSet =
false;
169 bool m_deletionProtection;
170 bool m_deletionProtectionHasBeenSet =
false;
173 bool m_kmsKeyHasBeenSet =
false;
CreateLedgerRequest & AddTags(Aws::String &&key, const char *value)
bool DeletionProtectionHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLedgerRequest & AddTags(const char *key, Aws::String &&value)
CreateLedgerRequest & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
AWS_QLDB_API Aws::String SerializePayload() const override
CreateLedgerRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLedgerRequest & WithKmsKey(const char *value)
CreateLedgerRequest & WithKmsKey(const Aws::String &value)
bool PermissionsModeHasBeenSet() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
bool NameHasBeenSet() const
void SetDeletionProtection(bool value)
CreateLedgerRequest & WithPermissionsMode(PermissionsMode &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetKmsKey(const Aws::String &value)
CreateLedgerRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLedgerRequest & AddTags(const char *key, const char *value)
CreateLedgerRequest & WithPermissionsMode(const PermissionsMode &value)
CreateLedgerRequest & WithKmsKey(Aws::String &&value)
AWS_QLDB_API CreateLedgerRequest()
bool TagsHasBeenSet() const
const Aws::String & GetName() const
void SetKmsKey(Aws::String &&value)
CreateLedgerRequest & WithDeletionProtection(bool value)
void SetName(const char *value)
void SetPermissionsMode(PermissionsMode &&value)
bool KmsKeyHasBeenSet() const
const PermissionsMode & GetPermissionsMode() const
virtual const char * GetServiceRequestName() const override
CreateLedgerRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetName(const Aws::String &value)
CreateLedgerRequest & WithName(const char *value)
CreateLedgerRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLedgerRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
bool GetDeletionProtection() const
void SetPermissionsMode(const PermissionsMode &value)
void SetKmsKey(const char *value)
const Aws::String & GetKmsKey() const
CreateLedgerRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLedgerRequest & WithName(Aws::String &&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