AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationAutoScaling {
20namespace Model {
21
33 public:
34 AWS_APPLICATIONAUTOSCALING_API NotScaledReason() = default;
35 AWS_APPLICATIONAUTOSCALING_API NotScaledReason(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONAUTOSCALING_API NotScaledReason& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::String& GetCode() const { return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 template <typename CodeT = Aws::String>
50 void SetCode(CodeT&& value) {
51 m_codeHasBeenSet = true;
52 m_code = std::forward<CodeT>(value);
53 }
54 template <typename CodeT = Aws::String>
55 NotScaledReason& WithCode(CodeT&& value) {
56 SetCode(std::forward<CodeT>(value));
57 return *this;
58 }
60
62
65 inline int GetMaxCapacity() const { return m_maxCapacity; }
66 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
67 inline void SetMaxCapacity(int value) {
68 m_maxCapacityHasBeenSet = true;
69 m_maxCapacity = value;
70 }
71 inline NotScaledReason& WithMaxCapacity(int value) {
72 SetMaxCapacity(value);
73 return *this;
74 }
76
78
81 inline int GetMinCapacity() const { return m_minCapacity; }
82 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
83 inline void SetMinCapacity(int value) {
84 m_minCapacityHasBeenSet = true;
85 m_minCapacity = value;
86 }
87 inline NotScaledReason& WithMinCapacity(int value) {
88 SetMinCapacity(value);
89 return *this;
90 }
92
94
97 inline int GetCurrentCapacity() const { return m_currentCapacity; }
98 inline bool CurrentCapacityHasBeenSet() const { return m_currentCapacityHasBeenSet; }
99 inline void SetCurrentCapacity(int value) {
100 m_currentCapacityHasBeenSet = true;
101 m_currentCapacity = value;
102 }
104 SetCurrentCapacity(value);
105 return *this;
106 }
108 private:
109 Aws::String m_code;
110
111 int m_maxCapacity{0};
112
113 int m_minCapacity{0};
114
115 int m_currentCapacity{0};
116 bool m_codeHasBeenSet = false;
117 bool m_maxCapacityHasBeenSet = false;
118 bool m_minCapacityHasBeenSet = false;
119 bool m_currentCapacityHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace ApplicationAutoScaling
124} // 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