AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Stats.h
1
6#pragma once
7#include <aws/deadline/Deadline_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 deadline
20{
21namespace Model
22{
23
29 class Stats
30 {
31 public:
32 AWS_DEADLINE_API Stats();
33 AWS_DEADLINE_API Stats(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEADLINE_API Stats& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline double GetMin() const{ return m_min; }
43 inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
44 inline void SetMin(double value) { m_minHasBeenSet = true; m_min = value; }
45 inline Stats& WithMin(double value) { SetMin(value); return *this;}
47
49
52 inline double GetMax() const{ return m_max; }
53 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
54 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
55 inline Stats& WithMax(double value) { SetMax(value); return *this;}
57
59
62 inline double GetAvg() const{ return m_avg; }
63 inline bool AvgHasBeenSet() const { return m_avgHasBeenSet; }
64 inline void SetAvg(double value) { m_avgHasBeenSet = true; m_avg = value; }
65 inline Stats& WithAvg(double value) { SetAvg(value); return *this;}
67
69
72 inline double GetSum() const{ return m_sum; }
73 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
74 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
75 inline Stats& WithSum(double value) { SetSum(value); return *this;}
77 private:
78
79 double m_min;
80 bool m_minHasBeenSet = false;
81
82 double m_max;
83 bool m_maxHasBeenSet = false;
84
85 double m_avg;
86 bool m_avgHasBeenSet = false;
87
88 double m_sum;
89 bool m_sumHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace deadline
94} // namespace Aws
Stats & WithAvg(double value)
Definition Stats.h:65
double GetMin() const
Definition Stats.h:42
void SetAvg(double value)
Definition Stats.h:64
void SetMax(double value)
Definition Stats.h:54
double GetMax() const
Definition Stats.h:52
Stats & WithSum(double value)
Definition Stats.h:75
bool MaxHasBeenSet() const
Definition Stats.h:53
bool AvgHasBeenSet() const
Definition Stats.h:63
AWS_DEADLINE_API Stats()
bool MinHasBeenSet() const
Definition Stats.h:43
double GetSum() const
Definition Stats.h:72
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMin(double value)
Definition Stats.h:44
AWS_DEADLINE_API Stats(Aws::Utils::Json::JsonView jsonValue)
Stats & WithMin(double value)
Definition Stats.h:45
AWS_DEADLINE_API Stats & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSum(double value)
Definition Stats.h:74
bool SumHasBeenSet() const
Definition Stats.h:73
Stats & WithMax(double value)
Definition Stats.h:55
double GetAvg() const
Definition Stats.h:62
Aws::Utils::Json::JsonValue JsonValue