AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
DeletePartitionRequest.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 DeletePartitionRequest() = 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 "DeletePartition"; }
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
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) {
61 m_databaseNameHasBeenSet = true;
62 m_databaseName = std::forward<DatabaseNameT>(value);
63 }
64 template <typename DatabaseNameT = Aws::String>
65 DeletePartitionRequest& WithDatabaseName(DatabaseNameT&& value) {
66 SetDatabaseName(std::forward<DatabaseNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTableName() const { return m_tableName; }
76 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
77 template <typename TableNameT = Aws::String>
78 void SetTableName(TableNameT&& value) {
79 m_tableNameHasBeenSet = true;
80 m_tableName = std::forward<TableNameT>(value);
81 }
82 template <typename TableNameT = Aws::String>
84 SetTableName(std::forward<TableNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetPartitionValues() const { return m_partitionValues; }
94 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
95 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
96 void SetPartitionValues(PartitionValuesT&& value) {
97 m_partitionValuesHasBeenSet = true;
98 m_partitionValues = std::forward<PartitionValuesT>(value);
99 }
100 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
101 DeletePartitionRequest& WithPartitionValues(PartitionValuesT&& value) {
102 SetPartitionValues(std::forward<PartitionValuesT>(value));
103 return *this;
104 }
105 template <typename PartitionValuesT = Aws::String>
106 DeletePartitionRequest& AddPartitionValues(PartitionValuesT&& value) {
107 m_partitionValuesHasBeenSet = true;
108 m_partitionValues.emplace_back(std::forward<PartitionValuesT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_catalogId;
114 bool m_catalogIdHasBeenSet = false;
115
116 Aws::String m_databaseName;
117 bool m_databaseNameHasBeenSet = false;
118
119 Aws::String m_tableName;
120 bool m_tableNameHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_partitionValues;
123 bool m_partitionValuesHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace Glue
128} // namespace Aws
DeletePartitionRequest & WithTableName(TableNameT &&value)
void SetPartitionValues(PartitionValuesT &&value)
DeletePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
DeletePartitionRequest & WithCatalogId(CatalogIdT &&value)
AWS_GLUE_API DeletePartitionRequest()=default
DeletePartitionRequest & AddPartitionValues(PartitionValuesT &&value)
DeletePartitionRequest & WithPartitionValues(PartitionValuesT &&value)
const Aws::Vector< Aws::String > & GetPartitionValues() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() 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