AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GlueDataBrew {
21namespace Model {
22
31class Threshold {
32 public:
33 AWS_GLUEDATABREW_API Threshold() = default;
34 AWS_GLUEDATABREW_API Threshold(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLUEDATABREW_API Threshold& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline double GetValue() const { return m_value; }
43 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
44 inline void SetValue(double value) {
45 m_valueHasBeenSet = true;
46 m_value = value;
47 }
48 inline Threshold& WithValue(double value) {
49 SetValue(value);
50 return *this;
51 }
53
55
59 inline ThresholdType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(ThresholdType value) {
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
76 inline ThresholdUnit GetUnit() const { return m_unit; }
77 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
78 inline void SetUnit(ThresholdUnit value) {
79 m_unitHasBeenSet = true;
80 m_unit = value;
81 }
83 SetUnit(value);
84 return *this;
85 }
87 private:
88 double m_value{0.0};
89
91
93 bool m_valueHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95 bool m_unitHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace GlueDataBrew
100} // namespace Aws
void SetUnit(ThresholdUnit value)
Definition Threshold.h:78
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:65
Threshold & WithValue(double value)
Definition Threshold.h:48
ThresholdUnit GetUnit() const
Definition Threshold.h:76
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:82
Aws::Utils::Json::JsonValue JsonValue