AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
BatchDeletePartitionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/PartitionValueList.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API BatchDeletePartitionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchDeletePartition"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
41 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
42 template <typename CatalogIdT = Aws::String>
43 void SetCatalogId(CatalogIdT&& value) {
44 m_catalogIdHasBeenSet = true;
45 m_catalogId = std::forward<CatalogIdT>(value);
46 }
47 template <typename CatalogIdT = Aws::String>
49 SetCatalogId(std::forward<CatalogIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
59 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
60 template <typename DatabaseNameT = Aws::String>
61 void SetDatabaseName(DatabaseNameT&& value) {
62 m_databaseNameHasBeenSet = true;
63 m_databaseName = std::forward<DatabaseNameT>(value);
64 }
65 template <typename DatabaseNameT = Aws::String>
67 SetDatabaseName(std::forward<DatabaseNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTableName() const { return m_tableName; }
77 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
78 template <typename TableNameT = Aws::String>
79 void SetTableName(TableNameT&& value) {
80 m_tableNameHasBeenSet = true;
81 m_tableName = std::forward<TableNameT>(value);
82 }
83 template <typename TableNameT = Aws::String>
85 SetTableName(std::forward<TableNameT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<PartitionValueList>& GetPartitionsToDelete() const { return m_partitionsToDelete; }
96 inline bool PartitionsToDeleteHasBeenSet() const { return m_partitionsToDeleteHasBeenSet; }
97 template <typename PartitionsToDeleteT = Aws::Vector<PartitionValueList>>
98 void SetPartitionsToDelete(PartitionsToDeleteT&& value) {
99 m_partitionsToDeleteHasBeenSet = true;
100 m_partitionsToDelete = std::forward<PartitionsToDeleteT>(value);
101 }
102 template <typename PartitionsToDeleteT = Aws::Vector<PartitionValueList>>
104 SetPartitionsToDelete(std::forward<PartitionsToDeleteT>(value));
105 return *this;
106 }
107 template <typename PartitionsToDeleteT = PartitionValueList>
109 m_partitionsToDeleteHasBeenSet = true;
110 m_partitionsToDelete.emplace_back(std::forward<PartitionsToDeleteT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_catalogId;
116
117 Aws::String m_databaseName;
118
119 Aws::String m_tableName;
120
121 Aws::Vector<PartitionValueList> m_partitionsToDelete;
122 bool m_catalogIdHasBeenSet = false;
123 bool m_databaseNameHasBeenSet = false;
124 bool m_tableNameHasBeenSet = false;
125 bool m_partitionsToDeleteHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Glue
130} // 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