AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
CreateTableOptimizerRequest.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/TableOptimizerConfiguration.h>
11#include <aws/glue/model/TableOptimizerType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Glue {
17namespace Model {
18
22 public:
23 AWS_GLUE_API CreateTableOptimizerRequest() = 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 "CreateTableOptimizer"; }
30
31 AWS_GLUE_API Aws::String SerializePayload() const override;
32
34
36
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
57 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
58 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
59 template <typename DatabaseNameT = Aws::String>
60 void SetDatabaseName(DatabaseNameT&& value) {
61 m_databaseNameHasBeenSet = true;
62 m_databaseName = std::forward<DatabaseNameT>(value);
63 }
64 template <typename DatabaseNameT = Aws::String>
66 SetDatabaseName(std::forward<DatabaseNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTableName() const { return m_tableName; }
76 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
77 template <typename TableNameT = Aws::String>
78 void SetTableName(TableNameT&& value) {
79 m_tableNameHasBeenSet = true;
80 m_tableName = std::forward<TableNameT>(value);
81 }
82 template <typename TableNameT = Aws::String>
84 SetTableName(std::forward<TableNameT>(value));
85 return *this;
86 }
88
90
93 inline TableOptimizerType GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(TableOptimizerType value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
100 SetType(value);
101 return *this;
102 }
104
106
110 inline const TableOptimizerConfiguration& GetTableOptimizerConfiguration() const { return m_tableOptimizerConfiguration; }
111 inline bool TableOptimizerConfigurationHasBeenSet() const { return m_tableOptimizerConfigurationHasBeenSet; }
112 template <typename TableOptimizerConfigurationT = TableOptimizerConfiguration>
113 void SetTableOptimizerConfiguration(TableOptimizerConfigurationT&& value) {
114 m_tableOptimizerConfigurationHasBeenSet = true;
115 m_tableOptimizerConfiguration = std::forward<TableOptimizerConfigurationT>(value);
116 }
117 template <typename TableOptimizerConfigurationT = TableOptimizerConfiguration>
118 CreateTableOptimizerRequest& WithTableOptimizerConfiguration(TableOptimizerConfigurationT&& value) {
119 SetTableOptimizerConfiguration(std::forward<TableOptimizerConfigurationT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_catalogId;
125 bool m_catalogIdHasBeenSet = false;
126
127 Aws::String m_databaseName;
128 bool m_databaseNameHasBeenSet = false;
129
130 Aws::String m_tableName;
131 bool m_tableNameHasBeenSet = false;
132
134 bool m_typeHasBeenSet = false;
135
136 TableOptimizerConfiguration m_tableOptimizerConfiguration;
137 bool m_tableOptimizerConfigurationHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Glue
142} // namespace Aws
CreateTableOptimizerRequest & WithTableName(TableNameT &&value)
void SetTableOptimizerConfiguration(TableOptimizerConfigurationT &&value)
CreateTableOptimizerRequest & WithCatalogId(CatalogIdT &&value)
CreateTableOptimizerRequest & WithType(TableOptimizerType value)
const TableOptimizerConfiguration & GetTableOptimizerConfiguration() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTableOptimizerRequest & WithDatabaseName(DatabaseNameT &&value)
AWS_GLUE_API CreateTableOptimizerRequest()=default
AWS_GLUE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateTableOptimizerRequest & WithTableOptimizerConfiguration(TableOptimizerConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String