AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLedgerRequest.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace QLDB
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QLDB_API CreateLedgerRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLedger"; }
33
34 AWS_QLDB_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateLedgerRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateLedgerRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateLedgerRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
63 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
64 inline CreateLedgerRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
65 inline CreateLedgerRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
66 inline CreateLedgerRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
67 inline CreateLedgerRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
68 inline CreateLedgerRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
69 inline CreateLedgerRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
70 inline CreateLedgerRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
71 inline CreateLedgerRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
72 inline CreateLedgerRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74
76
97 inline const PermissionsMode& GetPermissionsMode() const{ return m_permissionsMode; }
98 inline bool PermissionsModeHasBeenSet() const { return m_permissionsModeHasBeenSet; }
99 inline void SetPermissionsMode(const PermissionsMode& value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = value; }
100 inline void SetPermissionsMode(PermissionsMode&& value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = std::move(value); }
101 inline CreateLedgerRequest& WithPermissionsMode(const PermissionsMode& value) { SetPermissionsMode(value); return *this;}
102 inline CreateLedgerRequest& WithPermissionsMode(PermissionsMode&& value) { SetPermissionsMode(std::move(value)); return *this;}
104
106
114 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
115 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
116 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
117 inline CreateLedgerRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
119
121
149 inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
150 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
151 inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
152 inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
153 inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
154 inline CreateLedgerRequest& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
155 inline CreateLedgerRequest& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
156 inline CreateLedgerRequest& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
158 private:
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165
166 PermissionsMode m_permissionsMode;
167 bool m_permissionsModeHasBeenSet = false;
168
169 bool m_deletionProtection;
170 bool m_deletionProtectionHasBeenSet = false;
171
172 Aws::String m_kmsKey;
173 bool m_kmsKeyHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace QLDB
178} // namespace Aws
CreateLedgerRequest & AddTags(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLedgerRequest & AddTags(const char *key, Aws::String &&value)
CreateLedgerRequest & WithName(const 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)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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)
CreateLedgerRequest & WithDeletionProtection(bool value)
void SetPermissionsMode(PermissionsMode &&value)
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)
void SetPermissionsMode(const PermissionsMode &value)
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