AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Latency.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace ElasticBeanstalk {
17namespace Model {
18
25class Latency {
26 public:
27 AWS_ELASTICBEANSTALK_API Latency() = default;
28 AWS_ELASTICBEANSTALK_API Latency(const Aws::Utils::Xml::XmlNode& xmlNode);
29 AWS_ELASTICBEANSTALK_API Latency& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
30
31 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
32 const char* locationValue) const;
33 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
34
36
40 inline double GetP999() const { return m_p999; }
41 inline bool P999HasBeenSet() const { return m_p999HasBeenSet; }
42 inline void SetP999(double value) {
43 m_p999HasBeenSet = true;
44 m_p999 = value;
45 }
46 inline Latency& WithP999(double value) {
47 SetP999(value);
48 return *this;
49 }
51
53
57 inline double GetP99() const { return m_p99; }
58 inline bool P99HasBeenSet() const { return m_p99HasBeenSet; }
59 inline void SetP99(double value) {
60 m_p99HasBeenSet = true;
61 m_p99 = value;
62 }
63 inline Latency& WithP99(double value) {
64 SetP99(value);
65 return *this;
66 }
68
70
74 inline double GetP95() const { return m_p95; }
75 inline bool P95HasBeenSet() const { return m_p95HasBeenSet; }
76 inline void SetP95(double value) {
77 m_p95HasBeenSet = true;
78 m_p95 = value;
79 }
80 inline Latency& WithP95(double value) {
81 SetP95(value);
82 return *this;
83 }
85
87
91 inline double GetP90() const { return m_p90; }
92 inline bool P90HasBeenSet() const { return m_p90HasBeenSet; }
93 inline void SetP90(double value) {
94 m_p90HasBeenSet = true;
95 m_p90 = value;
96 }
97 inline Latency& WithP90(double value) {
98 SetP90(value);
99 return *this;
100 }
102
104
108 inline double GetP85() const { return m_p85; }
109 inline bool P85HasBeenSet() const { return m_p85HasBeenSet; }
110 inline void SetP85(double value) {
111 m_p85HasBeenSet = true;
112 m_p85 = value;
113 }
114 inline Latency& WithP85(double value) {
115 SetP85(value);
116 return *this;
117 }
119
121
125 inline double GetP75() const { return m_p75; }
126 inline bool P75HasBeenSet() const { return m_p75HasBeenSet; }
127 inline void SetP75(double value) {
128 m_p75HasBeenSet = true;
129 m_p75 = value;
130 }
131 inline Latency& WithP75(double value) {
132 SetP75(value);
133 return *this;
134 }
136
138
142 inline double GetP50() const { return m_p50; }
143 inline bool P50HasBeenSet() const { return m_p50HasBeenSet; }
144 inline void SetP50(double value) {
145 m_p50HasBeenSet = true;
146 m_p50 = value;
147 }
148 inline Latency& WithP50(double value) {
149 SetP50(value);
150 return *this;
151 }
153
155
159 inline double GetP10() const { return m_p10; }
160 inline bool P10HasBeenSet() const { return m_p10HasBeenSet; }
161 inline void SetP10(double value) {
162 m_p10HasBeenSet = true;
163 m_p10 = value;
164 }
165 inline Latency& WithP10(double value) {
166 SetP10(value);
167 return *this;
168 }
170 private:
171 double m_p999{0.0};
172
173 double m_p99{0.0};
174
175 double m_p95{0.0};
176
177 double m_p90{0.0};
178
179 double m_p85{0.0};
180
181 double m_p75{0.0};
182
183 double m_p50{0.0};
184
185 double m_p10{0.0};
186 bool m_p999HasBeenSet = false;
187 bool m_p99HasBeenSet = false;
188 bool m_p95HasBeenSet = false;
189 bool m_p90HasBeenSet = false;
190 bool m_p85HasBeenSet = false;
191 bool m_p75HasBeenSet = false;
192 bool m_p50HasBeenSet = false;
193 bool m_p10HasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace ElasticBeanstalk
198} // namespace Aws
AWS_ELASTICBEANSTALK_API Latency(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API Latency()=default
AWS_ELASTICBEANSTALK_API Latency & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Latency & WithP99(double value)
Definition Latency.h:63
Latency & WithP999(double value)
Definition Latency.h:46
Latency & WithP90(double value)
Definition Latency.h:97
Latency & WithP95(double value)
Definition Latency.h:80
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Latency & WithP85(double value)
Definition Latency.h:114
Latency & WithP75(double value)
Definition Latency.h:131
Latency & WithP10(double value)
Definition Latency.h:165
Latency & WithP50(double value)
Definition Latency.h:148
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_ostream< char, std::char_traits< char > > OStream