AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetPartitionRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/glue/model/PartitionValueList.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API BatchGetPartitionRequest() = 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 "BatchGetPartition"; }
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 BatchGetPartitionRequest& 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 BatchGetPartitionRequest& 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 BatchGetPartitionRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
75
77
80 inline const Aws::Vector<PartitionValueList>& GetPartitionsToGet() const { return m_partitionsToGet; }
81 inline bool PartitionsToGetHasBeenSet() const { return m_partitionsToGetHasBeenSet; }
82 template<typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
83 void SetPartitionsToGet(PartitionsToGetT&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet = std::forward<PartitionsToGetT>(value); }
84 template<typename PartitionsToGetT = Aws::Vector<PartitionValueList>>
85 BatchGetPartitionRequest& WithPartitionsToGet(PartitionsToGetT&& value) { SetPartitionsToGet(std::forward<PartitionsToGetT>(value)); return *this;}
86 template<typename PartitionsToGetT = PartitionValueList>
87 BatchGetPartitionRequest& AddPartitionsToGet(PartitionsToGetT&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet.emplace_back(std::forward<PartitionsToGetT>(value)); return *this; }
89 private:
90
91 Aws::String m_catalogId;
92 bool m_catalogIdHasBeenSet = false;
93
94 Aws::String m_databaseName;
95 bool m_databaseNameHasBeenSet = false;
96
97 Aws::String m_tableName;
98 bool m_tableNameHasBeenSet = false;
99
100 Aws::Vector<PartitionValueList> m_partitionsToGet;
101 bool m_partitionsToGetHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Glue
106} // 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