AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HistogramEntry.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace XRay {
17namespace Model {
18
27 public:
28 AWS_XRAY_API HistogramEntry() = default;
32
34
37 inline double GetValue() const { return m_value; }
38 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
39 inline void SetValue(double value) {
40 m_valueHasBeenSet = true;
41 m_value = value;
42 }
43 inline HistogramEntry& WithValue(double value) {
44 SetValue(value);
45 return *this;
46 }
48
50
53 inline int GetCount() const { return m_count; }
54 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
55 inline void SetCount(int value) {
56 m_countHasBeenSet = true;
57 m_count = value;
58 }
59 inline HistogramEntry& WithCount(int value) {
60 SetCount(value);
61 return *this;
62 }
64 private:
65 double m_value{0.0};
66
67 int m_count{0};
68 bool m_valueHasBeenSet = false;
69 bool m_countHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace XRay
74} // namespace Aws
HistogramEntry & WithValue(double value)
int GetCount() const
bool CountHasBeenSet() const
AWS_XRAY_API HistogramEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API HistogramEntry()=default
bool ValueHasBeenSet() const
double GetValue() const
HistogramEntry & WithCount(int value)
void SetCount(int value)
void SetValue(double value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API HistogramEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue