AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Counters.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
24class Counters {
25 public:
26 AWS_DEVICEFARM_API Counters() = default;
27 AWS_DEVICEFARM_API Counters(Aws::Utils::Json::JsonView jsonValue);
28 AWS_DEVICEFARM_API Counters& operator=(Aws::Utils::Json::JsonView jsonValue);
29 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline int GetTotal() const { return m_total; }
36 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
37 inline void SetTotal(int value) {
38 m_totalHasBeenSet = true;
39 m_total = value;
40 }
41 inline Counters& WithTotal(int value) {
42 SetTotal(value);
43 return *this;
44 }
46
48
51 inline int GetPassed() const { return m_passed; }
52 inline bool PassedHasBeenSet() const { return m_passedHasBeenSet; }
53 inline void SetPassed(int value) {
54 m_passedHasBeenSet = true;
55 m_passed = value;
56 }
57 inline Counters& WithPassed(int value) {
58 SetPassed(value);
59 return *this;
60 }
62
64
67 inline int GetFailed() const { return m_failed; }
68 inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; }
69 inline void SetFailed(int value) {
70 m_failedHasBeenSet = true;
71 m_failed = value;
72 }
73 inline Counters& WithFailed(int value) {
74 SetFailed(value);
75 return *this;
76 }
78
80
83 inline int GetWarned() const { return m_warned; }
84 inline bool WarnedHasBeenSet() const { return m_warnedHasBeenSet; }
85 inline void SetWarned(int value) {
86 m_warnedHasBeenSet = true;
87 m_warned = value;
88 }
89 inline Counters& WithWarned(int value) {
90 SetWarned(value);
91 return *this;
92 }
94
96
99 inline int GetErrored() const { return m_errored; }
100 inline bool ErroredHasBeenSet() const { return m_erroredHasBeenSet; }
101 inline void SetErrored(int value) {
102 m_erroredHasBeenSet = true;
103 m_errored = value;
104 }
105 inline Counters& WithErrored(int value) {
106 SetErrored(value);
107 return *this;
108 }
110
112
115 inline int GetStopped() const { return m_stopped; }
116 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
117 inline void SetStopped(int value) {
118 m_stoppedHasBeenSet = true;
119 m_stopped = value;
120 }
121 inline Counters& WithStopped(int value) {
122 SetStopped(value);
123 return *this;
124 }
126
128
131 inline int GetSkipped() const { return m_skipped; }
132 inline bool SkippedHasBeenSet() const { return m_skippedHasBeenSet; }
133 inline void SetSkipped(int value) {
134 m_skippedHasBeenSet = true;
135 m_skipped = value;
136 }
137 inline Counters& WithSkipped(int value) {
138 SetSkipped(value);
139 return *this;
140 }
142 private:
143 int m_total{0};
144
145 int m_passed{0};
146
147 int m_failed{0};
148
149 int m_warned{0};
150
151 int m_errored{0};
152
153 int m_stopped{0};
154
155 int m_skipped{0};
156 bool m_totalHasBeenSet = false;
157 bool m_passedHasBeenSet = false;
158 bool m_failedHasBeenSet = false;
159 bool m_warnedHasBeenSet = false;
160 bool m_erroredHasBeenSet = false;
161 bool m_stoppedHasBeenSet = false;
162 bool m_skippedHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace DeviceFarm
167} // namespace Aws
Counters & WithWarned(int value)
Definition Counters.h:89
Counters & WithFailed(int value)
Definition Counters.h:73
AWS_DEVICEFARM_API Counters()=default
Counters & WithSkipped(int value)
Definition Counters.h:137
AWS_DEVICEFARM_API Counters(Aws::Utils::Json::JsonView jsonValue)
Counters & WithPassed(int value)
Definition Counters.h:57
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Counters & WithErrored(int value)
Definition Counters.h:105
Counters & WithStopped(int value)
Definition Counters.h:121
AWS_DEVICEFARM_API Counters & operator=(Aws::Utils::Json::JsonView jsonValue)
Counters & WithTotal(int value)
Definition Counters.h:41
Aws::Utils::Json::JsonValue JsonValue