AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateTableRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/OpenTableFormatInput.h>
12#include <aws/glue/model/PartitionIndex.h>
13#include <aws/glue/model/TableInput.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API CreateTableRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
43 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
44 template <typename CatalogIdT = Aws::String>
45 void SetCatalogId(CatalogIdT&& value) {
46 m_catalogIdHasBeenSet = true;
47 m_catalogId = std::forward<CatalogIdT>(value);
48 }
49 template <typename CatalogIdT = Aws::String>
50 CreateTableRequest& WithCatalogId(CatalogIdT&& value) {
51 SetCatalogId(std::forward<CatalogIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 template <typename DatabaseNameT = Aws::String>
64 void SetDatabaseName(DatabaseNameT&& value) {
65 m_databaseNameHasBeenSet = true;
66 m_databaseName = std::forward<DatabaseNameT>(value);
67 }
68 template <typename DatabaseNameT = Aws::String>
69 CreateTableRequest& WithDatabaseName(DatabaseNameT&& value) {
70 SetDatabaseName(std::forward<DatabaseNameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
88 CreateTableRequest& WithName(NameT&& value) {
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
99 inline const TableInput& GetTableInput() const { return m_tableInput; }
100 inline bool TableInputHasBeenSet() const { return m_tableInputHasBeenSet; }
101 template <typename TableInputT = TableInput>
102 void SetTableInput(TableInputT&& value) {
103 m_tableInputHasBeenSet = true;
104 m_tableInput = std::forward<TableInputT>(value);
105 }
106 template <typename TableInputT = TableInput>
107 CreateTableRequest& WithTableInput(TableInputT&& value) {
108 SetTableInput(std::forward<TableInputT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<PartitionIndex>& GetPartitionIndexes() const { return m_partitionIndexes; }
119 inline bool PartitionIndexesHasBeenSet() const { return m_partitionIndexesHasBeenSet; }
120 template <typename PartitionIndexesT = Aws::Vector<PartitionIndex>>
121 void SetPartitionIndexes(PartitionIndexesT&& value) {
122 m_partitionIndexesHasBeenSet = true;
123 m_partitionIndexes = std::forward<PartitionIndexesT>(value);
124 }
125 template <typename PartitionIndexesT = Aws::Vector<PartitionIndex>>
126 CreateTableRequest& WithPartitionIndexes(PartitionIndexesT&& value) {
127 SetPartitionIndexes(std::forward<PartitionIndexesT>(value));
128 return *this;
129 }
130 template <typename PartitionIndexesT = PartitionIndex>
131 CreateTableRequest& AddPartitionIndexes(PartitionIndexesT&& value) {
132 m_partitionIndexesHasBeenSet = true;
133 m_partitionIndexes.emplace_back(std::forward<PartitionIndexesT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
143 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
144 template <typename TransactionIdT = Aws::String>
145 void SetTransactionId(TransactionIdT&& value) {
146 m_transactionIdHasBeenSet = true;
147 m_transactionId = std::forward<TransactionIdT>(value);
148 }
149 template <typename TransactionIdT = Aws::String>
150 CreateTableRequest& WithTransactionId(TransactionIdT&& value) {
151 SetTransactionId(std::forward<TransactionIdT>(value));
152 return *this;
153 }
155
157
161 inline const OpenTableFormatInput& GetOpenTableFormatInput() const { return m_openTableFormatInput; }
162 inline bool OpenTableFormatInputHasBeenSet() const { return m_openTableFormatInputHasBeenSet; }
163 template <typename OpenTableFormatInputT = OpenTableFormatInput>
164 void SetOpenTableFormatInput(OpenTableFormatInputT&& value) {
165 m_openTableFormatInputHasBeenSet = true;
166 m_openTableFormatInput = std::forward<OpenTableFormatInputT>(value);
167 }
168 template <typename OpenTableFormatInputT = OpenTableFormatInput>
169 CreateTableRequest& WithOpenTableFormatInput(OpenTableFormatInputT&& value) {
170 SetOpenTableFormatInput(std::forward<OpenTableFormatInputT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_catalogId;
176
177 Aws::String m_databaseName;
178
179 Aws::String m_name;
180
181 TableInput m_tableInput;
182
183 Aws::Vector<PartitionIndex> m_partitionIndexes;
184
185 Aws::String m_transactionId;
186
187 OpenTableFormatInput m_openTableFormatInput;
188 bool m_catalogIdHasBeenSet = false;
189 bool m_databaseNameHasBeenSet = false;
190 bool m_nameHasBeenSet = false;
191 bool m_tableInputHasBeenSet = false;
192 bool m_partitionIndexesHasBeenSet = false;
193 bool m_transactionIdHasBeenSet = false;
194 bool m_openTableFormatInputHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Glue
199} // namespace Aws
void SetDatabaseName(DatabaseNameT &&value)
CreateTableRequest & WithTableInput(TableInputT &&value)
CreateTableRequest & WithOpenTableFormatInput(OpenTableFormatInputT &&value)
void SetTransactionId(TransactionIdT &&value)
const Aws::String & GetCatalogId() const
const Aws::String & GetTransactionId() const
const Aws::String & GetDatabaseName() const
const Aws::Vector< PartitionIndex > & GetPartitionIndexes() const
void SetOpenTableFormatInput(OpenTableFormatInputT &&value)
AWS_GLUE_API CreateTableRequest()=default
CreateTableRequest & AddPartitionIndexes(PartitionIndexesT &&value)
const Aws::String & GetName() const
virtual const char * GetServiceRequestName() const override
void SetTableInput(TableInputT &&value)
CreateTableRequest & WithCatalogId(CatalogIdT &&value)
CreateTableRequest & WithPartitionIndexes(PartitionIndexesT &&value)
CreateTableRequest & WithName(NameT &&value)
CreateTableRequest & WithDatabaseName(DatabaseNameT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
void SetPartitionIndexes(PartitionIndexesT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const TableInput & GetTableInput() const
CreateTableRequest & WithTransactionId(TransactionIdT &&value)
const OpenTableFormatInput & GetOpenTableFormatInput() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector