AWS SDK for C++  1.9.132
AWS SDK for C++
PercentPair.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace IoT
20 {
21 namespace Model
22 {
23 
30  {
31  public:
36 
37 
41  inline double GetPercent() const{ return m_percent; }
42 
46  inline bool PercentHasBeenSet() const { return m_percentHasBeenSet; }
47 
51  inline void SetPercent(double value) { m_percentHasBeenSet = true; m_percent = value; }
52 
56  inline PercentPair& WithPercent(double value) { SetPercent(value); return *this;}
57 
58 
62  inline double GetValue() const{ return m_value; }
63 
67  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
68 
72  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
73 
77  inline PercentPair& WithValue(double value) { SetValue(value); return *this;}
78 
79  private:
80 
81  double m_percent;
82  bool m_percentHasBeenSet;
83 
84  double m_value;
85  bool m_valueHasBeenSet;
86  };
87 
88 } // namespace Model
89 } // namespace IoT
90 } // namespace Aws
Aws::IoT::Model::PercentPair::SetValue
void SetValue(double value)
Definition: PercentPair.h:72
Aws::IoT::Model::PercentPair::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PercentPair.h:67
Aws::IoT::Model::PercentPair::PercentPair
PercentPair(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::PercentPair::SetPercent
void SetPercent(double value)
Definition: PercentPair.h:51
Aws::IoT::Model::PercentPair
Definition: PercentPair.h:30
Aws::IoT::Model::PercentPair::WithPercent
PercentPair & WithPercent(double value)
Definition: PercentPair.h:56
Aws::IoT::Model::PercentPair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::PercentPair::GetPercent
double GetPercent() const
Definition: PercentPair.h:41
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::PercentPair::PercentHasBeenSet
bool PercentHasBeenSet() const
Definition: PercentPair.h:46
Aws::IoT::Model::PercentPair::PercentPair
PercentPair()
Aws::IoT::Model::PercentPair::GetValue
double GetValue() const
Definition: PercentPair.h:62
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::PercentPair::WithValue
PercentPair & WithValue(double value)
Definition: PercentPair.h:77
Aws::IoT::Model::PercentPair::operator=
PercentPair & operator=(Aws::Utils::Json::JsonView jsonValue)
IoT_EXPORTS.h