AWS SDK for C++  0.14.3
AWS SDK for C++
Latency.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace ElasticBeanstalk
29 {
30 namespace Model
31 {
32 
38  {
39  public:
40  Latency();
41  Latency(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Latency& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
51  inline double GetP999() const{ return m_p999; }
52 
57  inline void SetP999(double value) { m_p999HasBeenSet = true; m_p999 = value; }
58 
63  inline Latency& WithP999(double value) { SetP999(value); return *this;}
64 
69  inline double GetP99() const{ return m_p99; }
70 
75  inline void SetP99(double value) { m_p99HasBeenSet = true; m_p99 = value; }
76 
81  inline Latency& WithP99(double value) { SetP99(value); return *this;}
82 
87  inline double GetP95() const{ return m_p95; }
88 
93  inline void SetP95(double value) { m_p95HasBeenSet = true; m_p95 = value; }
94 
99  inline Latency& WithP95(double value) { SetP95(value); return *this;}
100 
105  inline double GetP90() const{ return m_p90; }
106 
111  inline void SetP90(double value) { m_p90HasBeenSet = true; m_p90 = value; }
112 
117  inline Latency& WithP90(double value) { SetP90(value); return *this;}
118 
123  inline double GetP85() const{ return m_p85; }
124 
129  inline void SetP85(double value) { m_p85HasBeenSet = true; m_p85 = value; }
130 
135  inline Latency& WithP85(double value) { SetP85(value); return *this;}
136 
141  inline double GetP75() const{ return m_p75; }
142 
147  inline void SetP75(double value) { m_p75HasBeenSet = true; m_p75 = value; }
148 
153  inline Latency& WithP75(double value) { SetP75(value); return *this;}
154 
159  inline double GetP50() const{ return m_p50; }
160 
165  inline void SetP50(double value) { m_p50HasBeenSet = true; m_p50 = value; }
166 
171  inline Latency& WithP50(double value) { SetP50(value); return *this;}
172 
177  inline double GetP10() const{ return m_p10; }
178 
183  inline void SetP10(double value) { m_p10HasBeenSet = true; m_p10 = value; }
184 
189  inline Latency& WithP10(double value) { SetP10(value); return *this;}
190 
191  private:
192  double m_p999;
193  bool m_p999HasBeenSet;
194  double m_p99;
195  bool m_p99HasBeenSet;
196  double m_p95;
197  bool m_p95HasBeenSet;
198  double m_p90;
199  bool m_p90HasBeenSet;
200  double m_p85;
201  bool m_p85HasBeenSet;
202  double m_p75;
203  bool m_p75HasBeenSet;
204  double m_p50;
205  bool m_p50HasBeenSet;
206  double m_p10;
207  bool m_p10HasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace ElasticBeanstalk
212 } // namespace Aws
#define AWS_ELASTICBEANSTALK_API
Latency & WithP85(double value)
Definition: Latency.h:135
Latency & WithP75(double value)
Definition: Latency.h:153
Latency & WithP999(double value)
Definition: Latency.h:63
Latency & WithP50(double value)
Definition: Latency.h:171
Latency & WithP90(double value)
Definition: Latency.h:117
Latency & WithP95(double value)
Definition: Latency.h:99
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Latency & WithP99(double value)
Definition: Latency.h:81
Latency & WithP10(double value)
Definition: Latency.h:189
JSON (JavaScript Object Notation).