AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
PercentPair.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace IoT {
17namespace Model {
18
25 public:
26 AWS_IOT_API PercentPair() = default;
30
32
35 inline double GetPercent() const { return m_percent; }
36 inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; }
37 inline void SetPercent(double value) {
38 m_percentHasBeenSet = true;
39 m_percent = value;
40 }
41 inline PercentPair& WithPercent(double value) {
42 SetPercent(value);
43 return *this;
44 }
46
48
51 inline double GetValue() const { return m_value; }
52 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
53 inline void SetValue(double value) {
54 m_valueHasBeenSet = true;
55 m_value = value;
56 }
57 inline PercentPair& WithValue(double value) {
58 SetValue(value);
59 return *this;
60 }
62 private:
63 double m_percent{0.0};
64
65 double m_value{0.0};
66 bool m_percentHasBeenSet = false;
67 bool m_valueHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace IoT
72} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API PercentPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPercent(double value)
Definition PercentPair.h:37
PercentPair & WithValue(double value)
Definition PercentPair.h:57
PercentPair & WithPercent(double value)
Definition PercentPair.h:41
AWS_IOT_API PercentPair(Aws::Utils::Json::JsonView jsonValue)
void SetValue(double value)
Definition PercentPair.h:53
AWS_IOT_API PercentPair()=default
Aws::Utils::Json::JsonValue JsonValue