AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetPartitionsRequest.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/glue/model/Segment.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API GetPartitionsRequest() = default;
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 "GetPartitions"; }
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 template<typename CatalogIdT = Aws::String>
47 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
48 template<typename CatalogIdT = Aws::String>
49 GetPartitionsRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
57 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
58 template<typename DatabaseNameT = Aws::String>
59 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
60 template<typename DatabaseNameT = Aws::String>
61 GetPartitionsRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetTableName() const { return m_tableName; }
69 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
70 template<typename TableNameT = Aws::String>
71 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
72 template<typename TableNameT = Aws::String>
73 GetPartitionsRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
75
77
113 inline const Aws::String& GetExpression() const { return m_expression; }
114 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
115 template<typename ExpressionT = Aws::String>
116 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
117 template<typename ExpressionT = Aws::String>
118 GetPartitionsRequest& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
120
122
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template<typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
130 template<typename NextTokenT = Aws::String>
131 GetPartitionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
133
135
138 inline const Segment& GetSegment() const { return m_segment; }
139 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
140 template<typename SegmentT = Segment>
141 void SetSegment(SegmentT&& value) { m_segmentHasBeenSet = true; m_segment = std::forward<SegmentT>(value); }
142 template<typename SegmentT = Segment>
143 GetPartitionsRequest& WithSegment(SegmentT&& value) { SetSegment(std::forward<SegmentT>(value)); return *this;}
145
147
150 inline int GetMaxResults() const { return m_maxResults; }
151 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
153 inline GetPartitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
155
157
163 inline bool GetExcludeColumnSchema() const { return m_excludeColumnSchema; }
164 inline bool ExcludeColumnSchemaHasBeenSet() const { return m_excludeColumnSchemaHasBeenSet; }
165 inline void SetExcludeColumnSchema(bool value) { m_excludeColumnSchemaHasBeenSet = true; m_excludeColumnSchema = value; }
166 inline GetPartitionsRequest& WithExcludeColumnSchema(bool value) { SetExcludeColumnSchema(value); return *this;}
168
170
173 inline const Aws::String& GetTransactionId() const { return m_transactionId; }
174 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
175 template<typename TransactionIdT = Aws::String>
176 void SetTransactionId(TransactionIdT&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::forward<TransactionIdT>(value); }
177 template<typename TransactionIdT = Aws::String>
178 GetPartitionsRequest& WithTransactionId(TransactionIdT&& value) { SetTransactionId(std::forward<TransactionIdT>(value)); return *this;}
180
182
187 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const { return m_queryAsOfTime; }
188 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
189 template<typename QueryAsOfTimeT = Aws::Utils::DateTime>
190 void SetQueryAsOfTime(QueryAsOfTimeT&& value) { m_queryAsOfTimeHasBeenSet = true; m_queryAsOfTime = std::forward<QueryAsOfTimeT>(value); }
191 template<typename QueryAsOfTimeT = Aws::Utils::DateTime>
192 GetPartitionsRequest& WithQueryAsOfTime(QueryAsOfTimeT&& value) { SetQueryAsOfTime(std::forward<QueryAsOfTimeT>(value)); return *this;}
194 private:
195
196 Aws::String m_catalogId;
197 bool m_catalogIdHasBeenSet = false;
198
199 Aws::String m_databaseName;
200 bool m_databaseNameHasBeenSet = false;
201
202 Aws::String m_tableName;
203 bool m_tableNameHasBeenSet = false;
204
205 Aws::String m_expression;
206 bool m_expressionHasBeenSet = false;
207
208 Aws::String m_nextToken;
209 bool m_nextTokenHasBeenSet = false;
210
211 Segment m_segment;
212 bool m_segmentHasBeenSet = false;
213
214 int m_maxResults{0};
215 bool m_maxResultsHasBeenSet = false;
216
217 bool m_excludeColumnSchema{false};
218 bool m_excludeColumnSchemaHasBeenSet = false;
219
220 Aws::String m_transactionId;
221 bool m_transactionIdHasBeenSet = false;
222
223 Aws::Utils::DateTime m_queryAsOfTime{};
224 bool m_queryAsOfTimeHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace Glue
229} // namespace Aws
void SetDatabaseName(DatabaseNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetQueryAsOfTime(QueryAsOfTimeT &&value)
const Aws::String & GetDatabaseName() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPartitionsRequest & WithMaxResults(int value)
const Aws::Utils::DateTime & GetQueryAsOfTime() const
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API GetPartitionsRequest()=default
void SetTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithDatabaseName(DatabaseNameT &&value)
GetPartitionsRequest & WithTransactionId(TransactionIdT &&value)
GetPartitionsRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetTransactionId() const
GetPartitionsRequest & WithSegment(SegmentT &&value)
GetPartitionsRequest & WithExcludeColumnSchema(bool value)
GetPartitionsRequest & WithQueryAsOfTime(QueryAsOfTimeT &&value)
GetPartitionsRequest & WithCatalogId(CatalogIdT &&value)
GetPartitionsRequest & WithTableName(TableNameT &&value)
GetPartitionsRequest & WithExpression(ExpressionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String