AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 BatchDeletePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline BatchDeletePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline BatchDeletePartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
53
55
58 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
59 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
60 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
61 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
62 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
63 inline BatchDeletePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
64 inline BatchDeletePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
65 inline BatchDeletePartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
67
69
72 inline const Aws::String& GetTableName() const{ return m_tableName; }
73 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
74 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
75 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
76 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
77 inline BatchDeletePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
78 inline BatchDeletePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
79 inline BatchDeletePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
81
83
87 inline const Aws::Vector<PartitionValueList>& GetPartitionsToDelete() const{ return m_partitionsToDelete; }
88 inline bool PartitionsToDeleteHasBeenSet() const { return m_partitionsToDeleteHasBeenSet; }
89 inline void SetPartitionsToDelete(const Aws::Vector<PartitionValueList>& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete = value; }
90 inline void SetPartitionsToDelete(Aws::Vector<PartitionValueList>&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete = std::move(value); }
93 inline BatchDeletePartitionRequest& AddPartitionsToDelete(const PartitionValueList& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete.push_back(value); return *this; }
94 inline BatchDeletePartitionRequest& AddPartitionsToDelete(PartitionValueList&& value) { m_partitionsToDeleteHasBeenSet = true; m_partitionsToDelete.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_catalogId;
99 bool m_catalogIdHasBeenSet = false;
100
101 Aws::String m_databaseName;
102 bool m_databaseNameHasBeenSet = false;
103
104 Aws::String m_tableName;
105 bool m_tableNameHasBeenSet = false;
106
107 Aws::Vector<PartitionValueList> m_partitionsToDelete;
108 bool m_partitionsToDeleteHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Glue
113} // namespace Aws
void SetPartitionsToDelete(const Aws::Vector< PartitionValueList > &value)
BatchDeletePartitionRequest & WithTableName(Aws::String &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeletePartitionRequest & WithCatalogId(const char *value)
BatchDeletePartitionRequest & WithDatabaseName(const Aws::String &value)
AWS_GLUE_API Aws::String SerializePayload() const override
BatchDeletePartitionRequest & AddPartitionsToDelete(PartitionValueList &&value)
BatchDeletePartitionRequest & WithDatabaseName(const char *value)
BatchDeletePartitionRequest & WithCatalogId(Aws::String &&value)
BatchDeletePartitionRequest & AddPartitionsToDelete(const PartitionValueList &value)
BatchDeletePartitionRequest & WithDatabaseName(Aws::String &&value)
BatchDeletePartitionRequest & WithCatalogId(const Aws::String &value)
BatchDeletePartitionRequest & WithTableName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetPartitionsToDelete(Aws::Vector< PartitionValueList > &&value)
BatchDeletePartitionRequest & WithPartitionsToDelete(Aws::Vector< PartitionValueList > &&value)
BatchDeletePartitionRequest & WithPartitionsToDelete(const Aws::Vector< PartitionValueList > &value)
const Aws::Vector< PartitionValueList > & GetPartitionsToDelete() const
BatchDeletePartitionRequest & WithTableName(const 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