AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetPartitionRequest.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 <utility>
12
13namespace Aws
14{
15namespace Glue
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GLUE_API GetPartitionRequest() = 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 "GetPartition"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
44 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
45 template<typename CatalogIdT = Aws::String>
46 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
47 template<typename CatalogIdT = Aws::String>
48 GetPartitionRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
56 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
57 template<typename DatabaseNameT = Aws::String>
58 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
59 template<typename DatabaseNameT = Aws::String>
60 GetPartitionRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetTableName() const { return m_tableName; }
68 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
69 template<typename TableNameT = Aws::String>
70 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
71 template<typename TableNameT = Aws::String>
72 GetPartitionRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Aws::String>& GetPartitionValues() const { return m_partitionValues; }
80 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
81 template<typename PartitionValuesT = Aws::Vector<Aws::String>>
82 void SetPartitionValues(PartitionValuesT&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = std::forward<PartitionValuesT>(value); }
83 template<typename PartitionValuesT = Aws::Vector<Aws::String>>
84 GetPartitionRequest& WithPartitionValues(PartitionValuesT&& value) { SetPartitionValues(std::forward<PartitionValuesT>(value)); return *this;}
85 template<typename PartitionValuesT = Aws::String>
86 GetPartitionRequest& AddPartitionValues(PartitionValuesT&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.emplace_back(std::forward<PartitionValuesT>(value)); return *this; }
88 private:
89
90 Aws::String m_catalogId;
91 bool m_catalogIdHasBeenSet = false;
92
93 Aws::String m_databaseName;
94 bool m_databaseNameHasBeenSet = false;
95
96 Aws::String m_tableName;
97 bool m_tableNameHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_partitionValues;
100 bool m_partitionValuesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Glue
105} // namespace Aws
const Aws::String & GetDatabaseName() const
GetPartitionRequest & WithTableName(TableNameT &&value)
const Aws::String & GetCatalogId() const
virtual const char * GetServiceRequestName() const override
GetPartitionRequest & WithCatalogId(CatalogIdT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetPartitionRequest & WithPartitionValues(PartitionValuesT &&value)
GetPartitionRequest & WithDatabaseName(DatabaseNameT &&value)
const Aws::String & GetTableName() const
void SetDatabaseName(DatabaseNameT &&value)
void SetPartitionValues(PartitionValuesT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API GetPartitionRequest()=default
GetPartitionRequest & AddPartitionValues(PartitionValuesT &&value)
const Aws::Vector< Aws::String > & GetPartitionValues() 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