AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
Suite.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/Counters.h>
11#include <aws/devicefarm/model/DeviceMinutes.h>
12#include <aws/devicefarm/model/ExecutionResult.h>
13#include <aws/devicefarm/model/ExecutionStatus.h>
14#include <aws/devicefarm/model/TestType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DeviceFarm {
26namespace Model {
27
33class Suite {
34 public:
35 AWS_DEVICEFARM_API Suite() = default;
36 AWS_DEVICEFARM_API Suite(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API Suite& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 Suite& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Suite& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
87 inline TestType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(TestType value) {
90 m_typeHasBeenSet = true;
91 m_type = value;
92 }
93 inline Suite& WithType(TestType value) {
94 SetType(value);
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
104 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
105 template <typename CreatedT = Aws::Utils::DateTime>
106 void SetCreated(CreatedT&& value) {
107 m_createdHasBeenSet = true;
108 m_created = std::forward<CreatedT>(value);
109 }
110 template <typename CreatedT = Aws::Utils::DateTime>
111 Suite& WithCreated(CreatedT&& value) {
112 SetCreated(std::forward<CreatedT>(value));
113 return *this;
114 }
116
118
125 inline ExecutionStatus GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(ExecutionStatus value) {
128 m_statusHasBeenSet = true;
129 m_status = value;
130 }
132 SetStatus(value);
133 return *this;
134 }
136
138
144 inline ExecutionResult GetResult() const { return m_result; }
145 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
146 inline void SetResult(ExecutionResult value) {
147 m_resultHasBeenSet = true;
148 m_result = value;
149 }
151 SetResult(value);
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
161 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
162 template <typename StartedT = Aws::Utils::DateTime>
163 void SetStarted(StartedT&& value) {
164 m_startedHasBeenSet = true;
165 m_started = std::forward<StartedT>(value);
166 }
167 template <typename StartedT = Aws::Utils::DateTime>
168 Suite& WithStarted(StartedT&& value) {
169 SetStarted(std::forward<StartedT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
179 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
180 template <typename StoppedT = Aws::Utils::DateTime>
181 void SetStopped(StoppedT&& value) {
182 m_stoppedHasBeenSet = true;
183 m_stopped = std::forward<StoppedT>(value);
184 }
185 template <typename StoppedT = Aws::Utils::DateTime>
186 Suite& WithStopped(StoppedT&& value) {
187 SetStopped(std::forward<StoppedT>(value));
188 return *this;
189 }
191
193
196 inline const Counters& GetCounters() const { return m_counters; }
197 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
198 template <typename CountersT = Counters>
199 void SetCounters(CountersT&& value) {
200 m_countersHasBeenSet = true;
201 m_counters = std::forward<CountersT>(value);
202 }
203 template <typename CountersT = Counters>
204 Suite& WithCounters(CountersT&& value) {
205 SetCounters(std::forward<CountersT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetMessage() const { return m_message; }
215 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
216 template <typename MessageT = Aws::String>
217 void SetMessage(MessageT&& value) {
218 m_messageHasBeenSet = true;
219 m_message = std::forward<MessageT>(value);
220 }
221 template <typename MessageT = Aws::String>
222 Suite& WithMessage(MessageT&& value) {
223 SetMessage(std::forward<MessageT>(value));
224 return *this;
225 }
227
229
233 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
234 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
235 template <typename DeviceMinutesT = DeviceMinutes>
236 void SetDeviceMinutes(DeviceMinutesT&& value) {
237 m_deviceMinutesHasBeenSet = true;
238 m_deviceMinutes = std::forward<DeviceMinutesT>(value);
239 }
240 template <typename DeviceMinutesT = DeviceMinutes>
241 Suite& WithDeviceMinutes(DeviceMinutesT&& value) {
242 SetDeviceMinutes(std::forward<DeviceMinutesT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_arn;
248
249 Aws::String m_name;
250
252
253 Aws::Utils::DateTime m_created{};
254
256
258
259 Aws::Utils::DateTime m_started{};
260
261 Aws::Utils::DateTime m_stopped{};
262
263 Counters m_counters;
264
265 Aws::String m_message;
266
267 DeviceMinutes m_deviceMinutes;
268 bool m_arnHasBeenSet = false;
269 bool m_nameHasBeenSet = false;
270 bool m_typeHasBeenSet = false;
271 bool m_createdHasBeenSet = false;
272 bool m_statusHasBeenSet = false;
273 bool m_resultHasBeenSet = false;
274 bool m_startedHasBeenSet = false;
275 bool m_stoppedHasBeenSet = false;
276 bool m_countersHasBeenSet = false;
277 bool m_messageHasBeenSet = false;
278 bool m_deviceMinutesHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace DeviceFarm
283} // namespace Aws
bool StatusHasBeenSet() const
Definition Suite.h:126
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Suite.h:236
Suite & WithStopped(StoppedT &&value)
Definition Suite.h:186
const Aws::String & GetArn() const
Definition Suite.h:44
AWS_DEVICEFARM_API Suite & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionStatus GetStatus() const
Definition Suite.h:125
const Aws::Utils::DateTime & GetStarted() const
Definition Suite.h:160
bool ArnHasBeenSet() const
Definition Suite.h:45
const Aws::String & GetName() const
Definition Suite.h:62
void SetMessage(MessageT &&value)
Definition Suite.h:217
void SetArn(ArnT &&value)
Definition Suite.h:47
bool DeviceMinutesHasBeenSet() const
Definition Suite.h:234
TestType GetType() const
Definition Suite.h:87
const Aws::String & GetMessage() const
Definition Suite.h:214
void SetCounters(CountersT &&value)
Definition Suite.h:199
bool StoppedHasBeenSet() const
Definition Suite.h:179
Suite & WithCounters(CountersT &&value)
Definition Suite.h:204
const DeviceMinutes & GetDeviceMinutes() const
Definition Suite.h:233
Suite & WithStatus(ExecutionStatus value)
Definition Suite.h:131
bool StartedHasBeenSet() const
Definition Suite.h:161
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Suite & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Suite.h:241
void SetStatus(ExecutionStatus value)
Definition Suite.h:127
bool NameHasBeenSet() const
Definition Suite.h:63
void SetResult(ExecutionResult value)
Definition Suite.h:146
bool CreatedHasBeenSet() const
Definition Suite.h:104
AWS_DEVICEFARM_API Suite(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreated() const
Definition Suite.h:103
Suite & WithResult(ExecutionResult value)
Definition Suite.h:150
Suite & WithArn(ArnT &&value)
Definition Suite.h:52
bool MessageHasBeenSet() const
Definition Suite.h:215
AWS_DEVICEFARM_API Suite()=default
const Aws::Utils::DateTime & GetStopped() const
Definition Suite.h:178
Suite & WithType(TestType value)
Definition Suite.h:93
void SetName(NameT &&value)
Definition Suite.h:65
void SetStarted(StartedT &&value)
Definition Suite.h:163
ExecutionResult GetResult() const
Definition Suite.h:144
Suite & WithStarted(StartedT &&value)
Definition Suite.h:168
bool CountersHasBeenSet() const
Definition Suite.h:197
void SetType(TestType value)
Definition Suite.h:89
bool TypeHasBeenSet() const
Definition Suite.h:88
const Counters & GetCounters() const
Definition Suite.h:196
bool ResultHasBeenSet() const
Definition Suite.h:145
void SetStopped(StoppedT &&value)
Definition Suite.h:181
Suite & WithName(NameT &&value)
Definition Suite.h:70
void SetCreated(CreatedT &&value)
Definition Suite.h:106
Suite & WithMessage(MessageT &&value)
Definition Suite.h:222
Suite & WithCreated(CreatedT &&value)
Definition Suite.h:111
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue