AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 UpdatePartitionRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;}
50 inline UpdatePartitionRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;}
51 inline UpdatePartitionRequest& 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 UpdatePartitionRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
64 inline UpdatePartitionRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
65 inline UpdatePartitionRequest& 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 UpdatePartitionRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
78 inline UpdatePartitionRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
79 inline UpdatePartitionRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetPartitionValueList() const{ return m_partitionValueList; }
87 inline bool PartitionValueListHasBeenSet() const { return m_partitionValueListHasBeenSet; }
88 inline void SetPartitionValueList(const Aws::Vector<Aws::String>& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList = value; }
89 inline void SetPartitionValueList(Aws::Vector<Aws::String>&& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList = std::move(value); }
92 inline UpdatePartitionRequest& AddPartitionValueList(const Aws::String& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList.push_back(value); return *this; }
93 inline UpdatePartitionRequest& AddPartitionValueList(Aws::String&& value) { m_partitionValueListHasBeenSet = true; m_partitionValueList.push_back(std::move(value)); return *this; }
94 inline UpdatePartitionRequest& AddPartitionValueList(const char* value) { m_partitionValueListHasBeenSet = true; m_partitionValueList.push_back(value); return *this; }
96
98
103 inline const PartitionInput& GetPartitionInput() const{ return m_partitionInput; }
104 inline bool PartitionInputHasBeenSet() const { return m_partitionInputHasBeenSet; }
105 inline void SetPartitionInput(const PartitionInput& value) { m_partitionInputHasBeenSet = true; m_partitionInput = value; }
106 inline void SetPartitionInput(PartitionInput&& value) { m_partitionInputHasBeenSet = true; m_partitionInput = std::move(value); }
107 inline UpdatePartitionRequest& WithPartitionInput(const PartitionInput& value) { SetPartitionInput(value); return *this;}
108 inline UpdatePartitionRequest& WithPartitionInput(PartitionInput&& value) { SetPartitionInput(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_catalogId;
113 bool m_catalogIdHasBeenSet = false;
114
115 Aws::String m_databaseName;
116 bool m_databaseNameHasBeenSet = false;
117
118 Aws::String m_tableName;
119 bool m_tableNameHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_partitionValueList;
122 bool m_partitionValueListHasBeenSet = false;
123
124 PartitionInput m_partitionInput;
125 bool m_partitionInputHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Glue
130} // namespace Aws
void SetPartitionInput(const PartitionInput &value)
UpdatePartitionRequest & WithTableName(Aws::String &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
UpdatePartitionRequest & WithPartitionValueList(Aws::Vector< Aws::String > &&value)
UpdatePartitionRequest & WithDatabaseName(Aws::String &&value)
UpdatePartitionRequest & WithCatalogId(const char *value)
UpdatePartitionRequest & WithPartitionInput(const PartitionInput &value)
UpdatePartitionRequest & WithPartitionValueList(const Aws::Vector< Aws::String > &value)
UpdatePartitionRequest & WithTableName(const char *value)
void SetCatalogId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPartitionValueList() const
UpdatePartitionRequest & AddPartitionValueList(const Aws::String &value)
UpdatePartitionRequest & WithCatalogId(Aws::String &&value)
UpdatePartitionRequest & AddPartitionValueList(const char *value)
UpdatePartitionRequest & WithDatabaseName(const char *value)
UpdatePartitionRequest & WithPartitionInput(PartitionInput &&value)
virtual const char * GetServiceRequestName() const override
void SetTableName(const Aws::String &value)
UpdatePartitionRequest & WithTableName(const Aws::String &value)
UpdatePartitionRequest & AddPartitionValueList(Aws::String &&value)
void SetPartitionValueList(const Aws::Vector< Aws::String > &value)
const PartitionInput & GetPartitionInput() const
UpdatePartitionRequest & WithDatabaseName(const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdatePartitionRequest & WithCatalogId(const Aws::String &value)
void SetPartitionValueList(Aws::Vector< Aws::String > &&value)
void SetDatabaseName(const Aws::String &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