AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Threshold.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/model/ThresholdType.h>
9#include <aws/databrew/model/ThresholdUnit.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 GlueDataBrew
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_GLUEDATABREW_API Threshold() = default;
39 AWS_GLUEDATABREW_API Threshold(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLUEDATABREW_API Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline double GetValue() const { return m_value; }
49 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
50 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
51 inline Threshold& WithValue(double value) { SetValue(value); return *this;}
53
55
59 inline ThresholdType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(ThresholdType value) { m_typeHasBeenSet = true; m_type = value; }
62 inline Threshold& WithType(ThresholdType value) { SetType(value); return *this;}
64
66
70 inline ThresholdUnit GetUnit() const { return m_unit; }
71 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
72 inline void SetUnit(ThresholdUnit value) { m_unitHasBeenSet = true; m_unit = value; }
73 inline Threshold& WithUnit(ThresholdUnit value) { SetUnit(value); return *this;}
75 private:
76
77 double m_value{0.0};
78 bool m_valueHasBeenSet = false;
79
81 bool m_typeHasBeenSet = false;
82
84 bool m_unitHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GlueDataBrew
89} // namespace Aws
void SetUnit(ThresholdUnit value)
Definition Threshold.h:72
AWS_GLUEDATABREW_API Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
Threshold & WithType(ThresholdType value)
Definition Threshold.h:62
Threshold & WithValue(double value)
Definition Threshold.h:51
ThresholdUnit GetUnit() const
Definition Threshold.h:70
AWS_GLUEDATABREW_API Threshold(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Threshold()=default
void SetType(ThresholdType value)
Definition Threshold.h:61
ThresholdType GetType() const
Definition Threshold.h:59
Threshold & WithUnit(ThresholdUnit value)
Definition Threshold.h:73
Aws::Utils::Json::JsonValue JsonValue