AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 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>
50 CreateLedgerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
59 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
63 CreateLedgerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
64 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
65 CreateLedgerRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
66 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
67 }
69
71
92 inline PermissionsMode GetPermissionsMode() const { return m_permissionsMode; }
93 inline bool PermissionsModeHasBeenSet() const { return m_permissionsModeHasBeenSet; }
94 inline void SetPermissionsMode(PermissionsMode value) { m_permissionsModeHasBeenSet = true; m_permissionsMode = value; }
97
99
107 inline bool GetDeletionProtection() const { return m_deletionProtection; }
108 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
109 inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; }
110 inline CreateLedgerRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
112
114
142 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
143 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
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>
147 CreateLedgerRequest& WithKmsKey(KmsKeyT&& value) { SetKmsKey(std::forward<KmsKeyT>(value)); return *this;}
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
155 bool m_tagsHasBeenSet = false;
156
157 PermissionsMode m_permissionsMode{PermissionsMode::NOT_SET};
158 bool m_permissionsModeHasBeenSet = false;
159
160 bool m_deletionProtection{false};
161 bool m_deletionProtectionHasBeenSet = false;
162
163 Aws::String m_kmsKey;
164 bool m_kmsKeyHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace QLDB
169} // namespace Aws
CreateLedgerRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLedgerRequest & WithKmsKey(KmsKeyT &&value)
AWS_QLDB_API Aws::String SerializePayload() const override
void SetPermissionsMode(PermissionsMode value)
CreateLedgerRequest & WithName(NameT &&value)
CreateLedgerRequest & WithDeletionProtection(bool value)
virtual const char * GetServiceRequestName() const override
CreateLedgerRequest & WithPermissionsMode(PermissionsMode value)
AWS_QLDB_API CreateLedgerRequest()=default
CreateLedgerRequest & AddTags(TagsKeyT &&key, TagsValueT &&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