1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/xray/XRay_EXPORTS.h> 8 9 namespace Aws 10 { 11 namespace Utils 12 { 13 namespace Json 14 { 15 class JsonValue; 16 class JsonView; 17 } // namespace Json 18 } // namespace Utils 19 namespace XRay 20 { 21 namespace Model 22 { 23 24 /** 25 * <p>An entry in a histogram for a statistic. A histogram maps the range of 26 * observed values on the X axis, and the prevalence of each value on the Y 27 * axis.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/HistogramEntry">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_XRAY_API HistogramEntry 32 { 33 public: 34 HistogramEntry(); 35 HistogramEntry(Aws::Utils::Json::JsonView jsonValue); 36 HistogramEntry& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The value of the entry.</p> 42 */ GetValue()43 inline double GetValue() const{ return m_value; } 44 45 /** 46 * <p>The value of the entry.</p> 47 */ ValueHasBeenSet()48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } 49 50 /** 51 * <p>The value of the entry.</p> 52 */ SetValue(double value)53 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } 54 55 /** 56 * <p>The value of the entry.</p> 57 */ WithValue(double value)58 inline HistogramEntry& WithValue(double value) { SetValue(value); return *this;} 59 60 61 /** 62 * <p>The prevalence of the entry.</p> 63 */ GetCount()64 inline int GetCount() const{ return m_count; } 65 66 /** 67 * <p>The prevalence of the entry.</p> 68 */ CountHasBeenSet()69 inline bool CountHasBeenSet() const { return m_countHasBeenSet; } 70 71 /** 72 * <p>The prevalence of the entry.</p> 73 */ SetCount(int value)74 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } 75 76 /** 77 * <p>The prevalence of the entry.</p> 78 */ WithCount(int value)79 inline HistogramEntry& WithCount(int value) { SetCount(value); return *this;} 80 81 private: 82 83 double m_value; 84 bool m_valueHasBeenSet; 85 86 int m_count; 87 bool m_countHasBeenSet; 88 }; 89 90 } // namespace Model 91 } // namespace XRay 92 } // namespace Aws 93