AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TableOptimizer.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/ConfigurationSource.h>
9#include <aws/glue/model/TableOptimizerConfiguration.h>
10#include <aws/glue/model/TableOptimizerRun.h>
11#include <aws/glue/model/TableOptimizerType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API TableOptimizer() = default;
37
39
47 inline TableOptimizerType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(TableOptimizerType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
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) {
68 m_configurationHasBeenSet = true;
69 m_configuration = std::forward<ConfigurationT>(value);
70 }
71 template <typename ConfigurationT = TableOptimizerConfiguration>
72 TableOptimizer& WithConfiguration(ConfigurationT&& value) {
73 SetConfiguration(std::forward<ConfigurationT>(value));
74 return *this;
75 }
77
79
83 inline const TableOptimizerRun& GetLastRun() const { return m_lastRun; }
84 inline bool LastRunHasBeenSet() const { return m_lastRunHasBeenSet; }
85 template <typename LastRunT = TableOptimizerRun>
86 void SetLastRun(LastRunT&& value) {
87 m_lastRunHasBeenSet = true;
88 m_lastRun = std::forward<LastRunT>(value);
89 }
90 template <typename LastRunT = TableOptimizerRun>
91 TableOptimizer& WithLastRun(LastRunT&& value) {
92 SetLastRun(std::forward<LastRunT>(value));
93 return *this;
94 }
96
98
103 inline ConfigurationSource GetConfigurationSource() const { return m_configurationSource; }
104 inline bool ConfigurationSourceHasBeenSet() const { return m_configurationSourceHasBeenSet; }
106 m_configurationSourceHasBeenSet = true;
107 m_configurationSource = value;
108 }
111 return *this;
112 }
114 private:
116
117 TableOptimizerConfiguration m_configuration;
118
119 TableOptimizerRun m_lastRun;
120
122 bool m_typeHasBeenSet = false;
123 bool m_configurationHasBeenSet = false;
124 bool m_lastRunHasBeenSet = false;
125 bool m_configurationSourceHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Glue
130} // 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