AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotScaledReason.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ApplicationAutoScaling
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_APPLICATIONAUTOSCALING_API NotScaledReason() = default;
40 AWS_APPLICATIONAUTOSCALING_API NotScaledReason(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API NotScaledReason& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
53 inline const Aws::String& GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 template<typename CodeT = Aws::String>
56 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
57 template<typename CodeT = Aws::String>
58 NotScaledReason& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
60
62
65 inline int GetMaxCapacity() const { return m_maxCapacity; }
66 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
67 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
68 inline NotScaledReason& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
70
72
75 inline int GetMinCapacity() const { return m_minCapacity; }
76 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
77 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
78 inline NotScaledReason& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
80
82
85 inline int GetCurrentCapacity() const { return m_currentCapacity; }
86 inline bool CurrentCapacityHasBeenSet() const { return m_currentCapacityHasBeenSet; }
87 inline void SetCurrentCapacity(int value) { m_currentCapacityHasBeenSet = true; m_currentCapacity = value; }
88 inline NotScaledReason& WithCurrentCapacity(int value) { SetCurrentCapacity(value); return *this;}
90 private:
91
92 Aws::String m_code;
93 bool m_codeHasBeenSet = false;
94
95 int m_maxCapacity{0};
96 bool m_maxCapacityHasBeenSet = false;
97
98 int m_minCapacity{0};
99 bool m_minCapacityHasBeenSet = false;
100
101 int m_currentCapacity{0};
102 bool m_currentCapacityHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ApplicationAutoScaling
107} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONAUTOSCALING_API NotScaledReason(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API NotScaledReason()=default
AWS_APPLICATIONAUTOSCALING_API NotScaledReason & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue