AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ThresholdType& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const ThresholdType& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(ThresholdType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline Threshold& WithType(const ThresholdType& value) { SetType(value); return *this;}
64 inline Threshold& WithType(ThresholdType&& value) { SetType(std::move(value)); return *this;}
66
68
72 inline const ThresholdUnit& GetUnit() const{ return m_unit; }
73 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
74 inline void SetUnit(const ThresholdUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
75 inline void SetUnit(ThresholdUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
76 inline Threshold& WithUnit(const ThresholdUnit& value) { SetUnit(value); return *this;}
77 inline Threshold& WithUnit(ThresholdUnit&& value) { SetUnit(std::move(value)); return *this;}
79 private:
80
81 double m_value;
82 bool m_valueHasBeenSet = false;
83
84 ThresholdType m_type;
85 bool m_typeHasBeenSet = false;
86
87 ThresholdUnit m_unit;
88 bool m_unitHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GlueDataBrew
93} // namespace Aws
void SetUnit(ThresholdUnit &&value)
Definition Threshold.h:75
Threshold & WithUnit(ThresholdUnit &&value)
Definition Threshold.h:77
const ThresholdUnit & GetUnit() const
Definition Threshold.h:72
void SetType(ThresholdType &&value)
Definition Threshold.h:62
AWS_GLUEDATABREW_API Threshold & operator=(Aws::Utils::Json::JsonView jsonValue)
Threshold & WithType(ThresholdType &&value)
Definition Threshold.h:64
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
Threshold & WithType(const ThresholdType &value)
Definition Threshold.h:63
AWS_GLUEDATABREW_API Threshold()
Threshold & WithValue(double value)
Definition Threshold.h:51
const ThresholdType & GetType() const
Definition Threshold.h:59
AWS_GLUEDATABREW_API Threshold(Aws::Utils::Json::JsonView jsonValue)
Threshold & WithUnit(const ThresholdUnit &value)
Definition Threshold.h:76
void SetType(const ThresholdType &value)
Definition Threshold.h:61
void SetUnit(const ThresholdUnit &value)
Definition Threshold.h:74
Aws::Utils::Json::JsonValue JsonValue