AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_GLUE_API BatchCreatePartitionRequest() = default;
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 template<typename CatalogIdT = Aws::String>
47 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
48 template<typename CatalogIdT = Aws::String>
49 BatchCreatePartitionRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
58 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
59 template<typename DatabaseNameT = Aws::String>
60 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
61 template<typename DatabaseNameT = Aws::String>
62 BatchCreatePartitionRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetTableName() const { return m_tableName; }
70 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
71 template<typename TableNameT = Aws::String>
72 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
73 template<typename TableNameT = Aws::String>
74 BatchCreatePartitionRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
76
78
82 inline const Aws::Vector<PartitionInput>& GetPartitionInputList() const { return m_partitionInputList; }
83 inline bool PartitionInputListHasBeenSet() const { return m_partitionInputListHasBeenSet; }
84 template<typename PartitionInputListT = Aws::Vector<PartitionInput>>
85 void SetPartitionInputList(PartitionInputListT&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList = std::forward<PartitionInputListT>(value); }
86 template<typename PartitionInputListT = Aws::Vector<PartitionInput>>
87 BatchCreatePartitionRequest& WithPartitionInputList(PartitionInputListT&& value) { SetPartitionInputList(std::forward<PartitionInputListT>(value)); return *this;}
88 template<typename PartitionInputListT = PartitionInput>
89 BatchCreatePartitionRequest& AddPartitionInputList(PartitionInputListT&& value) { m_partitionInputListHasBeenSet = true; m_partitionInputList.emplace_back(std::forward<PartitionInputListT>(value)); return *this; }
91 private:
92
93 Aws::String m_catalogId;
94 bool m_catalogIdHasBeenSet = false;
95
96 Aws::String m_databaseName;
97 bool m_databaseNameHasBeenSet = false;
98
99 Aws::String m_tableName;
100 bool m_tableNameHasBeenSet = false;
101
102 Aws::Vector<PartitionInput> m_partitionInputList;
103 bool m_partitionInputListHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Glue
108} // namespace Aws
BatchCreatePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
BatchCreatePartitionRequest & WithTableName(TableNameT &&value)
const Aws::Vector< PartitionInput > & GetPartitionInputList() const
BatchCreatePartitionRequest & WithCatalogId(CatalogIdT &&value)
virtual const char * GetServiceRequestName() const override
BatchCreatePartitionRequest & WithPartitionInputList(PartitionInputListT &&value)
AWS_GLUE_API BatchCreatePartitionRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
BatchCreatePartitionRequest & AddPartitionInputList(PartitionInputListT &&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