AWS SDK for C++  1.8.126
AWS SDK for C++
ShrinkPolicy.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 
34  {
35  public:
40 
41 
46  inline int GetDecommissionTimeout() const{ return m_decommissionTimeout; }
47 
52  inline bool DecommissionTimeoutHasBeenSet() const { return m_decommissionTimeoutHasBeenSet; }
53 
58  inline void SetDecommissionTimeout(int value) { m_decommissionTimeoutHasBeenSet = true; m_decommissionTimeout = value; }
59 
64  inline ShrinkPolicy& WithDecommissionTimeout(int value) { SetDecommissionTimeout(value); return *this;}
65 
66 
71  inline const InstanceResizePolicy& GetInstanceResizePolicy() const{ return m_instanceResizePolicy; }
72 
77  inline bool InstanceResizePolicyHasBeenSet() const { return m_instanceResizePolicyHasBeenSet; }
78 
83  inline void SetInstanceResizePolicy(const InstanceResizePolicy& value) { m_instanceResizePolicyHasBeenSet = true; m_instanceResizePolicy = value; }
84 
89  inline void SetInstanceResizePolicy(InstanceResizePolicy&& value) { m_instanceResizePolicyHasBeenSet = true; m_instanceResizePolicy = std::move(value); }
90 
95  inline ShrinkPolicy& WithInstanceResizePolicy(const InstanceResizePolicy& value) { SetInstanceResizePolicy(value); return *this;}
96 
101  inline ShrinkPolicy& WithInstanceResizePolicy(InstanceResizePolicy&& value) { SetInstanceResizePolicy(std::move(value)); return *this;}
102 
103  private:
104 
105  int m_decommissionTimeout;
106  bool m_decommissionTimeoutHasBeenSet;
107 
108  InstanceResizePolicy m_instanceResizePolicy;
109  bool m_instanceResizePolicyHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace EMR
114 } // namespace Aws
Aws::EMR::Model::ShrinkPolicy::SetDecommissionTimeout
void SetDecommissionTimeout(int value)
Definition: ShrinkPolicy.h:58
Aws::EMR::Model::ShrinkPolicy::WithInstanceResizePolicy
ShrinkPolicy & WithInstanceResizePolicy(InstanceResizePolicy &&value)
Definition: ShrinkPolicy.h:101
Aws::EMR::Model::ShrinkPolicy::operator=
ShrinkPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
EMR_EXPORTS.h
Aws::EMR::Model::ShrinkPolicy::GetDecommissionTimeout
int GetDecommissionTimeout() const
Definition: ShrinkPolicy.h:46
Aws::EMR::Model::ShrinkPolicy::ShrinkPolicy
ShrinkPolicy()
Aws::EMR::Model::ShrinkPolicy::WithInstanceResizePolicy
ShrinkPolicy & WithInstanceResizePolicy(const InstanceResizePolicy &value)
Definition: ShrinkPolicy.h:95
Aws::EMR::Model::ShrinkPolicy::InstanceResizePolicyHasBeenSet
bool InstanceResizePolicyHasBeenSet() const
Definition: ShrinkPolicy.h:77
Aws::EMR::Model::ShrinkPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ShrinkPolicy::SetInstanceResizePolicy
void SetInstanceResizePolicy(const InstanceResizePolicy &value)
Definition: ShrinkPolicy.h:83
Aws::EMR::Model::ShrinkPolicy::ShrinkPolicy
ShrinkPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
InstanceResizePolicy.h
Aws::EMR::Model::ShrinkPolicy::SetInstanceResizePolicy
void SetInstanceResizePolicy(InstanceResizePolicy &&value)
Definition: ShrinkPolicy.h:89
Aws::EMR::Model::InstanceResizePolicy
Definition: InstanceResizePolicy.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ShrinkPolicy::DecommissionTimeoutHasBeenSet
bool DecommissionTimeoutHasBeenSet() const
Definition: ShrinkPolicy.h:52
Aws::EMR::Model::ShrinkPolicy::GetInstanceResizePolicy
const InstanceResizePolicy & GetInstanceResizePolicy() const
Definition: ShrinkPolicy.h:71
Aws::EMR::Model::ShrinkPolicy::WithDecommissionTimeout
ShrinkPolicy & WithDecommissionTimeout(int value)
Definition: ShrinkPolicy.h:64
Aws::EMR::Model::ShrinkPolicy
Definition: ShrinkPolicy.h:34
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28