AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/PartitionValueList.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API BatchGetPartitionRequest() = 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 "BatchGetPartition"; }
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>
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<PartitionValueList>& GetPartitionsToGet() const { return m_partitionsToGet; }
95 inline bool PartitionsToGetHasBeenSet() const { return m_partitionsToGetHasBeenSet; }
96 template <typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
97 void SetPartitionsToGet(PartitionsToGetT&& value) {
98 m_partitionsToGetHasBeenSet = true;
99 m_partitionsToGet = std::forward<PartitionsToGetT>(value);
100 }
101 template <typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
103 SetPartitionsToGet(std::forward<PartitionsToGetT>(value));
104 return *this;
105 }
106 template <typename PartitionsToGetT = PartitionValueList>
107 BatchGetPartitionRequest& AddPartitionsToGet(PartitionsToGetT&& value) {
108 m_partitionsToGetHasBeenSet = true;
109 m_partitionsToGet.emplace_back(std::forward<PartitionsToGetT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_catalogId;
115
116 Aws::String m_databaseName;
117
118 Aws::String m_tableName;
119
120 Aws::Vector<PartitionValueList> m_partitionsToGet;
121 bool m_catalogIdHasBeenSet = false;
122 bool m_databaseNameHasBeenSet = false;
123 bool m_tableNameHasBeenSet = false;
124 bool m_partitionsToGetHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Glue
129} // 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
BatchGetPartitionRequest & WithCatalogId(CatalogIdT &&value)
BatchGetPartitionRequest & WithTableName(TableNameT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetPartitionRequest & AddPartitionsToGet(PartitionsToGetT &&value)
BatchGetPartitionRequest & WithDatabaseName(DatabaseNameT &&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