AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
49 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
50 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
51 inline CreateTableRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
52 inline CreateTableRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
53 inline CreateTableRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
55
57
61 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
64 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
65 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
66 inline CreateTableRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
67 inline CreateTableRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
68 inline CreateTableRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
70
72
76 inline const TableInput& GetTableInput() const{ return m_tableInput; }
77 inline bool TableInputHasBeenSet() const { return m_tableInputHasBeenSet; }
78 inline void SetTableInput(const TableInput& value) { m_tableInputHasBeenSet = true; m_tableInput = value; }
79 inline void SetTableInput(TableInput&& value) { m_tableInputHasBeenSet = true; m_tableInput = std::move(value); }
80 inline CreateTableRequest& WithTableInput(const TableInput& value) { SetTableInput(value); return *this;}
81 inline CreateTableRequest& WithTableInput(TableInput&& value) { SetTableInput(std::move(value)); return *this;}
83
85
89 inline const Aws::Vector<PartitionIndex>& GetPartitionIndexes() const{ return m_partitionIndexes; }
90 inline bool PartitionIndexesHasBeenSet() const { return m_partitionIndexesHasBeenSet; }
91 inline void SetPartitionIndexes(const Aws::Vector<PartitionIndex>& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes = value; }
92 inline void SetPartitionIndexes(Aws::Vector<PartitionIndex>&& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes = std::move(value); }
95 inline CreateTableRequest& AddPartitionIndexes(const PartitionIndex& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes.push_back(value); return *this; }
96 inline CreateTableRequest& AddPartitionIndexes(PartitionIndex&& value) { m_partitionIndexesHasBeenSet = true; m_partitionIndexes.push_back(std::move(value)); return *this; }
98
100
103 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
104 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
105 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
106 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
107 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
108 inline CreateTableRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
109 inline CreateTableRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
110 inline CreateTableRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
112
114
118 inline const OpenTableFormatInput& GetOpenTableFormatInput() const{ return m_openTableFormatInput; }
119 inline bool OpenTableFormatInputHasBeenSet() const { return m_openTableFormatInputHasBeenSet; }
120 inline void SetOpenTableFormatInput(const OpenTableFormatInput& value) { m_openTableFormatInputHasBeenSet = true; m_openTableFormatInput = value; }
121 inline void SetOpenTableFormatInput(OpenTableFormatInput&& value) { m_openTableFormatInputHasBeenSet = true; m_openTableFormatInput = std::move(value); }
125 private:
126
127 Aws::String m_catalogId;
128 bool m_catalogIdHasBeenSet = false;
129
130 Aws::String m_databaseName;
131 bool m_databaseNameHasBeenSet = false;
132
133 TableInput m_tableInput;
134 bool m_tableInputHasBeenSet = false;
135
136 Aws::Vector<PartitionIndex> m_partitionIndexes;
137 bool m_partitionIndexesHasBeenSet = false;
138
139 Aws::String m_transactionId;
140 bool m_transactionIdHasBeenSet = false;
141
142 OpenTableFormatInput m_openTableFormatInput;
143 bool m_openTableFormatInputHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Glue
148} // namespace Aws
void SetTransactionId(Aws::String &&value)
void SetOpenTableFormatInput(OpenTableFormatInput &&value)
void SetCatalogId(const Aws::String &value)
CreateTableRequest & WithPartitionIndexes(Aws::Vector< PartitionIndex > &&value)
CreateTableRequest & WithCatalogId(Aws::String &&value)
CreateTableRequest & WithCatalogId(const char *value)
CreateTableRequest & WithCatalogId(const Aws::String &value)
CreateTableRequest & WithTransactionId(const char *value)
const Aws::String & GetCatalogId() const
void SetTableInput(const TableInput &value)
const Aws::String & GetTransactionId() const
void SetDatabaseName(Aws::String &&value)
CreateTableRequest & WithTableInput(TableInput &&value)
CreateTableRequest & WithTransactionId(Aws::String &&value)
CreateTableRequest & WithDatabaseName(Aws::String &&value)
const Aws::String & GetDatabaseName() const
const Aws::Vector< PartitionIndex > & GetPartitionIndexes() const
void SetOpenTableFormatInput(const OpenTableFormatInput &value)
CreateTableRequest & WithDatabaseName(const char *value)
void SetPartitionIndexes(Aws::Vector< PartitionIndex > &&value)
void SetDatabaseName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateTableRequest & WithTransactionId(const Aws::String &value)
CreateTableRequest & WithOpenTableFormatInput(const OpenTableFormatInput &value)
CreateTableRequest & WithPartitionIndexes(const Aws::Vector< PartitionIndex > &value)
AWS_GLUE_API Aws::String SerializePayload() const override
CreateTableRequest & WithOpenTableFormatInput(OpenTableFormatInput &&value)
CreateTableRequest & WithTableInput(const TableInput &value)
void SetTransactionId(const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const TableInput & GetTableInput() const
CreateTableRequest & AddPartitionIndexes(PartitionIndex &&value)
CreateTableRequest & WithDatabaseName(const Aws::String &value)
const OpenTableFormatInput & GetOpenTableFormatInput() const
void SetPartitionIndexes(const Aws::Vector< PartitionIndex > &value)
CreateTableRequest & AddPartitionIndexes(const PartitionIndex &value)
void SetCatalogId(Aws::String &&value)
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