AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
UpdatePartitionRequest.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/PartitionInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API UpdatePartitionRequest() = 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 "UpdatePartition"; }
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>
66 UpdatePartitionRequest& WithDatabaseName(DatabaseNameT&& value) {
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
94 inline const Aws::Vector<Aws::String>& GetPartitionValueList() const { return m_partitionValueList; }
95 inline bool PartitionValueListHasBeenSet() const { return m_partitionValueListHasBeenSet; }
96 template <typename PartitionValueListT = Aws::Vector<Aws::String>>
97 void SetPartitionValueList(PartitionValueListT&& value) {
98 m_partitionValueListHasBeenSet = true;
99 m_partitionValueList = std::forward<PartitionValueListT>(value);
100 }
101 template <typename PartitionValueListT = Aws::Vector<Aws::String>>
102 UpdatePartitionRequest& WithPartitionValueList(PartitionValueListT&& value) {
103 SetPartitionValueList(std::forward<PartitionValueListT>(value));
104 return *this;
105 }
106 template <typename PartitionValueListT = Aws::String>
107 UpdatePartitionRequest& AddPartitionValueList(PartitionValueListT&& value) {
108 m_partitionValueListHasBeenSet = true;
109 m_partitionValueList.emplace_back(std::forward<PartitionValueListT>(value));
110 return *this;
111 }
113
115
120 inline const PartitionInput& GetPartitionInput() const { return m_partitionInput; }
121 inline bool PartitionInputHasBeenSet() const { return m_partitionInputHasBeenSet; }
122 template <typename PartitionInputT = PartitionInput>
123 void SetPartitionInput(PartitionInputT&& value) {
124 m_partitionInputHasBeenSet = true;
125 m_partitionInput = std::forward<PartitionInputT>(value);
126 }
127 template <typename PartitionInputT = PartitionInput>
128 UpdatePartitionRequest& WithPartitionInput(PartitionInputT&& value) {
129 SetPartitionInput(std::forward<PartitionInputT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_catalogId;
135 bool m_catalogIdHasBeenSet = false;
136
137 Aws::String m_databaseName;
138 bool m_databaseNameHasBeenSet = false;
139
140 Aws::String m_tableName;
141 bool m_tableNameHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_partitionValueList;
144 bool m_partitionValueListHasBeenSet = false;
145
146 PartitionInput m_partitionInput;
147 bool m_partitionInputHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Glue
152} // namespace Aws
void SetPartitionValueList(PartitionValueListT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
UpdatePartitionRequest & WithTableName(TableNameT &&value)
UpdatePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
UpdatePartitionRequest & WithPartitionInput(PartitionInputT &&value)
const Aws::Vector< Aws::String > & GetPartitionValueList() const
virtual const char * GetServiceRequestName() const override
UpdatePartitionRequest & WithPartitionValueList(PartitionValueListT &&value)
UpdatePartitionRequest & AddPartitionValueList(PartitionValueListT &&value)
const PartitionInput & GetPartitionInput() const
AWS_GLUE_API UpdatePartitionRequest()=default
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePartitionRequest & WithCatalogId(CatalogIdT &&value)
void SetPartitionInput(PartitionInputT &&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