AWS SDK for C++  1.9.45
AWS SDK for C++
InstanceFleetModifyConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace EMR
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetInstanceFleetId() const{ return m_instanceFleetId; }
47 
51  inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
52 
56  inline void SetInstanceFleetId(const Aws::String& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = value; }
57 
61  inline void SetInstanceFleetId(Aws::String&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::move(value); }
62 
66  inline void SetInstanceFleetId(const char* value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId.assign(value); }
67 
71  inline InstanceFleetModifyConfig& WithInstanceFleetId(const Aws::String& value) { SetInstanceFleetId(value); return *this;}
72 
76  inline InstanceFleetModifyConfig& WithInstanceFleetId(Aws::String&& value) { SetInstanceFleetId(std::move(value)); return *this;}
77 
81  inline InstanceFleetModifyConfig& WithInstanceFleetId(const char* value) { SetInstanceFleetId(value); return *this;}
82 
83 
88  inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
89 
94  inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
95 
100  inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
101 
106  inline InstanceFleetModifyConfig& WithTargetOnDemandCapacity(int value) { SetTargetOnDemandCapacity(value); return *this;}
107 
108 
113  inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
114 
119  inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
120 
125  inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
126 
131  inline InstanceFleetModifyConfig& WithTargetSpotCapacity(int value) { SetTargetSpotCapacity(value); return *this;}
132 
133  private:
134 
135  Aws::String m_instanceFleetId;
136  bool m_instanceFleetIdHasBeenSet;
137 
138  int m_targetOnDemandCapacity;
139  bool m_targetOnDemandCapacityHasBeenSet;
140 
141  int m_targetSpotCapacity;
142  bool m_targetSpotCapacityHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace EMR
147 } // namespace Aws
Aws::EMR::Model::InstanceFleetModifyConfig::WithTargetOnDemandCapacity
InstanceFleetModifyConfig & WithTargetOnDemandCapacity(int value)
Definition: InstanceFleetModifyConfig.h:106
Aws::EMR::Model::InstanceFleetModifyConfig::InstanceFleetModifyConfig
InstanceFleetModifyConfig(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleetModifyConfig::SetTargetSpotCapacity
void SetTargetSpotCapacity(int value)
Definition: InstanceFleetModifyConfig.h:125
Aws::EMR::Model::InstanceFleetModifyConfig::WithTargetSpotCapacity
InstanceFleetModifyConfig & WithTargetSpotCapacity(int value)
Definition: InstanceFleetModifyConfig.h:131
Aws::EMR::Model::InstanceFleetModifyConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceFleetModifyConfig::InstanceFleetIdHasBeenSet
bool InstanceFleetIdHasBeenSet() const
Definition: InstanceFleetModifyConfig.h:51
Aws::EMR::Model::InstanceFleetModifyConfig::SetInstanceFleetId
void SetInstanceFleetId(const char *value)
Definition: InstanceFleetModifyConfig.h:66
Aws::EMR::Model::InstanceFleetModifyConfig::WithInstanceFleetId
InstanceFleetModifyConfig & WithInstanceFleetId(const Aws::String &value)
Definition: InstanceFleetModifyConfig.h:71
Aws::EMR::Model::InstanceFleetModifyConfig::TargetSpotCapacityHasBeenSet
bool TargetSpotCapacityHasBeenSet() const
Definition: InstanceFleetModifyConfig.h:119
Aws::EMR::Model::InstanceFleetModifyConfig::GetInstanceFleetId
const Aws::String & GetInstanceFleetId() const
Definition: InstanceFleetModifyConfig.h:46
Aws::EMR::Model::InstanceFleetModifyConfig::TargetOnDemandCapacityHasBeenSet
bool TargetOnDemandCapacityHasBeenSet() const
Definition: InstanceFleetModifyConfig.h:94
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceFleetModifyConfig::GetTargetSpotCapacity
int GetTargetSpotCapacity() const
Definition: InstanceFleetModifyConfig.h:113
Aws::EMR::Model::InstanceFleetModifyConfig
Definition: InstanceFleetModifyConfig.h:35
Aws::EMR::Model::InstanceFleetModifyConfig::SetInstanceFleetId
void SetInstanceFleetId(const Aws::String &value)
Definition: InstanceFleetModifyConfig.h:56
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceFleetModifyConfig::InstanceFleetModifyConfig
InstanceFleetModifyConfig()
Aws::EMR::Model::InstanceFleetModifyConfig::operator=
InstanceFleetModifyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleetModifyConfig::SetTargetOnDemandCapacity
void SetTargetOnDemandCapacity(int value)
Definition: InstanceFleetModifyConfig.h:100
Aws::EMR::Model::InstanceFleetModifyConfig::WithInstanceFleetId
InstanceFleetModifyConfig & WithInstanceFleetId(Aws::String &&value)
Definition: InstanceFleetModifyConfig.h:76
Aws::EMR::Model::InstanceFleetModifyConfig::SetInstanceFleetId
void SetInstanceFleetId(Aws::String &&value)
Definition: InstanceFleetModifyConfig.h:61
Aws::EMR::Model::InstanceFleetModifyConfig::WithInstanceFleetId
InstanceFleetModifyConfig & WithInstanceFleetId(const char *value)
Definition: InstanceFleetModifyConfig.h:81
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceFleetModifyConfig::GetTargetOnDemandCapacity
int GetTargetOnDemandCapacity() const
Definition: InstanceFleetModifyConfig.h:88