AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDeleteTableRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API BatchDeleteTableRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "BatchDeleteTable"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
40 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
41 template <typename CatalogIdT = Aws::String>
42 void SetCatalogId(CatalogIdT&& value) {
43 m_catalogIdHasBeenSet = true;
44 m_catalogId = std::forward<CatalogIdT>(value);
45 }
46 template <typename CatalogIdT = Aws::String>
48 SetCatalogId(std::forward<CatalogIdT>(value));
49 return *this;
50 }
52
54
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>
66 BatchDeleteTableRequest& WithDatabaseName(DatabaseNameT&& value) {
67 SetDatabaseName(std::forward<DatabaseNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetTablesToDelete() const { return m_tablesToDelete; }
77 inline bool TablesToDeleteHasBeenSet() const { return m_tablesToDeleteHasBeenSet; }
78 template <typename TablesToDeleteT = Aws::Vector<Aws::String>>
79 void SetTablesToDelete(TablesToDeleteT&& value) {
80 m_tablesToDeleteHasBeenSet = true;
81 m_tablesToDelete = std::forward<TablesToDeleteT>(value);
82 }
83 template <typename TablesToDeleteT = Aws::Vector<Aws::String>>
84 BatchDeleteTableRequest& WithTablesToDelete(TablesToDeleteT&& value) {
85 SetTablesToDelete(std::forward<TablesToDeleteT>(value));
86 return *this;
87 }
88 template <typename TablesToDeleteT = Aws::String>
89 BatchDeleteTableRequest& AddTablesToDelete(TablesToDeleteT&& value) {
90 m_tablesToDeleteHasBeenSet = true;
91 m_tablesToDelete.emplace_back(std::forward<TablesToDeleteT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
101 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
102 template <typename TransactionIdT = Aws::String>
103 void SetTransactionId(TransactionIdT&& value) {
104 m_transactionIdHasBeenSet = true;
105 m_transactionId = std::forward<TransactionIdT>(value);
106 }
107 template <typename TransactionIdT = Aws::String>
109 SetTransactionId(std::forward<TransactionIdT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_catalogId;
115
116 Aws::String m_databaseName;
117
118 Aws::Vector<Aws::String> m_tablesToDelete;
119
120 Aws::String m_transactionId;
121 bool m_catalogIdHasBeenSet = false;
122 bool m_databaseNameHasBeenSet = false;
123 bool m_tablesToDeleteHasBeenSet = false;
124 bool m_transactionIdHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Glue
129} // namespace Aws
BatchDeleteTableRequest & WithTransactionId(TransactionIdT &&value)
AWS_GLUE_API BatchDeleteTableRequest()=default
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchDeleteTableRequest & AddTablesToDelete(TablesToDeleteT &&value)
BatchDeleteTableRequest & WithTablesToDelete(TablesToDeleteT &&value)
const Aws::Vector< Aws::String > & GetTablesToDelete() const
BatchDeleteTableRequest & WithDatabaseName(DatabaseNameT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
BatchDeleteTableRequest & WithCatalogId(CatalogIdT &&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