AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 GetPartitionsRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline GetPartitionsRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline GetPartitionsRequest& 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 GetPartitionsRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
64 inline GetPartitionsRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
65 inline GetPartitionsRequest& 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 GetPartitionsRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
78 inline GetPartitionsRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
79 inline GetPartitionsRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
81
83
119 inline const Aws::String& GetExpression() const{ return m_expression; }
120 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
121 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
122 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
123 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
124 inline GetPartitionsRequest& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
125 inline GetPartitionsRequest& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
126 inline GetPartitionsRequest& WithExpression(const char* value) { SetExpression(value); return *this;}
128
130
134 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
137 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
139 inline GetPartitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
140 inline GetPartitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
141 inline GetPartitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
143
145
148 inline const Segment& GetSegment() const{ return m_segment; }
149 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
150 inline void SetSegment(const Segment& value) { m_segmentHasBeenSet = true; m_segment = value; }
151 inline void SetSegment(Segment&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); }
152 inline GetPartitionsRequest& WithSegment(const Segment& value) { SetSegment(value); return *this;}
153 inline GetPartitionsRequest& WithSegment(Segment&& value) { SetSegment(std::move(value)); return *this;}
155
157
160 inline int GetMaxResults() const{ return m_maxResults; }
161 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
162 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
163 inline GetPartitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
165
167
173 inline bool GetExcludeColumnSchema() const{ return m_excludeColumnSchema; }
174 inline bool ExcludeColumnSchemaHasBeenSet() const { return m_excludeColumnSchemaHasBeenSet; }
175 inline void SetExcludeColumnSchema(bool value) { m_excludeColumnSchemaHasBeenSet = true; m_excludeColumnSchema = value; }
176 inline GetPartitionsRequest& WithExcludeColumnSchema(bool value) { SetExcludeColumnSchema(value); return *this;}
178
180
183 inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
184 inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
185 inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
186 inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
187 inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
188 inline GetPartitionsRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
189 inline GetPartitionsRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
190 inline GetPartitionsRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
192
194
199 inline const Aws::Utils::DateTime& GetQueryAsOfTime() const{ return m_queryAsOfTime; }
200 inline bool QueryAsOfTimeHasBeenSet() const { return m_queryAsOfTimeHasBeenSet; }
201 inline void SetQueryAsOfTime(const Aws::Utils::DateTime& value) { m_queryAsOfTimeHasBeenSet = true; m_queryAsOfTime = value; }
202 inline void SetQueryAsOfTime(Aws::Utils::DateTime&& value) { m_queryAsOfTimeHasBeenSet = true; m_queryAsOfTime = std::move(value); }
204 inline GetPartitionsRequest& WithQueryAsOfTime(Aws::Utils::DateTime&& value) { SetQueryAsOfTime(std::move(value)); return *this;}
206 private:
207
208 Aws::String m_catalogId;
209 bool m_catalogIdHasBeenSet = false;
210
211 Aws::String m_databaseName;
212 bool m_databaseNameHasBeenSet = false;
213
214 Aws::String m_tableName;
215 bool m_tableNameHasBeenSet = false;
216
217 Aws::String m_expression;
218 bool m_expressionHasBeenSet = false;
219
220 Aws::String m_nextToken;
221 bool m_nextTokenHasBeenSet = false;
222
223 Segment m_segment;
224 bool m_segmentHasBeenSet = false;
225
226 int m_maxResults;
227 bool m_maxResultsHasBeenSet = false;
228
229 bool m_excludeColumnSchema;
230 bool m_excludeColumnSchemaHasBeenSet = false;
231
232 Aws::String m_transactionId;
233 bool m_transactionIdHasBeenSet = false;
234
235 Aws::Utils::DateTime m_queryAsOfTime;
236 bool m_queryAsOfTimeHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace Glue
241} // namespace Aws
GetPartitionsRequest & WithExpression(const char *value)
void SetTableName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetDatabaseName() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCatalogId(const Aws::String &value)
GetPartitionsRequest & WithMaxResults(int value)
GetPartitionsRequest & WithTableName(const Aws::String &value)
const Aws::Utils::DateTime & GetQueryAsOfTime() const
AWS_GLUE_API Aws::String SerializePayload() const override
GetPartitionsRequest & WithTransactionId(const char *value)
GetPartitionsRequest & WithNextToken(const char *value)
GetPartitionsRequest & WithSegment(const Segment &value)
GetPartitionsRequest & WithNextToken(Aws::String &&value)
void SetNextToken(const Aws::String &value)
void SetTransactionId(const Aws::String &value)
GetPartitionsRequest & WithTransactionId(const Aws::String &value)
GetPartitionsRequest & WithQueryAsOfTime(const Aws::Utils::DateTime &value)
void SetExpression(const Aws::String &value)
GetPartitionsRequest & WithDatabaseName(const Aws::String &value)
GetPartitionsRequest & WithDatabaseName(Aws::String &&value)
GetPartitionsRequest & WithCatalogId(const char *value)
const Aws::String & GetTransactionId() const
GetPartitionsRequest & WithExcludeColumnSchema(bool value)
GetPartitionsRequest & WithNextToken(const Aws::String &value)
void SetQueryAsOfTime(Aws::Utils::DateTime &&value)
GetPartitionsRequest & WithExpression(const Aws::String &value)
GetPartitionsRequest & WithCatalogId(Aws::String &&value)
GetPartitionsRequest & WithTableName(const char *value)
void SetQueryAsOfTime(const Aws::Utils::DateTime &value)
GetPartitionsRequest & WithSegment(Segment &&value)
GetPartitionsRequest & WithExpression(Aws::String &&value)
GetPartitionsRequest & WithTableName(Aws::String &&value)
void SetDatabaseName(const Aws::String &value)
GetPartitionsRequest & WithTransactionId(Aws::String &&value)
GetPartitionsRequest & WithCatalogId(const Aws::String &value)
GetPartitionsRequest & WithQueryAsOfTime(Aws::Utils::DateTime &&value)
GetPartitionsRequest & WithDatabaseName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String