AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingAction.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/MarketType.h>
9#include <aws/elasticmapreduce/model/SimpleScalingPolicyConfiguration.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EMR_API ScalingAction();
40
41
43
47 inline const MarketType& GetMarket() const{ return m_market; }
48 inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
49 inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; }
50 inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); }
51 inline ScalingAction& WithMarket(const MarketType& value) { SetMarket(value); return *this;}
52 inline ScalingAction& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;}
54
56
60 inline const SimpleScalingPolicyConfiguration& GetSimpleScalingPolicyConfiguration() const{ return m_simpleScalingPolicyConfiguration; }
61 inline bool SimpleScalingPolicyConfigurationHasBeenSet() const { return m_simpleScalingPolicyConfigurationHasBeenSet; }
62 inline void SetSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration& value) { m_simpleScalingPolicyConfigurationHasBeenSet = true; m_simpleScalingPolicyConfiguration = value; }
63 inline void SetSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration&& value) { m_simpleScalingPolicyConfigurationHasBeenSet = true; m_simpleScalingPolicyConfiguration = std::move(value); }
67 private:
68
69 MarketType m_market;
70 bool m_marketHasBeenSet = false;
71
72 SimpleScalingPolicyConfiguration m_simpleScalingPolicyConfiguration;
73 bool m_simpleScalingPolicyConfigurationHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EMR
78} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration &&value)
ScalingAction & WithSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration &value)
ScalingAction & WithMarket(const MarketType &value)
void SetMarket(const MarketType &value)
void SetMarket(MarketType &&value)
bool SimpleScalingPolicyConfigurationHasBeenSet() const
const MarketType & GetMarket() const
AWS_EMR_API ScalingAction(Aws::Utils::Json::JsonView jsonValue)
const SimpleScalingPolicyConfiguration & GetSimpleScalingPolicyConfiguration() const
void SetSimpleScalingPolicyConfiguration(const SimpleScalingPolicyConfiguration &value)
ScalingAction & WithSimpleScalingPolicyConfiguration(SimpleScalingPolicyConfiguration &&value)
ScalingAction & WithMarket(MarketType &&value)
AWS_EMR_API ScalingAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue