AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
CountPercent.h
1
6#pragma once
7#include <aws/lookoutequipment/LookoutEquipment_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace LookoutEquipment {
17namespace Model {
18
26 public:
27 AWS_LOOKOUTEQUIPMENT_API CountPercent() = default;
28 AWS_LOOKOUTEQUIPMENT_API CountPercent(Aws::Utils::Json::JsonView jsonValue);
29 AWS_LOOKOUTEQUIPMENT_API CountPercent& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_LOOKOUTEQUIPMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetCount() const { return m_count; }
37 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
38 inline void SetCount(int value) {
39 m_countHasBeenSet = true;
40 m_count = value;
41 }
42 inline CountPercent& WithCount(int value) {
43 SetCount(value);
44 return *this;
45 }
47
49
52 inline double GetPercentage() const { return m_percentage; }
53 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
54 inline void SetPercentage(double value) {
55 m_percentageHasBeenSet = true;
56 m_percentage = value;
57 }
58 inline CountPercent& WithPercentage(double value) {
59 SetPercentage(value);
60 return *this;
61 }
63 private:
64 int m_count{0};
65
66 double m_percentage{0.0};
67 bool m_countHasBeenSet = false;
68 bool m_percentageHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace LookoutEquipment
73} // namespace Aws
AWS_LOOKOUTEQUIPMENT_API CountPercent(Aws::Utils::Json::JsonView jsonValue)
CountPercent & WithPercentage(double value)
AWS_LOOKOUTEQUIPMENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOOKOUTEQUIPMENT_API CountPercent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTEQUIPMENT_API CountPercent()=default
Aws::Utils::Json::JsonValue JsonValue