AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 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 BatchGetPartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline BatchGetPartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline BatchGetPartitionRequest& 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 BatchGetPartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
64 inline BatchGetPartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
65 inline BatchGetPartitionRequest& 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 BatchGetPartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
78 inline BatchGetPartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
79 inline BatchGetPartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
81
83
86 inline const Aws::Vector<PartitionValueList>& GetPartitionsToGet() const{ return m_partitionsToGet; }
87 inline bool PartitionsToGetHasBeenSet() const { return m_partitionsToGetHasBeenSet; }
88 inline void SetPartitionsToGet(const Aws::Vector<PartitionValueList>& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet = value; }
89 inline void SetPartitionsToGet(Aws::Vector<PartitionValueList>&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet = std::move(value); }
92 inline BatchGetPartitionRequest& AddPartitionsToGet(const PartitionValueList& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet.push_back(value); return *this; }
93 inline BatchGetPartitionRequest& AddPartitionsToGet(PartitionValueList&& value) { m_partitionsToGetHasBeenSet = true; m_partitionsToGet.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_catalogId;
98 bool m_catalogIdHasBeenSet = false;
99
100 Aws::String m_databaseName;
101 bool m_databaseNameHasBeenSet = false;
102
103 Aws::String m_tableName;
104 bool m_tableNameHasBeenSet = false;
105
106 Aws::Vector<PartitionValueList> m_partitionsToGet;
107 bool m_partitionsToGetHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
virtual const char * GetServiceRequestName() const override
BatchGetPartitionRequest & WithDatabaseName(Aws::String &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
BatchGetPartitionRequest & WithPartitionsToGet(const Aws::Vector< PartitionValueList > &value)
BatchGetPartitionRequest & WithDatabaseName(const Aws::String &value)
BatchGetPartitionRequest & AddPartitionsToGet(const PartitionValueList &value)
const Aws::Vector< PartitionValueList > & GetPartitionsToGet() const
BatchGetPartitionRequest & WithDatabaseName(const char *value)
BatchGetPartitionRequest & WithPartitionsToGet(Aws::Vector< PartitionValueList > &&value)
BatchGetPartitionRequest & WithCatalogId(const Aws::String &value)
BatchGetPartitionRequest & WithTableName(Aws::String &&value)
BatchGetPartitionRequest & WithTableName(const char *value)
BatchGetPartitionRequest & WithCatalogId(Aws::String &&value)
BatchGetPartitionRequest & AddPartitionsToGet(PartitionValueList &&value)
BatchGetPartitionRequest & WithTableName(const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetPartitionRequest & WithCatalogId(const char *value)
void SetPartitionsToGet(const Aws::Vector< PartitionValueList > &value)
void SetPartitionsToGet(Aws::Vector< PartitionValueList > &&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