AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
ThresholdConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ThresholdType.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
33 public:
34 AWS_ECS_API ThresholdConfiguration() = default;
38
40
48 inline ThresholdType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(ThresholdType value) {
51 m_typeHasBeenSet = true;
52 m_type = value;
53 }
55 SetType(value);
56 return *this;
57 }
59
61
68 inline int GetValue() const { return m_value; }
69 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
70 inline void SetValue(int value) {
71 m_valueHasBeenSet = true;
72 m_value = value;
73 }
74 inline ThresholdConfiguration& WithValue(int value) {
75 SetValue(value);
76 return *this;
77 }
79 private:
81
82 int m_value{0};
83 bool m_typeHasBeenSet = false;
84 bool m_valueHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ECS
89} // namespace Aws
ThresholdConfiguration & WithType(ThresholdType value)
ThresholdConfiguration & WithValue(int value)
AWS_ECS_API ThresholdConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ThresholdConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API ThresholdConfiguration()=default
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue