AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Stats.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace deadline {
17namespace Model {
18
24class Stats {
25 public:
26 AWS_DEADLINE_API Stats() = default;
27 AWS_DEADLINE_API Stats(Aws::Utils::Json::JsonView jsonValue);
28 AWS_DEADLINE_API Stats& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline double GetMin() const { return m_min; }
36 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
37 inline void SetMin(double value) {
38 m_minHasBeenSet = true;
39 m_min = value;
40 }
41 inline Stats& WithMin(double value) {
42 SetMin(value);
43 return *this;
44 }
46
48
51 inline double GetMax() const { return m_max; }
52 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
53 inline void SetMax(double value) {
54 m_maxHasBeenSet = true;
55 m_max = value;
56 }
57 inline Stats& WithMax(double value) {
58 SetMax(value);
59 return *this;
60 }
62
64
67 inline double GetAvg() const { return m_avg; }
68 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
69 inline void SetAvg(double value) {
70 m_avgHasBeenSet = true;
71 m_avg = value;
72 }
73 inline Stats& WithAvg(double value) {
74 SetAvg(value);
75 return *this;
76 }
78
80
83 inline double GetSum() const { return m_sum; }
84 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
85 inline void SetSum(double value) {
86 m_sumHasBeenSet = true;
87 m_sum = value;
88 }
89 inline Stats& WithSum(double value) {
90 SetSum(value);
91 return *this;
92 }
94 private:
95 double m_min{0.0};
96
97 double m_max{0.0};
98
99 double m_avg{0.0};
100
101 double m_sum{0.0};
102 bool m_minHasBeenSet = false;
103 bool m_maxHasBeenSet = false;
104 bool m_avgHasBeenSet = false;
105 bool m_sumHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace deadline
110} // namespace Aws
Stats & WithAvg(double value)
Definition Stats.h:73
double GetMin() const
Definition Stats.h:35
void SetAvg(double value)
Definition Stats.h:69
void SetMax(double value)
Definition Stats.h:53
double GetMax() const
Definition Stats.h:51
Stats & WithSum(double value)
Definition Stats.h:89
bool MaxHasBeenSet() const
Definition Stats.h:52
bool AvgHasBeenSet() const
Definition Stats.h:68
bool MinHasBeenSet() const
Definition Stats.h:36
double GetSum() const
Definition Stats.h:83
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMin(double value)
Definition Stats.h:37
AWS_DEADLINE_API Stats(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API Stats()=default
Stats & WithMin(double value)
Definition Stats.h:41
AWS_DEADLINE_API Stats & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSum(double value)
Definition Stats.h:85
bool SumHasBeenSet() const
Definition Stats.h:84
Stats & WithMax(double value)
Definition Stats.h:57
double GetAvg() const
Definition Stats.h:67
Aws::Utils::Json::JsonValue JsonValue