AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
TableOptimizer.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/TableOptimizerType.h>
9#include <aws/glue/model/TableOptimizerConfiguration.h>
10#include <aws/glue/model/TableOptimizerRun.h>
11#include <aws/glue/model/ConfigurationSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API TableOptimizer() = default;
42
43
45
53 inline TableOptimizerType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(TableOptimizerType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline TableOptimizer& WithType(TableOptimizerType value) { SetType(value); return *this;}
58
60
64 inline const TableOptimizerConfiguration& GetConfiguration() const { return m_configuration; }
65 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
66 template<typename ConfigurationT = TableOptimizerConfiguration>
67 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
68 template<typename ConfigurationT = TableOptimizerConfiguration>
69 TableOptimizer& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
71
73
77 inline const TableOptimizerRun& GetLastRun() const { return m_lastRun; }
78 inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
79 template<typename LastRunT = TableOptimizerRun>
80 void SetLastRun(LastRunT&& value) { m_lastRunHasBeenSet = true; m_lastRun = std::forward<LastRunT>(value); }
81 template<typename LastRunT = TableOptimizerRun>
82 TableOptimizer& WithLastRun(LastRunT&& value) { SetLastRun(std::forward<LastRunT>(value)); return *this;}
84
86
91 inline ConfigurationSource GetConfigurationSource() const { return m_configurationSource; }
92 inline bool ConfigurationSourceHasBeenSet() const { return m_configurationSourceHasBeenSet; }
93 inline void SetConfigurationSource(ConfigurationSource value) { m_configurationSourceHasBeenSet = true; m_configurationSource = value; }
96 private:
97
99 bool m_typeHasBeenSet = false;
100
101 TableOptimizerConfiguration m_configuration;
102 bool m_configurationHasBeenSet = false;
103
104 TableOptimizerRun m_lastRun;
105 bool m_lastRunHasBeenSet = false;
106
108 bool m_configurationSourceHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Glue
113} // namespace Aws
AWS_GLUE_API TableOptimizer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
TableOptimizer & WithLastRun(LastRunT &&value)
const TableOptimizerRun & GetLastRun() const
void SetConfiguration(ConfigurationT &&value)
void SetType(TableOptimizerType value)
void SetLastRun(LastRunT &&value)
TableOptimizer & WithConfigurationSource(ConfigurationSource value)
AWS_GLUE_API TableOptimizer(Aws::Utils::Json::JsonView jsonValue)
const TableOptimizerConfiguration & GetConfiguration() const
AWS_GLUE_API TableOptimizer()=default
TableOptimizer & WithConfiguration(ConfigurationT &&value)
TableOptimizerType GetType() const
TableOptimizer & WithType(TableOptimizerType value)
void SetConfigurationSource(ConfigurationSource value)
ConfigurationSource GetConfigurationSource() const
Aws::Utils::Json::JsonValue JsonValue