AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
40 AWS_EMR_API InstanceFleetModifyConfig() = default;
44
45
47
50 inline const Aws::String& GetInstanceFleetId() const { return m_instanceFleetId; }
51 inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
52 template<typename InstanceFleetIdT = Aws::String>
53 void SetInstanceFleetId(InstanceFleetIdT&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::forward<InstanceFleetIdT>(value); }
54 template<typename InstanceFleetIdT = Aws::String>
55 InstanceFleetModifyConfig& WithInstanceFleetId(InstanceFleetIdT&& value) { SetInstanceFleetId(std::forward<InstanceFleetIdT>(value)); return *this;}
57
59
63 inline int GetTargetOnDemandCapacity() const { return m_targetOnDemandCapacity; }
64 inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
65 inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
68
70
74 inline int GetTargetSpotCapacity() const { return m_targetSpotCapacity; }
75 inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
76 inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
79
81
84 inline const InstanceFleetResizingSpecifications& GetResizeSpecifications() const { return m_resizeSpecifications; }
85 inline bool ResizeSpecificationsHasBeenSet() const { return m_resizeSpecificationsHasBeenSet; }
86 template<typename ResizeSpecificationsT = InstanceFleetResizingSpecifications>
87 void SetResizeSpecifications(ResizeSpecificationsT&& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = std::forward<ResizeSpecificationsT>(value); }
88 template<typename ResizeSpecificationsT = InstanceFleetResizingSpecifications>
89 InstanceFleetModifyConfig& WithResizeSpecifications(ResizeSpecificationsT&& value) { SetResizeSpecifications(std::forward<ResizeSpecificationsT>(value)); return *this;}
91
93
99 inline const Aws::Vector<InstanceTypeConfig>& GetInstanceTypeConfigs() const { return m_instanceTypeConfigs; }
100 inline bool InstanceTypeConfigsHasBeenSet() const { return m_instanceTypeConfigsHasBeenSet; }
101 template<typename InstanceTypeConfigsT = Aws::Vector<InstanceTypeConfig>>
102 void SetInstanceTypeConfigs(InstanceTypeConfigsT&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs = std::forward<InstanceTypeConfigsT>(value); }
103 template<typename InstanceTypeConfigsT = Aws::Vector<InstanceTypeConfig>>
104 InstanceFleetModifyConfig& WithInstanceTypeConfigs(InstanceTypeConfigsT&& value) { SetInstanceTypeConfigs(std::forward<InstanceTypeConfigsT>(value)); return *this;}
105 template<typename InstanceTypeConfigsT = InstanceTypeConfig>
106 InstanceFleetModifyConfig& AddInstanceTypeConfigs(InstanceTypeConfigsT&& value) { m_instanceTypeConfigsHasBeenSet = true; m_instanceTypeConfigs.emplace_back(std::forward<InstanceTypeConfigsT>(value)); return *this; }
108
110
113 inline const Aws::String& GetContext() const { return m_context; }
114 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
115 template<typename ContextT = Aws::String>
116 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
117 template<typename ContextT = Aws::String>
118 InstanceFleetModifyConfig& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
120 private:
121
122 Aws::String m_instanceFleetId;
123 bool m_instanceFleetIdHasBeenSet = false;
124
125 int m_targetOnDemandCapacity{0};
126 bool m_targetOnDemandCapacityHasBeenSet = false;
127
128 int m_targetSpotCapacity{0};
129 bool m_targetSpotCapacityHasBeenSet = false;
130
131 InstanceFleetResizingSpecifications m_resizeSpecifications;
132 bool m_resizeSpecificationsHasBeenSet = false;
133
134 Aws::Vector<InstanceTypeConfig> m_instanceTypeConfigs;
135 bool m_instanceTypeConfigsHasBeenSet = false;
136
137 Aws::String m_context;
138 bool m_contextHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EMR
143} // namespace Aws
void SetInstanceTypeConfigs(InstanceTypeConfigsT &&value)
InstanceFleetModifyConfig & WithContext(ContextT &&value)
void SetResizeSpecifications(ResizeSpecificationsT &&value)
InstanceFleetModifyConfig & WithInstanceTypeConfigs(InstanceTypeConfigsT &&value)
AWS_EMR_API InstanceFleetModifyConfig()=default
InstanceFleetModifyConfig & WithInstanceFleetId(InstanceFleetIdT &&value)
const Aws::Vector< InstanceTypeConfig > & GetInstanceTypeConfigs() const
InstanceFleetModifyConfig & WithTargetSpotCapacity(int value)
AWS_EMR_API InstanceFleetModifyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceFleetModifyConfig & WithResizeSpecifications(ResizeSpecificationsT &&value)
InstanceFleetModifyConfig & WithTargetOnDemandCapacity(int value)
AWS_EMR_API InstanceFleetModifyConfig(Aws::Utils::Json::JsonView jsonValue)
InstanceFleetModifyConfig & AddInstanceTypeConfigs(InstanceTypeConfigsT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue