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>The predicted high and low fault count. This is used to determine if a
26    * service has become anomalous and if an insight should be created.</p><p><h3>See
27    * Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ForecastStatistics">AWS
29    * API Reference</a></p>
30    */
31   class AWS_XRAY_API ForecastStatistics
32   {
33   public:
34     ForecastStatistics();
35     ForecastStatistics(Aws::Utils::Json::JsonView jsonValue);
36     ForecastStatistics& operator=(Aws::Utils::Json::JsonView jsonValue);
37     Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
40     /**
41      * <p>The upper limit of fault counts for a service.</p>
42      */
GetFaultCountHigh()43     inline long long GetFaultCountHigh() const{ return m_faultCountHigh; }
44 
45     /**
46      * <p>The upper limit of fault counts for a service.</p>
47      */
FaultCountHighHasBeenSet()48     inline bool FaultCountHighHasBeenSet() const { return m_faultCountHighHasBeenSet; }
49 
50     /**
51      * <p>The upper limit of fault counts for a service.</p>
52      */
SetFaultCountHigh(long long value)53     inline void SetFaultCountHigh(long long value) { m_faultCountHighHasBeenSet = true; m_faultCountHigh = value; }
54 
55     /**
56      * <p>The upper limit of fault counts for a service.</p>
57      */
WithFaultCountHigh(long long value)58     inline ForecastStatistics& WithFaultCountHigh(long long value) { SetFaultCountHigh(value); return *this;}
59 
60 
61     /**
62      * <p>The lower limit of fault counts for a service.</p>
63      */
GetFaultCountLow()64     inline long long GetFaultCountLow() const{ return m_faultCountLow; }
65 
66     /**
67      * <p>The lower limit of fault counts for a service.</p>
68      */
FaultCountLowHasBeenSet()69     inline bool FaultCountLowHasBeenSet() const { return m_faultCountLowHasBeenSet; }
70 
71     /**
72      * <p>The lower limit of fault counts for a service.</p>
73      */
SetFaultCountLow(long long value)74     inline void SetFaultCountLow(long long value) { m_faultCountLowHasBeenSet = true; m_faultCountLow = value; }
75 
76     /**
77      * <p>The lower limit of fault counts for a service.</p>
78      */
WithFaultCountLow(long long value)79     inline ForecastStatistics& WithFaultCountLow(long long value) { SetFaultCountLow(value); return *this;}
80 
81   private:
82 
83     long long m_faultCountHigh;
84     bool m_faultCountHighHasBeenSet;
85 
86     long long m_faultCountLow;
87     bool m_faultCountLowHasBeenSet;
88   };
89 
90 } // namespace Model
91 } // namespace XRay
92 } // namespace Aws
93