AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CreateTableBucketRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3tables/S3TablesRequest.h>
10#include <aws/s3tables/S3Tables_EXPORTS.h>
11#include <aws/s3tables/model/EncryptionConfiguration.h>
12#include <aws/s3tables/model/StorageClassConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace S3Tables {
18namespace Model {
19
23 public:
24 AWS_S3TABLES_API CreateTableBucketRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateTableBucket"; }
31
32 AWS_S3TABLES_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
59 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
60 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
61 template <typename EncryptionConfigurationT = EncryptionConfiguration>
62 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
63 m_encryptionConfigurationHasBeenSet = true;
64 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
65 }
66 template <typename EncryptionConfigurationT = EncryptionConfiguration>
67 CreateTableBucketRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
68 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
69 return *this;
70 }
72
74
80 inline const StorageClassConfiguration& GetStorageClassConfiguration() const { return m_storageClassConfiguration; }
81 inline bool StorageClassConfigurationHasBeenSet() const { return m_storageClassConfigurationHasBeenSet; }
82 template <typename StorageClassConfigurationT = StorageClassConfiguration>
83 void SetStorageClassConfiguration(StorageClassConfigurationT&& value) {
84 m_storageClassConfigurationHasBeenSet = true;
85 m_storageClassConfiguration = std::forward<StorageClassConfigurationT>(value);
86 }
87 template <typename StorageClassConfigurationT = StorageClassConfiguration>
88 CreateTableBucketRequest& WithStorageClassConfiguration(StorageClassConfigurationT&& value) {
89 SetStorageClassConfiguration(std::forward<StorageClassConfigurationT>(value));
90 return *this;
91 }
93
95
106 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
109 void SetTags(TagsT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags = std::forward<TagsT>(value);
112 }
113 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 SetTags(std::forward<TagsT>(value));
116 return *this;
117 }
118 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CreateTableBucketRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true;
121 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_name;
127
128 EncryptionConfiguration m_encryptionConfiguration;
129
130 StorageClassConfiguration m_storageClassConfiguration;
131
133 bool m_nameHasBeenSet = false;
134 bool m_encryptionConfigurationHasBeenSet = false;
135 bool m_storageClassConfigurationHasBeenSet = false;
136 bool m_tagsHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace S3Tables
141} // namespace Aws
CreateTableBucketRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_S3TABLES_API CreateTableBucketRequest()=default
CreateTableBucketRequest & WithStorageClassConfiguration(StorageClassConfigurationT &&value)
CreateTableBucketRequest & WithTags(TagsT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_S3TABLES_API Aws::String SerializePayload() const override
const StorageClassConfiguration & GetStorageClassConfiguration() const
CreateTableBucketRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetStorageClassConfiguration(StorageClassConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateTableBucketRequest & WithName(NameT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() 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