AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTableRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/model/TableInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/model/OpenTableFormatInput.h>
13#include <aws/glue/model/PartitionIndex.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Glue
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GLUE_API CreateTableRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateTable"; }
35
36 AWS_GLUE_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
47 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
48 template<typename CatalogIdT = Aws::String>
49 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
50 template<typename CatalogIdT = Aws::String>
51 CreateTableRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
60 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
61 template<typename DatabaseNameT = Aws::String>
62 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
63 template<typename DatabaseNameT = Aws::String>
64 CreateTableRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
66
68
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template<typename NameT = Aws::String>
75 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
76 template<typename NameT = Aws::String>
77 CreateTableRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
79
81
85 inline const TableInput& GetTableInput() const { return m_tableInput; }
86 inline bool TableInputHasBeenSet() const { return m_tableInputHasBeenSet; }
87 template<typename TableInputT = TableInput>
88 void SetTableInput(TableInputT&& value) { m_tableInputHasBeenSet = true; m_tableInput = std::forward<TableInputT>(value); }
89 template<typename TableInputT = TableInput>
90 CreateTableRequest& WithTableInput(TableInputT&& value) { SetTableInput(std::forward<TableInputT>(value)); return *this;}
92
94
98 inline const Aws::Vector<PartitionIndex>& GetPartitionIndexes() const { return m_partitionIndexes; }
99 inline bool PartitionIndexesHasBeenSet() const { return m_partitionIndexesHasBeenSet; }
100 template<typename PartitionIndexesT = Aws::Vector<PartitionIndex>>
101 void SetPartitionIndexes(PartitionIndexesT&& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes = std::forward<PartitionIndexesT>(value); }
102 template<typename PartitionIndexesT = Aws::Vector<PartitionIndex>>
103 CreateTableRequest& WithPartitionIndexes(PartitionIndexesT&& value) { SetPartitionIndexes(std::forward<PartitionIndexesT>(value)); return *this;}
104 template<typename PartitionIndexesT = PartitionIndex>
105 CreateTableRequest& AddPartitionIndexes(PartitionIndexesT&& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes.emplace_back(std::forward<PartitionIndexesT>(value)); return *this; }
107
109
112 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
113 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
114 template<typename TransactionIdT = Aws::String>
115 void SetTransactionId(TransactionIdT&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::forward<TransactionIdT>(value); }
116 template<typename TransactionIdT = Aws::String>
117 CreateTableRequest& WithTransactionId(TransactionIdT&& value) { SetTransactionId(std::forward<TransactionIdT>(value)); return *this;}
119
121
125 inline const OpenTableFormatInput& GetOpenTableFormatInput() const { return m_openTableFormatInput; }
126 inline bool OpenTableFormatInputHasBeenSet() const { return m_openTableFormatInputHasBeenSet; }
127 template<typename OpenTableFormatInputT = OpenTableFormatInput>
128 void SetOpenTableFormatInput(OpenTableFormatInputT&& value) { m_openTableFormatInputHasBeenSet = true; m_openTableFormatInput = std::forward<OpenTableFormatInputT>(value); }
129 template<typename OpenTableFormatInputT = OpenTableFormatInput>
130 CreateTableRequest& WithOpenTableFormatInput(OpenTableFormatInputT&& value) { SetOpenTableFormatInput(std::forward<OpenTableFormatInputT>(value)); return *this;}
132 private:
133
134 Aws::String m_catalogId;
135 bool m_catalogIdHasBeenSet = false;
136
137 Aws::String m_databaseName;
138 bool m_databaseNameHasBeenSet = false;
139
140 Aws::String m_name;
141 bool m_nameHasBeenSet = false;
142
143 TableInput m_tableInput;
144 bool m_tableInputHasBeenSet = false;
145
146 Aws::Vector<PartitionIndex> m_partitionIndexes;
147 bool m_partitionIndexesHasBeenSet = false;
148
149 Aws::String m_transactionId;
150 bool m_transactionIdHasBeenSet = false;
151
152 OpenTableFormatInput m_openTableFormatInput;
153 bool m_openTableFormatInputHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Glue
158} // 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