AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
JobReportMetrics.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 JobReportMetrics() = default;
28 AWS_DEVICEFARM_API JobReportMetrics(Aws::Utils::Json::JsonView jsonValue);
30 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetJobsTotal() const { return m_jobsTotal; }
37 inline bool JobsTotalHasBeenSet() const { return m_jobsTotalHasBeenSet; }
38 inline void SetJobsTotal(int value) {
39 m_jobsTotalHasBeenSet = true;
40 m_jobsTotal = value;
41 }
42 inline JobReportMetrics& WithJobsTotal(int value) {
43 SetJobsTotal(value);
44 return *this;
45 }
47
49
52 inline int GetJobsPassed() const { return m_jobsPassed; }
53 inline bool JobsPassedHasBeenSet() const { return m_jobsPassedHasBeenSet; }
54 inline void SetJobsPassed(int value) {
55 m_jobsPassedHasBeenSet = true;
56 m_jobsPassed = value;
57 }
58 inline JobReportMetrics& WithJobsPassed(int value) {
59 SetJobsPassed(value);
60 return *this;
61 }
63
65
68 inline int GetJobsFailed() const { return m_jobsFailed; }
69 inline bool JobsFailedHasBeenSet() const { return m_jobsFailedHasBeenSet; }
70 inline void SetJobsFailed(int value) {
71 m_jobsFailedHasBeenSet = true;
72 m_jobsFailed = value;
73 }
74 inline JobReportMetrics& WithJobsFailed(int value) {
75 SetJobsFailed(value);
76 return *this;
77 }
79
81
84 inline int GetJobsSkipped() const { return m_jobsSkipped; }
85 inline bool JobsSkippedHasBeenSet() const { return m_jobsSkippedHasBeenSet; }
86 inline void SetJobsSkipped(int value) {
87 m_jobsSkippedHasBeenSet = true;
88 m_jobsSkipped = value;
89 }
90 inline JobReportMetrics& WithJobsSkipped(int value) {
91 SetJobsSkipped(value);
92 return *this;
93 }
95
97
100 inline int GetJobsErrored() const { return m_jobsErrored; }
101 inline bool JobsErroredHasBeenSet() const { return m_jobsErroredHasBeenSet; }
102 inline void SetJobsErrored(int value) {
103 m_jobsErroredHasBeenSet = true;
104 m_jobsErrored = value;
105 }
107 SetJobsErrored(value);
108 return *this;
109 }
111
113
116 inline int GetJobsStopped() const { return m_jobsStopped; }
117 inline bool JobsStoppedHasBeenSet() const { return m_jobsStoppedHasBeenSet; }
118 inline void SetJobsStopped(int value) {
119 m_jobsStoppedHasBeenSet = true;
120 m_jobsStopped = value;
121 }
123 SetJobsStopped(value);
124 return *this;
125 }
127
129
132 inline double GetJobsPassedPercentage() const { return m_jobsPassedPercentage; }
133 inline bool JobsPassedPercentageHasBeenSet() const { return m_jobsPassedPercentageHasBeenSet; }
134 inline void SetJobsPassedPercentage(double value) {
135 m_jobsPassedPercentageHasBeenSet = true;
136 m_jobsPassedPercentage = value;
137 }
140 return *this;
141 }
143
145
148 inline double GetTotalJobExecutionDurationSeconds() const { return m_totalJobExecutionDurationSeconds; }
149 inline bool TotalJobExecutionDurationSecondsHasBeenSet() const { return m_totalJobExecutionDurationSecondsHasBeenSet; }
150 inline void SetTotalJobExecutionDurationSeconds(double value) {
151 m_totalJobExecutionDurationSecondsHasBeenSet = true;
152 m_totalJobExecutionDurationSeconds = value;
153 }
156 return *this;
157 }
159
161
164 inline double GetAverageJobExecutionDurationSeconds() const { return m_averageJobExecutionDurationSeconds; }
165 inline bool AverageJobExecutionDurationSecondsHasBeenSet() const { return m_averageJobExecutionDurationSecondsHasBeenSet; }
166 inline void SetAverageJobExecutionDurationSeconds(double value) {
167 m_averageJobExecutionDurationSecondsHasBeenSet = true;
168 m_averageJobExecutionDurationSeconds = value;
169 }
172 return *this;
173 }
175
177
180 inline double GetMedianJobExecutionDurationSeconds() const { return m_medianJobExecutionDurationSeconds; }
181 inline bool MedianJobExecutionDurationSecondsHasBeenSet() const { return m_medianJobExecutionDurationSecondsHasBeenSet; }
182 inline void SetMedianJobExecutionDurationSeconds(double value) {
183 m_medianJobExecutionDurationSecondsHasBeenSet = true;
184 m_medianJobExecutionDurationSeconds = value;
185 }
188 return *this;
189 }
191 private:
192 int m_jobsTotal{0};
193
194 int m_jobsPassed{0};
195
196 int m_jobsFailed{0};
197
198 int m_jobsSkipped{0};
199
200 int m_jobsErrored{0};
201
202 int m_jobsStopped{0};
203
204 double m_jobsPassedPercentage{0.0};
205
206 double m_totalJobExecutionDurationSeconds{0.0};
207
208 double m_averageJobExecutionDurationSeconds{0.0};
209
210 double m_medianJobExecutionDurationSeconds{0.0};
211 bool m_jobsTotalHasBeenSet = false;
212 bool m_jobsPassedHasBeenSet = false;
213 bool m_jobsFailedHasBeenSet = false;
214 bool m_jobsSkippedHasBeenSet = false;
215 bool m_jobsErroredHasBeenSet = false;
216 bool m_jobsStoppedHasBeenSet = false;
217 bool m_jobsPassedPercentageHasBeenSet = false;
218 bool m_totalJobExecutionDurationSecondsHasBeenSet = false;
219 bool m_averageJobExecutionDurationSecondsHasBeenSet = false;
220 bool m_medianJobExecutionDurationSecondsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace DeviceFarm
225} // namespace Aws
JobReportMetrics & WithJobsStopped(int value)
AWS_DEVICEFARM_API JobReportMetrics & operator=(Aws::Utils::Json::JsonView jsonValue)
JobReportMetrics & WithAverageJobExecutionDurationSeconds(double value)
JobReportMetrics & WithJobsErrored(int value)
JobReportMetrics & WithMedianJobExecutionDurationSeconds(double value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
JobReportMetrics & WithJobsTotal(int value)
JobReportMetrics & WithJobsFailed(int value)
JobReportMetrics & WithJobsPassedPercentage(double value)
JobReportMetrics & WithTotalJobExecutionDurationSeconds(double value)
JobReportMetrics & WithJobsSkipped(int value)
AWS_DEVICEFARM_API JobReportMetrics(Aws::Utils::Json::JsonView jsonValue)
JobReportMetrics & WithJobsPassed(int value)
AWS_DEVICEFARM_API JobReportMetrics()=default
Aws::Utils::Json::JsonValue JsonValue