AWS SDK for C++  1.9.44
AWS SDK for C++
ScalingAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace EMR
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const MarketType& GetMarket() const{ return m_market; }
47 
52  inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
53 
58  inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
59 
64  inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
65 
70  inline ScalingAction& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
71 
76  inline ScalingAction& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
77 
78 
83  inline const SimpleScalingPolicyConfiguration& GetSimpleScalingPolicyConfiguration() const{ return m_simpleScalingPolicyConfiguration; }
84 
89  inline bool SimpleScalingPolicyConfigurationHasBeenSet() const { return m_simpleScalingPolicyConfigurationHasBeenSet; }
90 
95  inline void SetSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration& value) { m_simpleScalingPolicyConfigurationHasBeenSet = true; m_simpleScalingPolicyConfiguration = value; }
96 
101  inline void SetSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration&& value) { m_simpleScalingPolicyConfigurationHasBeenSet = true; m_simpleScalingPolicyConfiguration = std::move(value); }
102 
107  inline ScalingAction& WithSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration& value) { SetSimpleScalingPolicyConfiguration(value); return *this;}
108 
113  inline ScalingAction& WithSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration&& value) { SetSimpleScalingPolicyConfiguration(std::move(value)); return *this;}
114 
115  private:
116 
117  MarketType m_market;
118  bool m_marketHasBeenSet;
119 
120  SimpleScalingPolicyConfiguration m_simpleScalingPolicyConfiguration;
121  bool m_simpleScalingPolicyConfigurationHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EMR
126 } // namespace Aws
Aws::EMR::Model::ScalingAction::GetMarket
const MarketType & GetMarket() const
Definition: ScalingAction.h:46
Aws::EMR::Model::ScalingAction::SimpleScalingPolicyConfigurationHasBeenSet
bool SimpleScalingPolicyConfigurationHasBeenSet() const
Definition: ScalingAction.h:89
Aws::EMR::Model::ScalingAction
Definition: ScalingAction.h:34
EMR_EXPORTS.h
Aws::EMR::Model::ScalingAction::SetSimpleScalingPolicyConfiguration
void SetSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration &value)
Definition: ScalingAction.h:95
Aws::EMR::Model::ScalingAction::operator=
ScalingAction & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleScalingPolicyConfiguration.h
Aws::EMR::Model::ScalingAction::WithSimpleScalingPolicyConfiguration
ScalingAction & WithSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration &value)
Definition: ScalingAction.h:107
Aws::EMR::Model::ScalingAction::WithSimpleScalingPolicyConfiguration
ScalingAction & WithSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration &&value)
Definition: ScalingAction.h:113
Aws::EMR::Model::ScalingAction::ScalingAction
ScalingAction(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScalingAction::SetMarket
void SetMarket(MarketType &&value)
Definition: ScalingAction.h:64
Aws::EMR::Model::SimpleScalingPolicyConfiguration
Definition: SimpleScalingPolicyConfiguration.h:35
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::ScalingAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ScalingAction::WithMarket
ScalingAction & WithMarket(MarketType &&value)
Definition: ScalingAction.h:76
Aws::EMR::Model::ScalingAction::GetSimpleScalingPolicyConfiguration
const SimpleScalingPolicyConfiguration & GetSimpleScalingPolicyConfiguration() const
Definition: ScalingAction.h:83
Aws::EMR::Model::ScalingAction::ScalingAction
ScalingAction()
Aws::EMR::Model::ScalingAction::MarketHasBeenSet
bool MarketHasBeenSet() const
Definition: ScalingAction.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ScalingAction::SetSimpleScalingPolicyConfiguration
void SetSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration &&value)
Definition: ScalingAction.h:101
Aws::EMR::Model::ScalingAction::WithMarket
ScalingAction & WithMarket(const MarketType &value)
Definition: ScalingAction.h:70
Aws::EMR::Model::ScalingAction::SetMarket
void SetMarket(const MarketType &value)
Definition: ScalingAction.h:58
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
MarketType.h
Aws::EMR::Model::MarketType
MarketType
Definition: MarketType.h:17