AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EngineConfiguration.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Athena
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ATHENA_API EngineConfiguration();
39 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline int GetCoordinatorDpuSize() const{ return m_coordinatorDpuSize; }
49 inline bool CoordinatorDpuSizeHasBeenSet() const { return m_coordinatorDpuSizeHasBeenSet; }
50 inline void SetCoordinatorDpuSize(int value) { m_coordinatorDpuSizeHasBeenSet = true; m_coordinatorDpuSize = value; }
51 inline EngineConfiguration& WithCoordinatorDpuSize(int value) { SetCoordinatorDpuSize(value); return *this;}
53
55
58 inline int GetMaxConcurrentDpus() const{ return m_maxConcurrentDpus; }
59 inline bool MaxConcurrentDpusHasBeenSet() const { return m_maxConcurrentDpusHasBeenSet; }
60 inline void SetMaxConcurrentDpus(int value) { m_maxConcurrentDpusHasBeenSet = true; m_maxConcurrentDpus = value; }
61 inline EngineConfiguration& WithMaxConcurrentDpus(int value) { SetMaxConcurrentDpus(value); return *this;}
63
65
70 inline int GetDefaultExecutorDpuSize() const{ return m_defaultExecutorDpuSize; }
71 inline bool DefaultExecutorDpuSizeHasBeenSet() const { return m_defaultExecutorDpuSizeHasBeenSet; }
72 inline void SetDefaultExecutorDpuSize(int value) { m_defaultExecutorDpuSizeHasBeenSet = true; m_defaultExecutorDpuSize = value; }
75
77
85 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalConfigs() const{ return m_additionalConfigs; }
86 inline bool AdditionalConfigsHasBeenSet() const { return m_additionalConfigsHasBeenSet; }
87 inline void SetAdditionalConfigs(const Aws::Map<Aws::String, Aws::String>& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs = value; }
88 inline void SetAdditionalConfigs(Aws::Map<Aws::String, Aws::String>&& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs = std::move(value); }
91 inline EngineConfiguration& AddAdditionalConfigs(const Aws::String& key, const Aws::String& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(key, value); return *this; }
92 inline EngineConfiguration& AddAdditionalConfigs(Aws::String&& key, const Aws::String& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(std::move(key), value); return *this; }
93 inline EngineConfiguration& AddAdditionalConfigs(const Aws::String& key, Aws::String&& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(key, std::move(value)); return *this; }
94 inline EngineConfiguration& AddAdditionalConfigs(Aws::String&& key, Aws::String&& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(std::move(key), std::move(value)); return *this; }
95 inline EngineConfiguration& AddAdditionalConfigs(const char* key, Aws::String&& value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(key, std::move(value)); return *this; }
96 inline EngineConfiguration& AddAdditionalConfigs(Aws::String&& key, const char* value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(std::move(key), value); return *this; }
97 inline EngineConfiguration& AddAdditionalConfigs(const char* key, const char* value) { m_additionalConfigsHasBeenSet = true; m_additionalConfigs.emplace(key, value); return *this; }
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetSparkProperties() const{ return m_sparkProperties; }
106 inline bool SparkPropertiesHasBeenSet() const { return m_sparkPropertiesHasBeenSet; }
107 inline void SetSparkProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties = value; }
108 inline void SetSparkProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties = std::move(value); }
111 inline EngineConfiguration& AddSparkProperties(const Aws::String& key, const Aws::String& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(key, value); return *this; }
112 inline EngineConfiguration& AddSparkProperties(Aws::String&& key, const Aws::String& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(std::move(key), value); return *this; }
113 inline EngineConfiguration& AddSparkProperties(const Aws::String& key, Aws::String&& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(key, std::move(value)); return *this; }
114 inline EngineConfiguration& AddSparkProperties(Aws::String&& key, Aws::String&& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(std::move(key), std::move(value)); return *this; }
115 inline EngineConfiguration& AddSparkProperties(const char* key, Aws::String&& value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(key, std::move(value)); return *this; }
116 inline EngineConfiguration& AddSparkProperties(Aws::String&& key, const char* value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(std::move(key), value); return *this; }
117 inline EngineConfiguration& AddSparkProperties(const char* key, const char* value) { m_sparkPropertiesHasBeenSet = true; m_sparkProperties.emplace(key, value); return *this; }
119 private:
120
121 int m_coordinatorDpuSize;
122 bool m_coordinatorDpuSizeHasBeenSet = false;
123
124 int m_maxConcurrentDpus;
125 bool m_maxConcurrentDpusHasBeenSet = false;
126
127 int m_defaultExecutorDpuSize;
128 bool m_defaultExecutorDpuSizeHasBeenSet = false;
129
130 Aws::Map<Aws::String, Aws::String> m_additionalConfigs;
131 bool m_additionalConfigsHasBeenSet = false;
132
133 Aws::Map<Aws::String, Aws::String> m_sparkProperties;
134 bool m_sparkPropertiesHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Athena
139} // namespace Aws
EngineConfiguration & WithAdditionalConfigs(Aws::Map< Aws::String, Aws::String > &&value)
EngineConfiguration & WithMaxConcurrentDpus(int value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalConfigs() const
void SetSparkProperties(const Aws::Map< Aws::String, Aws::String > &value)
EngineConfiguration & AddSparkProperties(Aws::String &&key, const char *value)
EngineConfiguration & AddAdditionalConfigs(Aws::String &&key, Aws::String &&value)
EngineConfiguration & AddSparkProperties(const char *key, const char *value)
EngineConfiguration & AddAdditionalConfigs(const Aws::String &key, Aws::String &&value)
AWS_ATHENA_API EngineConfiguration(Aws::Utils::Json::JsonView jsonValue)
EngineConfiguration & WithDefaultExecutorDpuSize(int value)
EngineConfiguration & AddAdditionalConfigs(const Aws::String &key, const Aws::String &value)
EngineConfiguration & AddSparkProperties(Aws::String &&key, const Aws::String &value)
EngineConfiguration & AddSparkProperties(const char *key, Aws::String &&value)
EngineConfiguration & WithCoordinatorDpuSize(int value)
EngineConfiguration & AddAdditionalConfigs(Aws::String &&key, const Aws::String &value)
AWS_ATHENA_API EngineConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
EngineConfiguration & WithAdditionalConfigs(const Aws::Map< Aws::String, Aws::String > &value)
void SetSparkProperties(Aws::Map< Aws::String, Aws::String > &&value)
void SetAdditionalConfigs(Aws::Map< Aws::String, Aws::String > &&value)
EngineConfiguration & WithSparkProperties(Aws::Map< Aws::String, Aws::String > &&value)
EngineConfiguration & AddAdditionalConfigs(const char *key, Aws::String &&value)
EngineConfiguration & AddAdditionalConfigs(Aws::String &&key, const char *value)
EngineConfiguration & AddAdditionalConfigs(const char *key, const char *value)
EngineConfiguration & AddSparkProperties(const Aws::String &key, Aws::String &&value)
void SetAdditionalConfigs(const Aws::Map< Aws::String, Aws::String > &value)
EngineConfiguration & AddSparkProperties(const Aws::String &key, const Aws::String &value)
EngineConfiguration & AddSparkProperties(Aws::String &&key, Aws::String &&value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetSparkProperties() const
EngineConfiguration & WithSparkProperties(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue