AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchDeletePartitionRequest.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/PartitionValueList.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API BatchDeletePartitionRequest() = 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 "BatchDeletePartition"; }
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 BatchDeletePartitionRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
57 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
58 template<typename DatabaseNameT = Aws::String>
59 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
60 template<typename DatabaseNameT = Aws::String>
61 BatchDeletePartitionRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetTableName() const { return m_tableName; }
69 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
70 template<typename TableNameT = Aws::String>
71 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
72 template<typename TableNameT = Aws::String>
73 BatchDeletePartitionRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
75
77
81 inline const Aws::Vector<PartitionValueList>& GetPartitionsToDelete() const { return m_partitionsToDelete; }
82 inline bool PartitionsToDeleteHasBeenSet() const { return m_partitionsToDeleteHasBeenSet; }
83 template<typename PartitionsToDeleteT = Aws::Vector<PartitionValueList>>
84 void SetPartitionsToDelete(PartitionsToDeleteT&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete = std::forward<PartitionsToDeleteT>(value); }
85 template<typename PartitionsToDeleteT = Aws::Vector<PartitionValueList>>
86 BatchDeletePartitionRequest& WithPartitionsToDelete(PartitionsToDeleteT&& value) { SetPartitionsToDelete(std::forward<PartitionsToDeleteT>(value)); return *this;}
87 template<typename PartitionsToDeleteT = PartitionValueList>
88 BatchDeletePartitionRequest& AddPartitionsToDelete(PartitionsToDeleteT&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete.emplace_back(std::forward<PartitionsToDeleteT>(value)); return *this; }
90 private:
91
92 Aws::String m_catalogId;
93 bool m_catalogIdHasBeenSet = false;
94
95 Aws::String m_databaseName;
96 bool m_databaseNameHasBeenSet = false;
97
98 Aws::String m_tableName;
99 bool m_tableNameHasBeenSet = false;
100
101 Aws::Vector<PartitionValueList> m_partitionsToDelete;
102 bool m_partitionsToDeleteHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Glue
107} // namespace Aws
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeletePartitionRequest & AddPartitionsToDelete(PartitionsToDeleteT &&value)
AWS_GLUE_API BatchDeletePartitionRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
BatchDeletePartitionRequest & WithTableName(TableNameT &&value)
BatchDeletePartitionRequest & WithCatalogId(CatalogIdT &&value)
virtual const char * GetServiceRequestName() const override
BatchDeletePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
const Aws::Vector< PartitionValueList > & GetPartitionsToDelete() const
BatchDeletePartitionRequest & WithPartitionsToDelete(PartitionsToDeleteT &&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