AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
CreatePartitionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/PartitionInput.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API CreatePartitionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreatePartition"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
40 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
41 template <typename CatalogIdT = Aws::String>
42 void SetCatalogId(CatalogIdT&& value) {
43 m_catalogIdHasBeenSet = true;
44 m_catalogId = std::forward<CatalogIdT>(value);
45 }
46 template <typename CatalogIdT = Aws::String>
48 SetCatalogId(std::forward<CatalogIdT>(value));
49 return *this;
50 }
52
54
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 CreatePartitionRequest& 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>
85 SetTableName(std::forward<TableNameT>(value));
86 return *this;
87 }
89
91
95 inline const PartitionInput& GetPartitionInput() const { return m_partitionInput; }
96 inline bool PartitionInputHasBeenSet() const { return m_partitionInputHasBeenSet; }
97 template <typename PartitionInputT = PartitionInput>
98 void SetPartitionInput(PartitionInputT&& value) {
99 m_partitionInputHasBeenSet = true;
100 m_partitionInput = std::forward<PartitionInputT>(value);
101 }
102 template <typename PartitionInputT = PartitionInput>
103 CreatePartitionRequest& WithPartitionInput(PartitionInputT&& value) {
104 SetPartitionInput(std::forward<PartitionInputT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_catalogId;
110 bool m_catalogIdHasBeenSet = false;
111
112 Aws::String m_databaseName;
113 bool m_databaseNameHasBeenSet = false;
114
115 Aws::String m_tableName;
116 bool m_tableNameHasBeenSet = false;
117
118 PartitionInput m_partitionInput;
119 bool m_partitionInputHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Glue
124} // namespace Aws
virtual const char * GetServiceRequestName() const override
const PartitionInput & GetPartitionInput() const
void SetPartitionInput(PartitionInputT &&value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePartitionRequest & WithPartitionInput(PartitionInputT &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
AWS_GLUE_API CreatePartitionRequest()=default
CreatePartitionRequest & WithTableName(TableNameT &&value)
CreatePartitionRequest & WithCatalogId(CatalogIdT &&value)
CreatePartitionRequest & WithDatabaseName(DatabaseNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String