AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchCreatePartitionRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/PartitionInput.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "BatchCreatePartition"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCatalogId() const{ return m_catalogId; }
45 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
46 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
47 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
48 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
49 inline BatchCreatePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline BatchCreatePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline BatchCreatePartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
53
55
59 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
60 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
61 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
62 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
63 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
64 inline BatchCreatePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
65 inline BatchCreatePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
66 inline BatchCreatePartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
68
70
73 inline const Aws::String& GetTableName() const{ return m_tableName; }
74 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
75 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
76 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
77 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
78 inline BatchCreatePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
79 inline BatchCreatePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
80 inline BatchCreatePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
82
84
88 inline const Aws::Vector<PartitionInput>& GetPartitionInputList() const{ return m_partitionInputList; }
89 inline bool PartitionInputListHasBeenSet() const { return m_partitionInputListHasBeenSet; }
90 inline void SetPartitionInputList(const Aws::Vector<PartitionInput>& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList = value; }
91 inline void SetPartitionInputList(Aws::Vector<PartitionInput>&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList = std::move(value); }
94 inline BatchCreatePartitionRequest& AddPartitionInputList(const PartitionInput& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList.push_back(value); return *this; }
95 inline BatchCreatePartitionRequest& AddPartitionInputList(PartitionInput&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_catalogId;
100 bool m_catalogIdHasBeenSet = false;
101
102 Aws::String m_databaseName;
103 bool m_databaseNameHasBeenSet = false;
104
105 Aws::String m_tableName;
106 bool m_tableNameHasBeenSet = false;
107
108 Aws::Vector<PartitionInput> m_partitionInputList;
109 bool m_partitionInputListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Glue
114} // namespace Aws
BatchCreatePartitionRequest & WithDatabaseName(Aws::String &&value)
BatchCreatePartitionRequest & WithPartitionInputList(Aws::Vector< PartitionInput > &&value)
BatchCreatePartitionRequest & WithCatalogId(Aws::String &&value)
BatchCreatePartitionRequest & WithTableName(const Aws::String &value)
BatchCreatePartitionRequest & WithDatabaseName(const Aws::String &value)
BatchCreatePartitionRequest & WithCatalogId(const Aws::String &value)
const Aws::Vector< PartitionInput > & GetPartitionInputList() const
void SetPartitionInputList(Aws::Vector< PartitionInput > &&value)
BatchCreatePartitionRequest & WithTableName(const char *value)
BatchCreatePartitionRequest & AddPartitionInputList(const PartitionInput &value)
BatchCreatePartitionRequest & WithDatabaseName(const char *value)
BatchCreatePartitionRequest & WithTableName(Aws::String &&value)
BatchCreatePartitionRequest & WithPartitionInputList(const Aws::Vector< PartitionInput > &value)
virtual const char * GetServiceRequestName() const override
BatchCreatePartitionRequest & AddPartitionInputList(PartitionInput &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
BatchCreatePartitionRequest & WithCatalogId(const char *value)
void SetPartitionInputList(const Aws::Vector< PartitionInput > &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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