AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; }
46 inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); }
47 inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); }
48 inline GetPartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
49 inline GetPartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
50 inline GetPartitionRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;}
52
54
57 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
58 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
59 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
60 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
61 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
62 inline GetPartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
63 inline GetPartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
64 inline GetPartitionRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
66
68
71 inline const Aws::String& GetTableName() const{ return m_tableName; }
72 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
73 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
74 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
75 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
76 inline GetPartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
77 inline GetPartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
78 inline GetPartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetPartitionValues() const{ return m_partitionValues; }
86 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
87 inline void SetPartitionValues(const Aws::Vector<Aws::String>& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = value; }
88 inline void SetPartitionValues(Aws::Vector<Aws::String>&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues = std::move(value); }
90 inline GetPartitionRequest& WithPartitionValues(Aws::Vector<Aws::String>&& value) { SetPartitionValues(std::move(value)); return *this;}
91 inline GetPartitionRequest& AddPartitionValues(const Aws::String& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(value); return *this; }
92 inline GetPartitionRequest& AddPartitionValues(Aws::String&& value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(std::move(value)); return *this; }
93 inline GetPartitionRequest& AddPartitionValues(const char* value) { m_partitionValuesHasBeenSet = true; m_partitionValues.push_back(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<Aws::String> m_partitionValues;
107 bool m_partitionValuesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
GetPartitionRequest & WithCatalogId(const Aws::String &value)
const Aws::String & GetDatabaseName() const
GetPartitionRequest & AddPartitionValues(const char *value)
GetPartitionRequest & WithTableName(const char *value)
void SetTableName(const Aws::String &value)
const Aws::String & GetCatalogId() const
GetPartitionRequest & WithCatalogId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetPartitionValues(Aws::Vector< Aws::String > &&value)
void SetDatabaseName(const Aws::String &value)
GetPartitionRequest & WithDatabaseName(Aws::String &&value)
GetPartitionRequest & AddPartitionValues(Aws::String &&value)
void SetDatabaseName(Aws::String &&value)
GetPartitionRequest & WithTableName(Aws::String &&value)
GetPartitionRequest & WithTableName(const Aws::String &value)
const Aws::String & GetTableName() const
GetPartitionRequest & WithCatalogId(const char *value)
GetPartitionRequest & WithPartitionValues(const Aws::Vector< Aws::String > &value)
void SetPartitionValues(const Aws::Vector< Aws::String > &value)
GetPartitionRequest & WithPartitionValues(Aws::Vector< Aws::String > &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetPartitionValues() const
GetPartitionRequest & AddPartitionValues(const Aws::String &value)
void SetCatalogId(const Aws::String &value)
GetPartitionRequest & WithDatabaseName(const Aws::String &value)
GetPartitionRequest & WithDatabaseName(const char *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