AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
TestReportMetrics.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace DeviceFarm {
17namespace Model {
18
26 public:
27 AWS_DEVICEFARM_API TestReportMetrics() = default;
28 AWS_DEVICEFARM_API TestReportMetrics(Aws::Utils::Json::JsonView jsonValue);
30 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetTestsTotal() const { return m_testsTotal; }
37 inline bool TestsTotalHasBeenSet() const { return m_testsTotalHasBeenSet; }
38 inline void SetTestsTotal(int value) {
39 m_testsTotalHasBeenSet = true;
40 m_testsTotal = value;
41 }
42 inline TestReportMetrics& WithTestsTotal(int value) {
43 SetTestsTotal(value);
44 return *this;
45 }
47
49
52 inline int GetTestsPassed() const { return m_testsPassed; }
53 inline bool TestsPassedHasBeenSet() const { return m_testsPassedHasBeenSet; }
54 inline void SetTestsPassed(int value) {
55 m_testsPassedHasBeenSet = true;
56 m_testsPassed = value;
57 }
59 SetTestsPassed(value);
60 return *this;
61 }
63
65
68 inline int GetTestsFailed() const { return m_testsFailed; }
69 inline bool TestsFailedHasBeenSet() const { return m_testsFailedHasBeenSet; }
70 inline void SetTestsFailed(int value) {
71 m_testsFailedHasBeenSet = true;
72 m_testsFailed = value;
73 }
75 SetTestsFailed(value);
76 return *this;
77 }
79
81
84 inline int GetTestsSkipped() const { return m_testsSkipped; }
85 inline bool TestsSkippedHasBeenSet() const { return m_testsSkippedHasBeenSet; }
86 inline void SetTestsSkipped(int value) {
87 m_testsSkippedHasBeenSet = true;
88 m_testsSkipped = value;
89 }
91 SetTestsSkipped(value);
92 return *this;
93 }
95
97
100 inline int GetTestsErrored() const { return m_testsErrored; }
101 inline bool TestsErroredHasBeenSet() const { return m_testsErroredHasBeenSet; }
102 inline void SetTestsErrored(int value) {
103 m_testsErroredHasBeenSet = true;
104 m_testsErrored = value;
105 }
107 SetTestsErrored(value);
108 return *this;
109 }
111
113
116 inline int GetTestsOther() const { return m_testsOther; }
117 inline bool TestsOtherHasBeenSet() const { return m_testsOtherHasBeenSet; }
118 inline void SetTestsOther(int value) {
119 m_testsOtherHasBeenSet = true;
120 m_testsOther = value;
121 }
123 SetTestsOther(value);
124 return *this;
125 }
127
129
132 inline double GetTestsPassedPercentage() const { return m_testsPassedPercentage; }
133 inline bool TestsPassedPercentageHasBeenSet() const { return m_testsPassedPercentageHasBeenSet; }
134 inline void SetTestsPassedPercentage(double value) {
135 m_testsPassedPercentageHasBeenSet = true;
136 m_testsPassedPercentage = value;
137 }
140 return *this;
141 }
143
145
148 inline double GetTotalTestExecutionDurationSeconds() const { return m_totalTestExecutionDurationSeconds; }
149 inline bool TotalTestExecutionDurationSecondsHasBeenSet() const { return m_totalTestExecutionDurationSecondsHasBeenSet; }
150 inline void SetTotalTestExecutionDurationSeconds(double value) {
151 m_totalTestExecutionDurationSecondsHasBeenSet = true;
152 m_totalTestExecutionDurationSeconds = value;
153 }
156 return *this;
157 }
159
161
164 inline double GetMedianTestExecutionDurationSeconds() const { return m_medianTestExecutionDurationSeconds; }
165 inline bool MedianTestExecutionDurationSecondsHasBeenSet() const { return m_medianTestExecutionDurationSecondsHasBeenSet; }
166 inline void SetMedianTestExecutionDurationSeconds(double value) {
167 m_medianTestExecutionDurationSecondsHasBeenSet = true;
168 m_medianTestExecutionDurationSeconds = value;
169 }
172 return *this;
173 }
175 private:
176 int m_testsTotal{0};
177
178 int m_testsPassed{0};
179
180 int m_testsFailed{0};
181
182 int m_testsSkipped{0};
183
184 int m_testsErrored{0};
185
186 int m_testsOther{0};
187
188 double m_testsPassedPercentage{0.0};
189
190 double m_totalTestExecutionDurationSeconds{0.0};
191
192 double m_medianTestExecutionDurationSeconds{0.0};
193 bool m_testsTotalHasBeenSet = false;
194 bool m_testsPassedHasBeenSet = false;
195 bool m_testsFailedHasBeenSet = false;
196 bool m_testsSkippedHasBeenSet = false;
197 bool m_testsErroredHasBeenSet = false;
198 bool m_testsOtherHasBeenSet = false;
199 bool m_testsPassedPercentageHasBeenSet = false;
200 bool m_totalTestExecutionDurationSecondsHasBeenSet = false;
201 bool m_medianTestExecutionDurationSecondsHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace DeviceFarm
206} // namespace Aws
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API TestReportMetrics()=default
TestReportMetrics & WithTestsSkipped(int value)
TestReportMetrics & WithTestsTotal(int value)
TestReportMetrics & WithTestsErrored(int value)
TestReportMetrics & WithMedianTestExecutionDurationSeconds(double value)
TestReportMetrics & WithTestsFailed(int value)
TestReportMetrics & WithTotalTestExecutionDurationSeconds(double value)
TestReportMetrics & WithTestsPassed(int value)
AWS_DEVICEFARM_API TestReportMetrics(Aws::Utils::Json::JsonView jsonValue)
TestReportMetrics & WithTestsPassedPercentage(double value)
TestReportMetrics & WithTestsOther(int value)
AWS_DEVICEFARM_API TestReportMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue