AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SummarizedCounter.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Shield
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SHIELD_API SummarizedCounter() = default;
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 SummarizedCounter& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline double GetMax() const { return m_max; }
57 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
58 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
59 inline SummarizedCounter& WithMax(double value) { SetMax(value); return *this;}
61
63
66 inline double GetAverage() const { return m_average; }
67 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
68 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
69 inline SummarizedCounter& WithAverage(double value) { SetAverage(value); return *this;}
71
73
76 inline double GetSum() const { return m_sum; }
77 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
78 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
79 inline SummarizedCounter& WithSum(double value) { SetSum(value); return *this;}
81
83
86 inline int GetN() const { return m_n; }
87 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
88 inline void SetN(int value) { m_nHasBeenSet = true; m_n = value; }
89 inline SummarizedCounter& WithN(int value) { SetN(value); return *this;}
91
93
96 inline const Aws::String& GetUnit() const { return m_unit; }
97 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
98 template<typename UnitT = Aws::String>
99 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
100 template<typename UnitT = Aws::String>
101 SummarizedCounter& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
103 private:
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 double m_max{0.0};
109 bool m_maxHasBeenSet = false;
110
111 double m_average{0.0};
112 bool m_averageHasBeenSet = false;
113
114 double m_sum{0.0};
115 bool m_sumHasBeenSet = false;
116
117 int m_n{0};
118 bool m_nHasBeenSet = false;
119
120 Aws::String m_unit;
121 bool m_unitHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Shield
126} // namespace Aws
const Aws::String & GetName() const
SummarizedCounter & WithUnit(UnitT &&value)
const Aws::String & GetUnit() const
AWS_SHIELD_API SummarizedCounter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
SummarizedCounter & WithSum(double value)
AWS_SHIELD_API SummarizedCounter(Aws::Utils::Json::JsonView jsonValue)
SummarizedCounter & WithN(int value)
AWS_SHIELD_API SummarizedCounter()=default
SummarizedCounter & WithMax(double value)
SummarizedCounter & WithName(NameT &&value)
SummarizedCounter & WithAverage(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue