AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTableOptimizerRequest.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/glue/model/TableOptimizerType.h>
11#include <aws/glue/model/TableOptimizerConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Glue
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GLUE_API CreateTableOptimizerRequest() = 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 "CreateTableOptimizer"; }
33
34 AWS_GLUE_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetCatalogId() const { return m_catalogId; }
44 inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; }
45 template<typename CatalogIdT = Aws::String>
46 void SetCatalogId(CatalogIdT&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::forward<CatalogIdT>(value); }
47 template<typename CatalogIdT = Aws::String>
48 CreateTableOptimizerRequest& WithCatalogId(CatalogIdT&& value) { SetCatalogId(std::forward<CatalogIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
56 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
57 template<typename DatabaseNameT = Aws::String>
58 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
59 template<typename DatabaseNameT = Aws::String>
60 CreateTableOptimizerRequest& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetTableName() const { return m_tableName; }
68 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
69 template<typename TableNameT = Aws::String>
70 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet = true; m_tableName = std::forward<TableNameT>(value); }
71 template<typename TableNameT = Aws::String>
72 CreateTableOptimizerRequest& WithTableName(TableNameT&& value) { SetTableName(std::forward<TableNameT>(value)); return *this;}
74
76
79 inline TableOptimizerType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(TableOptimizerType value) { m_typeHasBeenSet = true; m_type = value; }
82 inline CreateTableOptimizerRequest& WithType(TableOptimizerType value) { SetType(value); return *this;}
84
86
90 inline const TableOptimizerConfiguration& GetTableOptimizerConfiguration() const { return m_tableOptimizerConfiguration; }
91 inline bool TableOptimizerConfigurationHasBeenSet() const { return m_tableOptimizerConfigurationHasBeenSet; }
92 template<typename TableOptimizerConfigurationT = TableOptimizerConfiguration>
93 void SetTableOptimizerConfiguration(TableOptimizerConfigurationT&& value) { m_tableOptimizerConfigurationHasBeenSet = true; m_tableOptimizerConfiguration = std::forward<TableOptimizerConfigurationT>(value); }
94 template<typename TableOptimizerConfigurationT = TableOptimizerConfiguration>
95 CreateTableOptimizerRequest& WithTableOptimizerConfiguration(TableOptimizerConfigurationT&& value) { SetTableOptimizerConfiguration(std::forward<TableOptimizerConfigurationT>(value)); return *this;}
97 private:
98
99 Aws::String m_catalogId;
100 bool m_catalogIdHasBeenSet = false;
101
102 Aws::String m_databaseName;
103 bool m_databaseNameHasBeenSet = false;
104
105 Aws::String m_tableName;
106 bool m_tableNameHasBeenSet = false;
107
109 bool m_typeHasBeenSet = false;
110
111 TableOptimizerConfiguration m_tableOptimizerConfiguration;
112 bool m_tableOptimizerConfigurationHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Glue
117} // 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