AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePartitionRequest.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/PartitionInput.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API UpdatePartitionRequest() = 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 "UpdatePartition"; }
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 UpdatePartitionRequest& 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 UpdatePartitionRequest& 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 UpdatePartitionRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
75
77
80 inline const Aws::Vector<Aws::String>& GetPartitionValueList() const { return m_partitionValueList; }
81 inline bool PartitionValueListHasBeenSet() const { return m_partitionValueListHasBeenSet; }
82 template<typename PartitionValueListT = Aws::Vector<Aws::String>>
83 void SetPartitionValueList(PartitionValueListT&& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList = std::forward<PartitionValueListT>(value); }
84 template<typename PartitionValueListT = Aws::Vector<Aws::String>>
85 UpdatePartitionRequest& WithPartitionValueList(PartitionValueListT&& value) { SetPartitionValueList(std::forward<PartitionValueListT>(value)); return *this;}
86 template<typename PartitionValueListT = Aws::String>
87 UpdatePartitionRequest& AddPartitionValueList(PartitionValueListT&& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList.emplace_back(std::forward<PartitionValueListT>(value)); return *this; }
89
91
96 inline const PartitionInput& GetPartitionInput() const { return m_partitionInput; }
97 inline bool PartitionInputHasBeenSet() const { return m_partitionInputHasBeenSet; }
98 template<typename PartitionInputT = PartitionInput>
99 void SetPartitionInput(PartitionInputT&& value) { m_partitionInputHasBeenSet = true; m_partitionInput = std::forward<PartitionInputT>(value); }
100 template<typename PartitionInputT = PartitionInput>
101 UpdatePartitionRequest& WithPartitionInput(PartitionInputT&& value) { SetPartitionInput(std::forward<PartitionInputT>(value)); return *this;}
103 private:
104
105 Aws::String m_catalogId;
106 bool m_catalogIdHasBeenSet = false;
107
108 Aws::String m_databaseName;
109 bool m_databaseNameHasBeenSet = false;
110
111 Aws::String m_tableName;
112 bool m_tableNameHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_partitionValueList;
115 bool m_partitionValueListHasBeenSet = false;
116
117 PartitionInput m_partitionInput;
118 bool m_partitionInputHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Glue
123} // namespace Aws
void SetPartitionValueList(PartitionValueListT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
UpdatePartitionRequest & WithTableName(TableNameT &&value)
UpdatePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
UpdatePartitionRequest & WithPartitionInput(PartitionInputT &&value)
const Aws::Vector< Aws::String > & GetPartitionValueList() const
virtual const char * GetServiceRequestName() const override
UpdatePartitionRequest & WithPartitionValueList(PartitionValueListT &&value)
UpdatePartitionRequest & AddPartitionValueList(PartitionValueListT &&value)
const PartitionInput & GetPartitionInput() const
AWS_GLUE_API UpdatePartitionRequest()=default
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePartitionRequest & WithCatalogId(CatalogIdT &&value)
void SetPartitionInput(PartitionInputT &&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