AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
BatchGetPartitionRequest.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/AuditContext.h>
12#include <aws/glue/model/PartitionValueList.h>
13#include <aws/glue/model/QuerySessionContext.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Glue {
19namespace Model {
20
24 public:
25 AWS_GLUE_API BatchGetPartitionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchGetPartition"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
43 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
44 template <typename CatalogIdT = Aws::String>
45 void SetCatalogId(CatalogIdT&& value) {
46 m_catalogIdHasBeenSet = true;
47 m_catalogId = std::forward<CatalogIdT>(value);
48 }
49 template <typename CatalogIdT = Aws::String>
51 SetCatalogId(std::forward<CatalogIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
61 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
62 template <typename DatabaseNameT = Aws::String>
63 void SetDatabaseName(DatabaseNameT&& value) {
64 m_databaseNameHasBeenSet = true;
65 m_databaseName = std::forward<DatabaseNameT>(value);
66 }
67 template <typename DatabaseNameT = Aws::String>
69 SetDatabaseName(std::forward<DatabaseNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTableName() const { return m_tableName; }
79 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
80 template <typename TableNameT = Aws::String>
81 void SetTableName(TableNameT&& value) {
82 m_tableNameHasBeenSet = true;
83 m_tableName = std::forward<TableNameT>(value);
84 }
85 template <typename TableNameT = Aws::String>
87 SetTableName(std::forward<TableNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<PartitionValueList>& GetPartitionsToGet() const { return m_partitionsToGet; }
97 inline bool PartitionsToGetHasBeenSet() const { return m_partitionsToGetHasBeenSet; }
98 template <typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
99 void SetPartitionsToGet(PartitionsToGetT&& value) {
100 m_partitionsToGetHasBeenSet = true;
101 m_partitionsToGet = std::forward<PartitionsToGetT>(value);
102 }
103 template <typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
105 SetPartitionsToGet(std::forward<PartitionsToGetT>(value));
106 return *this;
107 }
108 template <typename PartitionsToGetT = PartitionValueList>
109 BatchGetPartitionRequest& AddPartitionsToGet(PartitionsToGetT&& value) {
110 m_partitionsToGetHasBeenSet = true;
111 m_partitionsToGet.emplace_back(std::forward<PartitionsToGetT>(value));
112 return *this;
113 }
115
117
118 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
119 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
120 template <typename AuditContextT = AuditContext>
121 void SetAuditContext(AuditContextT&& value) {
122 m_auditContextHasBeenSet = true;
123 m_auditContext = std::forward<AuditContextT>(value);
124 }
125 template <typename AuditContextT = AuditContext>
127 SetAuditContext(std::forward<AuditContextT>(value));
128 return *this;
129 }
131
133
134 inline const QuerySessionContext& GetQuerySessionContext() const { return m_querySessionContext; }
135 inline bool QuerySessionContextHasBeenSet() const { return m_querySessionContextHasBeenSet; }
136 template <typename QuerySessionContextT = QuerySessionContext>
137 void SetQuerySessionContext(QuerySessionContextT&& value) {
138 m_querySessionContextHasBeenSet = true;
139 m_querySessionContext = std::forward<QuerySessionContextT>(value);
140 }
141 template <typename QuerySessionContextT = QuerySessionContext>
142 BatchGetPartitionRequest& WithQuerySessionContext(QuerySessionContextT&& value) {
143 SetQuerySessionContext(std::forward<QuerySessionContextT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_catalogId;
149
150 Aws::String m_databaseName;
151
152 Aws::String m_tableName;
153
154 Aws::Vector<PartitionValueList> m_partitionsToGet;
155
156 AuditContext m_auditContext;
157
158 QuerySessionContext m_querySessionContext;
159 bool m_catalogIdHasBeenSet = false;
160 bool m_databaseNameHasBeenSet = false;
161 bool m_tableNameHasBeenSet = false;
162 bool m_partitionsToGetHasBeenSet = false;
163 bool m_auditContextHasBeenSet = false;
164 bool m_querySessionContextHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace Glue
169} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::String SerializePayload() const override
BatchGetPartitionRequest & WithPartitionsToGet(PartitionsToGetT &&value)
const Aws::Vector< PartitionValueList > & GetPartitionsToGet() const
AWS_GLUE_API BatchGetPartitionRequest()=default
void SetQuerySessionContext(QuerySessionContextT &&value)
BatchGetPartitionRequest & WithCatalogId(CatalogIdT &&value)
BatchGetPartitionRequest & WithTableName(TableNameT &&value)
BatchGetPartitionRequest & WithAuditContext(AuditContextT &&value)
BatchGetPartitionRequest & WithQuerySessionContext(QuerySessionContextT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetPartitionRequest & AddPartitionsToGet(PartitionsToGetT &&value)
BatchGetPartitionRequest & WithDatabaseName(DatabaseNameT &&value)
const QuerySessionContext & GetQuerySessionContext() const
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