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/codebuild/CodeBuild_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeBuild
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Contains trend statistics for a set of reports. The actual values depend on
28    * the type of trend being collected. For more information, see .</p><p><h3>See
29    * Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ReportGroupTrendStats">AWS
31    * API Reference</a></p>
32    */
33   class AWS_CODEBUILD_API ReportGroupTrendStats
34   {
35   public:
36     ReportGroupTrendStats();
37     ReportGroupTrendStats(Aws::Utils::Json::JsonView jsonValue);
38     ReportGroupTrendStats& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>Contains the average of all values analyzed.</p>
44      */
GetAverage()45     inline const Aws::String& GetAverage() const{ return m_average; }
46 
47     /**
48      * <p>Contains the average of all values analyzed.</p>
49      */
AverageHasBeenSet()50     inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
51 
52     /**
53      * <p>Contains the average of all values analyzed.</p>
54      */
SetAverage(const Aws::String & value)55     inline void SetAverage(const Aws::String& value) { m_averageHasBeenSet = true; m_average = value; }
56 
57     /**
58      * <p>Contains the average of all values analyzed.</p>
59      */
SetAverage(Aws::String && value)60     inline void SetAverage(Aws::String&& value) { m_averageHasBeenSet = true; m_average = std::move(value); }
61 
62     /**
63      * <p>Contains the average of all values analyzed.</p>
64      */
SetAverage(const char * value)65     inline void SetAverage(const char* value) { m_averageHasBeenSet = true; m_average.assign(value); }
66 
67     /**
68      * <p>Contains the average of all values analyzed.</p>
69      */
WithAverage(const Aws::String & value)70     inline ReportGroupTrendStats& WithAverage(const Aws::String& value) { SetAverage(value); return *this;}
71 
72     /**
73      * <p>Contains the average of all values analyzed.</p>
74      */
WithAverage(Aws::String && value)75     inline ReportGroupTrendStats& WithAverage(Aws::String&& value) { SetAverage(std::move(value)); return *this;}
76 
77     /**
78      * <p>Contains the average of all values analyzed.</p>
79      */
WithAverage(const char * value)80     inline ReportGroupTrendStats& WithAverage(const char* value) { SetAverage(value); return *this;}
81 
82 
83     /**
84      * <p>Contains the maximum value analyzed.</p>
85      */
GetMax()86     inline const Aws::String& GetMax() const{ return m_max; }
87 
88     /**
89      * <p>Contains the maximum value analyzed.</p>
90      */
MaxHasBeenSet()91     inline bool MaxHasBeenSet() const { return m_maxHasBeenSet; }
92 
93     /**
94      * <p>Contains the maximum value analyzed.</p>
95      */
SetMax(const Aws::String & value)96     inline void SetMax(const Aws::String& value) { m_maxHasBeenSet = true; m_max = value; }
97 
98     /**
99      * <p>Contains the maximum value analyzed.</p>
100      */
SetMax(Aws::String && value)101     inline void SetMax(Aws::String&& value) { m_maxHasBeenSet = true; m_max = std::move(value); }
102 
103     /**
104      * <p>Contains the maximum value analyzed.</p>
105      */
SetMax(const char * value)106     inline void SetMax(const char* value) { m_maxHasBeenSet = true; m_max.assign(value); }
107 
108     /**
109      * <p>Contains the maximum value analyzed.</p>
110      */
WithMax(const Aws::String & value)111     inline ReportGroupTrendStats& WithMax(const Aws::String& value) { SetMax(value); return *this;}
112 
113     /**
114      * <p>Contains the maximum value analyzed.</p>
115      */
WithMax(Aws::String && value)116     inline ReportGroupTrendStats& WithMax(Aws::String&& value) { SetMax(std::move(value)); return *this;}
117 
118     /**
119      * <p>Contains the maximum value analyzed.</p>
120      */
WithMax(const char * value)121     inline ReportGroupTrendStats& WithMax(const char* value) { SetMax(value); return *this;}
122 
123 
124     /**
125      * <p>Contains the minimum value analyzed.</p>
126      */
GetMin()127     inline const Aws::String& GetMin() const{ return m_min; }
128 
129     /**
130      * <p>Contains the minimum value analyzed.</p>
131      */
MinHasBeenSet()132     inline bool MinHasBeenSet() const { return m_minHasBeenSet; }
133 
134     /**
135      * <p>Contains the minimum value analyzed.</p>
136      */
SetMin(const Aws::String & value)137     inline void SetMin(const Aws::String& value) { m_minHasBeenSet = true; m_min = value; }
138 
139     /**
140      * <p>Contains the minimum value analyzed.</p>
141      */
SetMin(Aws::String && value)142     inline void SetMin(Aws::String&& value) { m_minHasBeenSet = true; m_min = std::move(value); }
143 
144     /**
145      * <p>Contains the minimum value analyzed.</p>
146      */
SetMin(const char * value)147     inline void SetMin(const char* value) { m_minHasBeenSet = true; m_min.assign(value); }
148 
149     /**
150      * <p>Contains the minimum value analyzed.</p>
151      */
WithMin(const Aws::String & value)152     inline ReportGroupTrendStats& WithMin(const Aws::String& value) { SetMin(value); return *this;}
153 
154     /**
155      * <p>Contains the minimum value analyzed.</p>
156      */
WithMin(Aws::String && value)157     inline ReportGroupTrendStats& WithMin(Aws::String&& value) { SetMin(std::move(value)); return *this;}
158 
159     /**
160      * <p>Contains the minimum value analyzed.</p>
161      */
WithMin(const char * value)162     inline ReportGroupTrendStats& WithMin(const char* value) { SetMin(value); return *this;}
163 
164   private:
165 
166     Aws::String m_average;
167     bool m_averageHasBeenSet;
168 
169     Aws::String m_max;
170     bool m_maxHasBeenSet;
171 
172     Aws::String m_min;
173     bool m_minHasBeenSet;
174   };
175 
176 } // namespace Model
177 } // namespace CodeBuild
178 } // namespace Aws
179