AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline SummarizedCounter& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline SummarizedCounter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline SummarizedCounter& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline double GetMax() const{ return m_max; }
59 inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
60 inline void SetMax(double value) { m_maxHasBeenSet = true; m_max = value; }
61 inline SummarizedCounter& WithMax(double value) { SetMax(value); return *this;}
63
65
68 inline double GetAverage() const{ return m_average; }
69 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
70 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
71 inline SummarizedCounter& WithAverage(double value) { SetAverage(value); return *this;}
73
75
78 inline double GetSum() const{ return m_sum; }
79 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
80 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
81 inline SummarizedCounter& WithSum(double value) { SetSum(value); return *this;}
83
85
88 inline int GetN() const{ return m_n; }
89 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
90 inline void SetN(int value) { m_nHasBeenSet = true; m_n = value; }
91 inline SummarizedCounter& WithN(int value) { SetN(value); return *this;}
93
95
98 inline const Aws::String& GetUnit() const{ return m_unit; }
99 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
100 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
101 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
102 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
103 inline SummarizedCounter& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
104 inline SummarizedCounter& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
105 inline SummarizedCounter& WithUnit(const char* value) { SetUnit(value); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 double m_max;
113 bool m_maxHasBeenSet = false;
114
115 double m_average;
116 bool m_averageHasBeenSet = false;
117
118 double m_sum;
119 bool m_sumHasBeenSet = false;
120
121 int m_n;
122 bool m_nHasBeenSet = false;
123
124 Aws::String m_unit;
125 bool m_unitHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Shield
130} // namespace Aws
const Aws::String & GetName() const
SummarizedCounter & WithUnit(const Aws::String &value)
void SetName(const Aws::String &value)
const Aws::String & GetUnit() const
SummarizedCounter & WithName(Aws::String &&value)
SummarizedCounter & WithName(const char *value)
void SetUnit(const Aws::String &value)
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 & WithName(const Aws::String &value)
SummarizedCounter & WithUnit(Aws::String &&value)
SummarizedCounter & WithUnit(const char *value)
SummarizedCounter & WithN(int value)
SummarizedCounter & WithMax(double value)
SummarizedCounter & WithAverage(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue