AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingPolicyStatus.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/AutoScalingPolicyState.h>
9#include <aws/elasticmapreduce/model/AutoScalingPolicyStateChangeReason.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
33 {
34 public:
39
40
42
45 inline const AutoScalingPolicyState& GetState() const{ return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(const AutoScalingPolicyState& value) { m_stateHasBeenSet = true; m_state = value; }
48 inline void SetState(AutoScalingPolicyState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
49 inline AutoScalingPolicyStatus& WithState(const AutoScalingPolicyState& value) { SetState(value); return *this;}
50 inline AutoScalingPolicyStatus& WithState(AutoScalingPolicyState&& value) { SetState(std::move(value)); return *this;}
52
54
57 inline const AutoScalingPolicyStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
58 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
59 inline void SetStateChangeReason(const AutoScalingPolicyStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
60 inline void SetStateChangeReason(AutoScalingPolicyStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
64 private:
65
67 bool m_stateHasBeenSet = false;
68
69 AutoScalingPolicyStateChangeReason m_stateChangeReason;
70 bool m_stateChangeReasonHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EMR
75} // namespace Aws
AWS_EMR_API AutoScalingPolicyStatus(Aws::Utils::Json::JsonView jsonValue)
const AutoScalingPolicyState & GetState() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(AutoScalingPolicyState &&value)
AutoScalingPolicyStatus & WithStateChangeReason(AutoScalingPolicyStateChangeReason &&value)
AutoScalingPolicyStatus & WithState(AutoScalingPolicyState &&value)
AutoScalingPolicyStatus & WithStateChangeReason(const AutoScalingPolicyStateChangeReason &value)
AutoScalingPolicyStatus & WithState(const AutoScalingPolicyState &value)
const AutoScalingPolicyStateChangeReason & GetStateChangeReason() const
AWS_EMR_API AutoScalingPolicyStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(const AutoScalingPolicyState &value)
void SetStateChangeReason(const AutoScalingPolicyStateChangeReason &value)
void SetStateChangeReason(AutoScalingPolicyStateChangeReason &&value)
Aws::Utils::Json::JsonValue JsonValue