AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceFleetModifyConfig.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/InstanceFleetResizingSpecifications.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/InstanceTypeConfig.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 EMR
25{
26namespace Model
27{
28
38 {
39 public:
44
45
47
50 inline const Aws::String& GetInstanceFleetId() const{ return m_instanceFleetId; }
51 inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
52 inline void SetInstanceFleetId(const Aws::String& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = value; }
53 inline void SetInstanceFleetId(Aws::String&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::move(value); }
54 inline void SetInstanceFleetId(const char* value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId.assign(value); }
55 inline InstanceFleetModifyConfig& WithInstanceFleetId(const Aws::String& value) { SetInstanceFleetId(value); return *this;}
56 inline InstanceFleetModifyConfig& WithInstanceFleetId(Aws::String&& value) { SetInstanceFleetId(std::move(value)); return *this;}
57 inline InstanceFleetModifyConfig& WithInstanceFleetId(const char* value) { SetInstanceFleetId(value); return *this;}
59
61
65 inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
66 inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
67 inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
70
72
76 inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
77 inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
78 inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
81
83
86 inline const InstanceFleetResizingSpecifications& GetResizeSpecifications() const{ return m_resizeSpecifications; }
87 inline bool ResizeSpecificationsHasBeenSet() const { return m_resizeSpecificationsHasBeenSet; }
88 inline void SetResizeSpecifications(const InstanceFleetResizingSpecifications& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = value; }
89 inline void SetResizeSpecifications(InstanceFleetResizingSpecifications&& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = std::move(value); }
93
95
101 inline const Aws::Vector<InstanceTypeConfig>& GetInstanceTypeConfigs() const{ return m_instanceTypeConfigs; }
102 inline bool InstanceTypeConfigsHasBeenSet() const { return m_instanceTypeConfigsHasBeenSet; }
103 inline void SetInstanceTypeConfigs(const Aws::Vector<InstanceTypeConfig>& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = value; }
104 inline void SetInstanceTypeConfigs(Aws::Vector<InstanceTypeConfig>&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = std::move(value); }
107 inline InstanceFleetModifyConfig& AddInstanceTypeConfigs(const InstanceTypeConfig& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(value); return *this; }
108 inline InstanceFleetModifyConfig& AddInstanceTypeConfigs(InstanceTypeConfig&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.push_back(std::move(value)); return *this; }
110
112
115 inline const Aws::String& GetContext() const{ return m_context; }
116 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
117 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
118 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
119 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
120 inline InstanceFleetModifyConfig& WithContext(const Aws::String& value) { SetContext(value); return *this;}
121 inline InstanceFleetModifyConfig& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
122 inline InstanceFleetModifyConfig& WithContext(const char* value) { SetContext(value); return *this;}
124 private:
125
126 Aws::String m_instanceFleetId;
127 bool m_instanceFleetIdHasBeenSet = false;
128
129 int m_targetOnDemandCapacity;
130 bool m_targetOnDemandCapacityHasBeenSet = false;
131
132 int m_targetSpotCapacity;
133 bool m_targetSpotCapacityHasBeenSet = false;
134
135 InstanceFleetResizingSpecifications m_resizeSpecifications;
136 bool m_resizeSpecificationsHasBeenSet = false;
137
138 Aws::Vector<InstanceTypeConfig> m_instanceTypeConfigs;
139 bool m_instanceTypeConfigsHasBeenSet = false;
140
141 Aws::String m_context;
142 bool m_contextHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EMR
147} // namespace Aws
InstanceFleetModifyConfig & WithResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetModifyConfig & WithContext(Aws::String &&value)
void SetInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
InstanceFleetModifyConfig & AddInstanceTypeConfigs(InstanceTypeConfig &&value)
InstanceFleetModifyConfig & WithInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
InstanceFleetModifyConfig & WithInstanceFleetId(Aws::String &&value)
const Aws::Vector< InstanceTypeConfig > & GetInstanceTypeConfigs() const
InstanceFleetModifyConfig & AddInstanceTypeConfigs(const InstanceTypeConfig &value)
InstanceFleetModifyConfig & WithTargetSpotCapacity(int value)
AWS_EMR_API InstanceFleetModifyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceFleetModifyConfig & WithInstanceFleetId(const Aws::String &value)
void SetInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
InstanceFleetModifyConfig & WithTargetOnDemandCapacity(int value)
void SetResizeSpecifications(InstanceFleetResizingSpecifications &&value)
AWS_EMR_API InstanceFleetModifyConfig(Aws::Utils::Json::JsonView jsonValue)
InstanceFleetModifyConfig & WithInstanceFleetId(const char *value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceFleetModifyConfig & WithInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
void SetResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetModifyConfig & WithContext(const Aws::String &value)
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
InstanceFleetModifyConfig & WithContext(const char *value)
InstanceFleetModifyConfig & WithResizeSpecifications(InstanceFleetResizingSpecifications &&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