AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateTableRequest.h
1
6#pragma once
7#include <aws/s3tables/S3Tables_EXPORTS.h>
8#include <aws/s3tables/S3TablesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3tables/model/OpenTableFormat.h>
11#include <aws/s3tables/model/TableMetadata.h>
12#include <aws/s3tables/model/EncryptionConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace S3Tables
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_S3TABLES_API CreateTableRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; }
34
35 AWS_S3TABLES_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetTableBucketARN() const { return m_tableBucketARN; }
44 inline bool TableBucketARNHasBeenSet() const { return m_tableBucketARNHasBeenSet; }
45 template<typename TableBucketARNT = Aws::String>
46 void SetTableBucketARN(TableBucketARNT&& value) { m_tableBucketARNHasBeenSet = true; m_tableBucketARN = std::forward<TableBucketARNT>(value); }
47 template<typename TableBucketARNT = Aws::String>
48 CreateTableRequest& WithTableBucketARN(TableBucketARNT&& value) { SetTableBucketARN(std::forward<TableBucketARNT>(value)); return *this;}
50
52
55 inline const Aws::String& GetNamespace() const { return m_namespace; }
56 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
57 template<typename NamespaceT = Aws::String>
58 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
59 template<typename NamespaceT = Aws::String>
60 CreateTableRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 CreateTableRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline OpenTableFormat GetFormat() const { return m_format; }
80 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
81 inline void SetFormat(OpenTableFormat value) { m_formatHasBeenSet = true; m_format = value; }
82 inline CreateTableRequest& WithFormat(OpenTableFormat value) { SetFormat(value); return *this;}
84
86
89 inline const TableMetadata& GetMetadata() const { return m_metadata; }
90 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
91 template<typename MetadataT = TableMetadata>
92 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
93 template<typename MetadataT = TableMetadata>
94 CreateTableRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
96
98
107 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
108 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
109 template<typename EncryptionConfigurationT = EncryptionConfiguration>
110 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
111 template<typename EncryptionConfigurationT = EncryptionConfiguration>
112 CreateTableRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
114 private:
115
116 Aws::String m_tableBucketARN;
117 bool m_tableBucketARNHasBeenSet = false;
118
119 Aws::String m_namespace;
120 bool m_namespaceHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
126 bool m_formatHasBeenSet = false;
127
128 TableMetadata m_metadata;
129 bool m_metadataHasBeenSet = false;
130
131 EncryptionConfiguration m_encryptionConfiguration;
132 bool m_encryptionConfigurationHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace S3Tables
137} // namespace Aws
AWS_S3TABLES_API Aws::String SerializePayload() const override
void SetTableBucketARN(TableBucketARNT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateTableRequest & WithNamespace(NamespaceT &&value)
CreateTableRequest & WithFormat(OpenTableFormat value)
AWS_S3TABLES_API CreateTableRequest()=default
CreateTableRequest & WithTableBucketARN(TableBucketARNT &&value)
const TableMetadata & GetMetadata() const
CreateTableRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateTableRequest & WithName(NameT &&value)
const Aws::String & GetTableBucketARN() const
CreateTableRequest & WithMetadata(MetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String