AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceFleetConfig.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/InstanceFleetType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/InstanceFleetProvisioningSpecifications.h>
12#include <aws/elasticmapreduce/model/InstanceFleetResizingSpecifications.h>
13#include <aws/elasticmapreduce/model/InstanceTypeConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace EMR
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_EMR_API InstanceFleetConfig();
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline InstanceFleetConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline InstanceFleetConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline InstanceFleetConfig& WithName(const char* value) { SetName(value); return *this;}
60
62
66 inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
67 inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
68 inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
69 inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
71 inline InstanceFleetConfig& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
73
75
94 inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
95 inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
96 inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
99
101
119 inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
120 inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
121 inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
122 inline InstanceFleetConfig& WithTargetSpotCapacity(int value) { SetTargetSpotCapacity(value); return *this;}
124
126
130 inline const Aws::Vector<InstanceTypeConfig>& GetInstanceTypeConfigs() const{ return m_instanceTypeConfigs; }
131 inline bool InstanceTypeConfigsHasBeenSet() const { return m_instanceTypeConfigsHasBeenSet; }
132 inline void SetInstanceTypeConfigs(const Aws::Vector<InstanceTypeConfig>& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = value; }
133 inline void SetInstanceTypeConfigs(Aws::Vector<InstanceTypeConfig>&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = std::move(value); }
136 inline InstanceFleetConfig& AddInstanceTypeConfigs(const InstanceTypeConfig& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(value); return *this; }
137 inline InstanceFleetConfig& AddInstanceTypeConfigs(InstanceTypeConfig&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(std::move(value)); return *this; }
139
141
144 inline const InstanceFleetProvisioningSpecifications& GetLaunchSpecifications() const{ return m_launchSpecifications; }
145 inline bool LaunchSpecificationsHasBeenSet() const { return m_launchSpecificationsHasBeenSet; }
146 inline void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = value; }
147 inline void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = std::move(value); }
151
153
156 inline const InstanceFleetResizingSpecifications& GetResizeSpecifications() const{ return m_resizeSpecifications; }
157 inline bool ResizeSpecificationsHasBeenSet() const { return m_resizeSpecificationsHasBeenSet; }
158 inline void SetResizeSpecifications(const InstanceFleetResizingSpecifications& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = value; }
159 inline void SetResizeSpecifications(InstanceFleetResizingSpecifications&& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = std::move(value); }
163
165
168 inline const Aws::String& GetContext() const{ return m_context; }
169 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
170 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
171 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
172 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
173 inline InstanceFleetConfig& WithContext(const Aws::String& value) { SetContext(value); return *this;}
174 inline InstanceFleetConfig& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
175 inline InstanceFleetConfig& WithContext(const char* value) { SetContext(value); return *this;}
177 private:
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 InstanceFleetType m_instanceFleetType;
183 bool m_instanceFleetTypeHasBeenSet = false;
184
185 int m_targetOnDemandCapacity;
186 bool m_targetOnDemandCapacityHasBeenSet = false;
187
188 int m_targetSpotCapacity;
189 bool m_targetSpotCapacityHasBeenSet = false;
190
191 Aws::Vector<InstanceTypeConfig> m_instanceTypeConfigs;
192 bool m_instanceTypeConfigsHasBeenSet = false;
193
194 InstanceFleetProvisioningSpecifications m_launchSpecifications;
195 bool m_launchSpecificationsHasBeenSet = false;
196
197 InstanceFleetResizingSpecifications m_resizeSpecifications;
198 bool m_resizeSpecificationsHasBeenSet = false;
199
200 Aws::String m_context;
201 bool m_contextHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace EMR
206} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceFleetConfig & WithTargetOnDemandCapacity(int value)
InstanceFleetConfig & WithInstanceFleetType(const InstanceFleetType &value)
void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
const Aws::String & GetContext() const
void SetResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetConfig & WithTargetSpotCapacity(int value)
InstanceFleetConfig & WithContext(const Aws::String &value)
InstanceFleetConfig & WithName(const char *value)
const InstanceFleetType & GetInstanceFleetType() const
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
void SetInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
const Aws::Vector< InstanceTypeConfig > & GetInstanceTypeConfigs() const
InstanceFleetConfig & WithResizeSpecifications(InstanceFleetResizingSpecifications &&value)
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
InstanceFleetConfig & AddInstanceTypeConfigs(const InstanceTypeConfig &value)
InstanceFleetConfig & WithInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
void SetInstanceFleetType(InstanceFleetType &&value)
void SetName(const Aws::String &value)
InstanceFleetConfig & AddInstanceTypeConfigs(InstanceTypeConfig &&value)
InstanceFleetConfig & WithContext(Aws::String &&value)
void SetInstanceFleetType(const InstanceFleetType &value)
InstanceFleetConfig & WithContext(const char *value)
InstanceFleetConfig & WithName(Aws::String &&value)
AWS_EMR_API InstanceFleetConfig(Aws::Utils::Json::JsonView jsonValue)
void SetContext(const Aws::String &value)
AWS_EMR_API InstanceFleetConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
InstanceFleetConfig & WithResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetConfig & WithInstanceFleetType(InstanceFleetType &&value)
void SetResizeSpecifications(InstanceFleetResizingSpecifications &&value)
InstanceFleetConfig & WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
InstanceFleetConfig & WithName(const Aws::String &value)
InstanceFleetConfig & WithInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
InstanceFleetConfig & WithLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
const Aws::String & GetName() const
void SetInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue