AWS SDK for C++  1.9.154
AWS SDK for C++
Test.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace DeviceFarm
28 {
29 namespace Model
30 {
31 
38  {
39  public:
40  Test();
44 
45 
49  inline const Aws::String& GetArn() const{ return m_arn; }
50 
54  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 
59  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
60 
64  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 
69  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 
74  inline Test& WithArn(const Aws::String& value) { SetArn(value); return *this;}
75 
79  inline Test& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
80 
84  inline Test& WithArn(const char* value) { SetArn(value); return *this;}
85 
86 
90  inline const Aws::String& GetName() const{ return m_name; }
91 
95  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 
100  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
101 
105  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
106 
110  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
111 
115  inline Test& WithName(const Aws::String& value) { SetName(value); return *this;}
116 
120  inline Test& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 
125  inline Test& WithName(const char* value) { SetName(value); return *this;}
126 
127 
142  inline const TestType& GetType() const{ return m_type; }
143 
158  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
159 
174  inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
175 
190  inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
191 
206  inline Test& WithType(const TestType& value) { SetType(value); return *this;}
207 
222  inline Test& WithType(TestType&& value) { SetType(std::move(value)); return *this;}
223 
224 
228  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
229 
233  inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
234 
238  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
239 
243  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
244 
248  inline Test& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
249 
253  inline Test& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
254 
255 
263  inline const ExecutionStatus& GetStatus() const{ return m_status; }
264 
272  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
273 
281  inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
282 
290  inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
291 
299  inline Test& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
300 
308  inline Test& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
309 
310 
317  inline const ExecutionResult& GetResult() const{ return m_result; }
318 
325  inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
326 
333  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
334 
341  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
342 
349  inline Test& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
350 
357  inline Test& WithResult(ExecutionResult&& value) { SetResult(std::move(value)); return *this;}
358 
359 
363  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
364 
368  inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
369 
373  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
374 
378  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
379 
383  inline Test& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
384 
388  inline Test& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
389 
390 
394  inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
395 
399  inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
400 
404  inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
405 
409  inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = std::move(value); }
410 
414  inline Test& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
415 
419  inline Test& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(std::move(value)); return *this;}
420 
421 
425  inline const Counters& GetCounters() const{ return m_counters; }
426 
430  inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
431 
435  inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
436 
440  inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); }
441 
445  inline Test& WithCounters(const Counters& value) { SetCounters(value); return *this;}
446 
450  inline Test& WithCounters(Counters&& value) { SetCounters(std::move(value)); return *this;}
451 
452 
456  inline const Aws::String& GetMessage() const{ return m_message; }
457 
461  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
462 
466  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
467 
471  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
472 
476  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
477 
481  inline Test& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
482 
486  inline Test& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
487 
491  inline Test& WithMessage(const char* value) { SetMessage(value); return *this;}
492 
493 
497  inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
498 
502  inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
503 
507  inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
508 
512  inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::move(value); }
513 
517  inline Test& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
518 
522  inline Test& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(std::move(value)); return *this;}
523 
524  private:
525 
526  Aws::String m_arn;
527  bool m_arnHasBeenSet;
528 
529  Aws::String m_name;
530  bool m_nameHasBeenSet;
531 
532  TestType m_type;
533  bool m_typeHasBeenSet;
534 
535  Aws::Utils::DateTime m_created;
536  bool m_createdHasBeenSet;
537 
538  ExecutionStatus m_status;
539  bool m_statusHasBeenSet;
540 
541  ExecutionResult m_result;
542  bool m_resultHasBeenSet;
543 
544  Aws::Utils::DateTime m_started;
545  bool m_startedHasBeenSet;
546 
547  Aws::Utils::DateTime m_stopped;
548  bool m_stoppedHasBeenSet;
549 
550  Counters m_counters;
551  bool m_countersHasBeenSet;
552 
553  Aws::String m_message;
554  bool m_messageHasBeenSet;
555 
556  DeviceMinutes m_deviceMinutes;
557  bool m_deviceMinutesHasBeenSet;
558  };
559 
560 } // namespace Model
561 } // namespace DeviceFarm
562 } // namespace Aws
Aws::DeviceFarm::Model::Test::WithStopped
Test & WithStopped(Aws::Utils::DateTime &&value)
Definition: Test.h:419
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DeviceFarm::Model::Test::SetResult
void SetResult(ExecutionResult &&value)
Definition: Test.h:341
Aws::DeviceFarm::Model::Test::WithCreated
Test & WithCreated(const Aws::Utils::DateTime &value)
Definition: Test.h:248
Aws::DeviceFarm::Model::Test::SetArn
void SetArn(const char *value)
Definition: Test.h:69
Aws::DeviceFarm::Model::Test::GetName
const Aws::String & GetName() const
Definition: Test.h:90
Aws::DeviceFarm::Model::Test::GetCounters
const Counters & GetCounters() const
Definition: Test.h:425
Aws::DeviceFarm::Model::Test::GetDeviceMinutes
const DeviceMinutes & GetDeviceMinutes() const
Definition: Test.h:497
Aws::DeviceFarm::Model::Test::Test
Test()
Aws::DeviceFarm::Model::Test::SetType
void SetType(TestType &&value)
Definition: Test.h:190
ExecutionStatus.h
Aws::DeviceFarm::Model::Test::WithResult
Test & WithResult(ExecutionResult &&value)
Definition: Test.h:357
Aws::DeviceFarm::Model::Test::WithStopped
Test & WithStopped(const Aws::Utils::DateTime &value)
Definition: Test.h:414
Aws::DeviceFarm::Model::Test::SetName
void SetName(Aws::String &&value)
Definition: Test.h:105
DateTime.h
Aws::DeviceFarm::Model::Test::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Test.h:54
Aws::DeviceFarm::Model::Test::SetCreated
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Test.h:243
Aws::DeviceFarm::Model::Test::SetMessage
void SetMessage(Aws::String &&value)
Definition: Test.h:471
Aws::DeviceFarm::Model::Test::WithStarted
Test & WithStarted(Aws::Utils::DateTime &&value)
Definition: Test.h:388
Aws::DeviceFarm::Model::Test::SetType
void SetType(const TestType &value)
Definition: Test.h:174
Aws::DeviceFarm::Model::Test::WithArn
Test & WithArn(const char *value)
Definition: Test.h:84
Aws::DeviceFarm::Model::ExecutionStatus
ExecutionStatus
Definition: ExecutionStatus.h:17
Aws::DeviceFarm::Model::Test::WithName
Test & WithName(const char *value)
Definition: Test.h:125
Aws::DeviceFarm::Model::Test::WithStatus
Test & WithStatus(const ExecutionStatus &value)
Definition: Test.h:299
Aws::DeviceFarm::Model::Test::SetStatus
void SetStatus(ExecutionStatus &&value)
Definition: Test.h:290
Aws::DeviceFarm::Model::Test::WithDeviceMinutes
Test & WithDeviceMinutes(const DeviceMinutes &value)
Definition: Test.h:517
Aws::DeviceFarm::Model::Test::SetCounters
void SetCounters(Counters &&value)
Definition: Test.h:440
Aws::DeviceFarm::Model::Test::WithCounters
Test & WithCounters(const Counters &value)
Definition: Test.h:445
Aws::DeviceFarm::Model::Test::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: Test.h:461
Aws::DeviceFarm::Model::Test::SetResult
void SetResult(const ExecutionResult &value)
Definition: Test.h:333
Aws::DeviceFarm::Model::Test::WithStatus
Test & WithStatus(ExecutionStatus &&value)
Definition: Test.h:308
Aws::DeviceFarm::Model::Test::SetStatus
void SetStatus(const ExecutionStatus &value)
Definition: Test.h:281
Aws::DeviceFarm::Model::Test::GetCreated
const Aws::Utils::DateTime & GetCreated() const
Definition: Test.h:228
Aws::DeviceFarm::Model::Test::GetArn
const Aws::String & GetArn() const
Definition: Test.h:49
Aws::DeviceFarm::Model::Test::GetStopped
const Aws::Utils::DateTime & GetStopped() const
Definition: Test.h:394
Aws::DeviceFarm::Model::Test::WithMessage
Test & WithMessage(const char *value)
Definition: Test.h:491
Aws::DeviceFarm::Model::Test::SetStopped
void SetStopped(Aws::Utils::DateTime &&value)
Definition: Test.h:409
Aws::DeviceFarm::Model::Test::SetArn
void SetArn(Aws::String &&value)
Definition: Test.h:64
Aws::DeviceFarm::Model::Test::WithMessage
Test & WithMessage(const Aws::String &value)
Definition: Test.h:481
Aws::DeviceFarm::Model::Test::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::Test::WithStarted
Test & WithStarted(const Aws::Utils::DateTime &value)
Definition: Test.h:383
Aws::DeviceFarm::Model::Test::WithDeviceMinutes
Test & WithDeviceMinutes(DeviceMinutes &&value)
Definition: Test.h:522
Aws::DeviceFarm::Model::Test::ResultHasBeenSet
bool ResultHasBeenSet() const
Definition: Test.h:325
Aws::DeviceFarm::Model::Test::SetDeviceMinutes
void SetDeviceMinutes(const DeviceMinutes &value)
Definition: Test.h:507
Aws::DeviceFarm::Model::Test::GetMessage
const Aws::String & GetMessage() const
Definition: Test.h:456
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::Test::SetStopped
void SetStopped(const Aws::Utils::DateTime &value)
Definition: Test.h:404
Aws::DeviceFarm::Model::Test::SetStarted
void SetStarted(const Aws::Utils::DateTime &value)
Definition: Test.h:373
Aws::DeviceFarm::Model::Test::WithName
Test & WithName(const Aws::String &value)
Definition: Test.h:115
Aws::DeviceFarm::Model::Test::WithResult
Test & WithResult(const ExecutionResult &value)
Definition: Test.h:349
Aws::DeviceFarm::Model::Counters
Definition: Counters.h:30
Aws::DeviceFarm::Model::Test::CreatedHasBeenSet
bool CreatedHasBeenSet() const
Definition: Test.h:233
Aws::DeviceFarm::Model::Test::SetCreated
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Test.h:238
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Counters.h
AWSString.h
Aws::DeviceFarm::Model::Test::SetArn
void SetArn(const Aws::String &value)
Definition: Test.h:59
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::Test::GetStatus
const ExecutionStatus & GetStatus() const
Definition: Test.h:263
Aws::DeviceFarm::Model::Test::StoppedHasBeenSet
bool StoppedHasBeenSet() const
Definition: Test.h:399
Aws::DeviceFarm::Model::Test::WithArn
Test & WithArn(Aws::String &&value)
Definition: Test.h:79
Aws::DeviceFarm::Model::Test::SetStarted
void SetStarted(Aws::Utils::DateTime &&value)
Definition: Test.h:378
Aws::DeviceFarm::Model::Test::DeviceMinutesHasBeenSet
bool DeviceMinutesHasBeenSet() const
Definition: Test.h:502
Aws::DeviceFarm::Model::Test::CountersHasBeenSet
bool CountersHasBeenSet() const
Definition: Test.h:430
Aws::DeviceFarm::Model::Test::WithArn
Test & WithArn(const Aws::String &value)
Definition: Test.h:74
Aws::DeviceFarm::Model::Test::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: Test.h:272
Aws::DeviceFarm::Model::Test::WithName
Test & WithName(Aws::String &&value)
Definition: Test.h:120
Aws::DeviceFarm::Model::Test::SetCounters
void SetCounters(const Counters &value)
Definition: Test.h:435
Aws::DeviceFarm::Model::Test
Definition: Test.h:38
Aws::DeviceFarm::Model::TestType
TestType
Definition: TestType.h:17
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::Test::WithType
Test & WithType(TestType &&value)
Definition: Test.h:222
Aws::DeviceFarm::Model::Test::GetResult
const ExecutionResult & GetResult() const
Definition: Test.h:317
Aws::DeviceFarm::Model::Test::SetName
void SetName(const char *value)
Definition: Test.h:110
Aws::DeviceFarm::Model::Test::GetType
const TestType & GetType() const
Definition: Test.h:142
Aws::DeviceFarm::Model::Test::WithCounters
Test & WithCounters(Counters &&value)
Definition: Test.h:450
Aws::DeviceFarm::Model::Test::SetDeviceMinutes
void SetDeviceMinutes(DeviceMinutes &&value)
Definition: Test.h:512
Aws::DeviceFarm::Model::ExecutionResult
ExecutionResult
Definition: ExecutionResult.h:17
Aws::DeviceFarm::Model::Test::SetName
void SetName(const Aws::String &value)
Definition: Test.h:100
Aws::DeviceFarm::Model::Test::WithMessage
Test & WithMessage(Aws::String &&value)
Definition: Test.h:486
Aws::DeviceFarm::Model::Test::WithType
Test & WithType(const TestType &value)
Definition: Test.h:206
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestType.h
Aws::DeviceFarm::Model::Test::WithCreated
Test & WithCreated(Aws::Utils::DateTime &&value)
Definition: Test.h:253
DeviceMinutes.h
Aws::DeviceFarm::Model::Test::SetMessage
void SetMessage(const char *value)
Definition: Test.h:476
Aws::DeviceFarm::Model::Test::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Test.h:158
Aws::DeviceFarm::Model::DeviceMinutes
Definition: DeviceMinutes.h:32
Aws::DeviceFarm::Model::Test::SetMessage
void SetMessage(const Aws::String &value)
Definition: Test.h:466
Aws::DeviceFarm::Model::Test::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Test.h:95
Aws::DeviceFarm::Model::Test::StartedHasBeenSet
bool StartedHasBeenSet() const
Definition: Test.h:368
Aws::DeviceFarm::Model::Test::Test
Test(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::Test::GetStarted
const Aws::Utils::DateTime & GetStarted() const
Definition: Test.h:363
Aws::DeviceFarm::Model::Test::operator=
Test & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionResult.h