AWS SDK for C++  1.9.20
AWS SDK for C++
AutoScalingPolicyStatus.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 
33  {
34  public:
39 
40 
44  inline const AutoScalingPolicyState& GetState() const{ return m_state; }
45 
49  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 
54  inline void SetState(const AutoScalingPolicyState& value) { m_stateHasBeenSet = true; m_state = value; }
55 
59  inline void SetState(AutoScalingPolicyState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
60 
64  inline AutoScalingPolicyStatus& WithState(const AutoScalingPolicyState& value) { SetState(value); return *this;}
65 
69  inline AutoScalingPolicyStatus& WithState(AutoScalingPolicyState&& value) { SetState(std::move(value)); return *this;}
70 
71 
75  inline const AutoScalingPolicyStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
76 
80  inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
81 
85  inline void SetStateChangeReason(const AutoScalingPolicyStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
86 
90  inline void SetStateChangeReason(AutoScalingPolicyStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
91 
95  inline AutoScalingPolicyStatus& WithStateChangeReason(const AutoScalingPolicyStateChangeReason& value) { SetStateChangeReason(value); return *this;}
96 
100  inline AutoScalingPolicyStatus& WithStateChangeReason(AutoScalingPolicyStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;}
101 
102  private:
103 
104  AutoScalingPolicyState m_state;
105  bool m_stateHasBeenSet;
106 
107  AutoScalingPolicyStateChangeReason m_stateChangeReason;
108  bool m_stateChangeReasonHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace EMR
113 } // namespace Aws
Aws::EMR::Model::AutoScalingPolicyStateChangeReason
Definition: AutoScalingPolicyStateChangeReason.h:34
Aws::EMR::Model::AutoScalingPolicyState
AutoScalingPolicyState
Definition: AutoScalingPolicyState.h:17
Aws::EMR::Model::AutoScalingPolicyStatus::StateChangeReasonHasBeenSet
bool StateChangeReasonHasBeenSet() const
Definition: AutoScalingPolicyStatus.h:80
Aws::EMR::Model::AutoScalingPolicyStatus::GetStateChangeReason
const AutoScalingPolicyStateChangeReason & GetStateChangeReason() const
Definition: AutoScalingPolicyStatus.h:75
EMR_EXPORTS.h
Aws::EMR::Model::AutoScalingPolicyStatus::AutoScalingPolicyStatus
AutoScalingPolicyStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyStatus::WithStateChangeReason
AutoScalingPolicyStatus & WithStateChangeReason(AutoScalingPolicyStateChangeReason &&value)
Definition: AutoScalingPolicyStatus.h:100
Aws::EMR::Model::AutoScalingPolicyStatus::WithStateChangeReason
AutoScalingPolicyStatus & WithStateChangeReason(const AutoScalingPolicyStateChangeReason &value)
Definition: AutoScalingPolicyStatus.h:95
AutoScalingPolicyStateChangeReason.h
Aws::EMR::Model::AutoScalingPolicyStatus::SetStateChangeReason
void SetStateChangeReason(const AutoScalingPolicyStateChangeReason &value)
Definition: AutoScalingPolicyStatus.h:85
Aws::EMR::Model::AutoScalingPolicyStatus::AutoScalingPolicyStatus
AutoScalingPolicyStatus()
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::AutoScalingPolicyStatus::SetStateChangeReason
void SetStateChangeReason(AutoScalingPolicyStateChangeReason &&value)
Definition: AutoScalingPolicyStatus.h:90
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::AutoScalingPolicyStatus::WithState
AutoScalingPolicyStatus & WithState(AutoScalingPolicyState &&value)
Definition: AutoScalingPolicyStatus.h:69
Aws::EMR::Model::AutoScalingPolicyStatus::SetState
void SetState(AutoScalingPolicyState &&value)
Definition: AutoScalingPolicyStatus.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::AutoScalingPolicyStatus::SetState
void SetState(const AutoScalingPolicyState &value)
Definition: AutoScalingPolicyStatus.h:54
Aws::EMR::Model::AutoScalingPolicyStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::AutoScalingPolicyStatus::operator=
AutoScalingPolicyStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyStatus::GetState
const AutoScalingPolicyState & GetState() const
Definition: AutoScalingPolicyStatus.h:44
Aws::EMR::Model::AutoScalingPolicyStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AutoScalingPolicyStatus.h:49
AutoScalingPolicyState.h
Aws::EMR::Model::AutoScalingPolicyStatus::WithState
AutoScalingPolicyStatus & WithState(const AutoScalingPolicyState &value)
Definition: AutoScalingPolicyStatus.h:64
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AutoScalingPolicyStatus
Definition: AutoScalingPolicyStatus.h:33