AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PercentPair.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_IOT_API PercentPair();
36
37
39
42 inline double GetPercent() const{ return m_percent; }
43 inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; }
44 inline void SetPercent(double value) { m_percentHasBeenSet = true; m_percent = value; }
45 inline PercentPair& WithPercent(double value) { SetPercent(value); return *this;}
47
49
52 inline double GetValue() const{ return m_value; }
53 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
54 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
55 inline PercentPair& WithValue(double value) { SetValue(value); return *this;}
57 private:
58
59 double m_percent;
60 bool m_percentHasBeenSet = false;
61
62 double m_value;
63 bool m_valueHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace IoT
68} // 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:44
PercentPair & WithValue(double value)
Definition PercentPair.h:55
PercentPair & WithPercent(double value)
Definition PercentPair.h:45
AWS_IOT_API PercentPair(Aws::Utils::Json::JsonView jsonValue)
void SetValue(double value)
Definition PercentPair.h:54
Aws::Utils::Json::JsonValue JsonValue