AWS SDK for C++

AWS SDK for C++ Version 1.11.809

Loading...
Searching...
No Matches
GetPartitionRequest.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/AuditContext.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API GetPartitionRequest() = 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 "GetPartition"; }
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>
48 GetPartitionRequest& WithCatalogId(CatalogIdT&& value) {
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>
66 GetPartitionRequest& WithDatabaseName(DatabaseNameT&& value) {
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>
84 GetPartitionRequest& WithTableName(TableNameT&& value) {
85 SetTableName(std::forward<TableNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetPartitionValues() const { return m_partitionValues; }
95 inline bool PartitionValuesHasBeenSet() const { return m_partitionValuesHasBeenSet; }
96 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
97 void SetPartitionValues(PartitionValuesT&& value) {
98 m_partitionValuesHasBeenSet = true;
99 m_partitionValues = std::forward<PartitionValuesT>(value);
100 }
101 template <typename PartitionValuesT = Aws::Vector<Aws::String>>
102 GetPartitionRequest& WithPartitionValues(PartitionValuesT&& value) {
103 SetPartitionValues(std::forward<PartitionValuesT>(value));
104 return *this;
105 }
106 template <typename PartitionValuesT = Aws::String>
107 GetPartitionRequest& AddPartitionValues(PartitionValuesT&& value) {
108 m_partitionValuesHasBeenSet = true;
109 m_partitionValues.emplace_back(std::forward<PartitionValuesT>(value));
110 return *this;
111 }
113
115
116 inline const AuditContext& GetAuditContext() const { return m_auditContext; }
117 inline bool AuditContextHasBeenSet() const { return m_auditContextHasBeenSet; }
118 template <typename AuditContextT = AuditContext>
119 void SetAuditContext(AuditContextT&& value) {
120 m_auditContextHasBeenSet = true;
121 m_auditContext = std::forward<AuditContextT>(value);
122 }
123 template <typename AuditContextT = AuditContext>
124 GetPartitionRequest& WithAuditContext(AuditContextT&& value) {
125 SetAuditContext(std::forward<AuditContextT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_catalogId;
131
132 Aws::String m_databaseName;
133
134 Aws::String m_tableName;
135
136 Aws::Vector<Aws::String> m_partitionValues;
137
138 AuditContext m_auditContext;
139 bool m_catalogIdHasBeenSet = false;
140 bool m_databaseNameHasBeenSet = false;
141 bool m_tableNameHasBeenSet = false;
142 bool m_partitionValuesHasBeenSet = false;
143 bool m_auditContextHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Glue
148} // 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)
GetPartitionRequest & WithAuditContext(AuditContextT &&value)
const AuditContext & GetAuditContext() const
void SetAuditContext(AuditContextT &&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