AWS SDK for C++  0.14.3
AWS SDK for C++
Run.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
26 
27 namespace Aws
28 {
29 namespace Utils
30 {
31 namespace Json
32 {
33  class JsonValue;
34 } // namespace Json
35 } // namespace Utils
36 namespace DeviceFarm
37 {
38 namespace Model
39 {
40 
46  {
47  public:
48  Run();
49  Run(const Aws::Utils::Json::JsonValue& jsonValue);
50  Run& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
51  Aws::Utils::Json::JsonValue Jsonize() const;
52 
56  inline const Aws::String& GetArn() const{ return m_arn; }
57 
61  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
62 
66  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
67 
71  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
72 
76  inline Run& WithArn(const Aws::String& value) { SetArn(value); return *this;}
77 
81  inline Run& WithArn(Aws::String&& value) { SetArn(value); return *this;}
82 
86  inline Run& WithArn(const char* value) { SetArn(value); return *this;}
87 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline Run& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline Run& WithName(Aws::String&& value) { SetName(value); return *this;}
117 
121  inline Run& WithName(const char* value) { SetName(value); return *this;}
122 
140  inline const TestType& GetType() const{ return m_type; }
141 
159  inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
160 
178  inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = value; }
179 
197  inline Run& WithType(const TestType& value) { SetType(value); return *this;}
198 
216  inline Run& WithType(TestType&& value) { SetType(value); return *this;}
217 
222  inline const DevicePlatform& GetPlatform() const{ return m_platform; }
223 
228  inline void SetPlatform(const DevicePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
229 
234  inline void SetPlatform(DevicePlatform&& value) { m_platformHasBeenSet = true; m_platform = value; }
235 
240  inline Run& WithPlatform(const DevicePlatform& value) { SetPlatform(value); return *this;}
241 
246  inline Run& WithPlatform(DevicePlatform&& value) { SetPlatform(value); return *this;}
247 
251  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
252 
256  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
257 
261  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
262 
266  inline Run& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
267 
271  inline Run& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
272 
282  inline const ExecutionStatus& GetStatus() const{ return m_status; }
283 
293  inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
294 
304  inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
305 
315  inline Run& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
316 
326  inline Run& WithStatus(ExecutionStatus&& value) { SetStatus(value); return *this;}
327 
336  inline const ExecutionResult& GetResult() const{ return m_result; }
337 
346  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
347 
356  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = value; }
357 
366  inline Run& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
367 
376  inline Run& WithResult(ExecutionResult&& value) { SetResult(value); return *this;}
377 
381  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
382 
386  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
387 
391  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = value; }
392 
396  inline Run& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
397 
401  inline Run& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(value); return *this;}
402 
406  inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
407 
411  inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
412 
416  inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
417 
421  inline Run& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
422 
426  inline Run& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(value); return *this;}
427 
431  inline const Counters& GetCounters() const{ return m_counters; }
432 
436  inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
437 
441  inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = value; }
442 
446  inline Run& WithCounters(const Counters& value) { SetCounters(value); return *this;}
447 
451  inline Run& WithCounters(Counters&& value) { SetCounters(value); return *this;}
452 
456  inline const Aws::String& GetMessage() const{ return m_message; }
457 
461  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
462 
466  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
467 
471  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
472 
476  inline Run& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
477 
481  inline Run& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
482 
486  inline Run& WithMessage(const char* value) { SetMessage(value); return *this;}
487 
491  inline int GetTotalJobs() const{ return m_totalJobs; }
492 
496  inline void SetTotalJobs(int value) { m_totalJobsHasBeenSet = true; m_totalJobs = value; }
497 
501  inline Run& WithTotalJobs(int value) { SetTotalJobs(value); return *this;}
502 
506  inline int GetCompletedJobs() const{ return m_completedJobs; }
507 
511  inline void SetCompletedJobs(int value) { m_completedJobsHasBeenSet = true; m_completedJobs = value; }
512 
516  inline Run& WithCompletedJobs(int value) { SetCompletedJobs(value); return *this;}
517 
523  inline const BillingMethod& GetBillingMethod() const{ return m_billingMethod; }
524 
530  inline void SetBillingMethod(const BillingMethod& value) { m_billingMethodHasBeenSet = true; m_billingMethod = value; }
531 
537  inline void SetBillingMethod(BillingMethod&& value) { m_billingMethodHasBeenSet = true; m_billingMethod = value; }
538 
544  inline Run& WithBillingMethod(const BillingMethod& value) { SetBillingMethod(value); return *this;}
545 
551  inline Run& WithBillingMethod(BillingMethod&& value) { SetBillingMethod(value); return *this;}
552 
556  inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
557 
561  inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
562 
566  inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
567 
571  inline Run& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
572 
576  inline Run& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(value); return *this;}
577 
578  private:
579  Aws::String m_arn;
580  bool m_arnHasBeenSet;
581  Aws::String m_name;
582  bool m_nameHasBeenSet;
583  TestType m_type;
584  bool m_typeHasBeenSet;
585  DevicePlatform m_platform;
586  bool m_platformHasBeenSet;
587  Aws::Utils::DateTime m_created;
588  bool m_createdHasBeenSet;
589  ExecutionStatus m_status;
590  bool m_statusHasBeenSet;
591  ExecutionResult m_result;
592  bool m_resultHasBeenSet;
593  Aws::Utils::DateTime m_started;
594  bool m_startedHasBeenSet;
595  Aws::Utils::DateTime m_stopped;
596  bool m_stoppedHasBeenSet;
597  Counters m_counters;
598  bool m_countersHasBeenSet;
599  Aws::String m_message;
600  bool m_messageHasBeenSet;
601  int m_totalJobs;
602  bool m_totalJobsHasBeenSet;
603  int m_completedJobs;
604  bool m_completedJobsHasBeenSet;
605  BillingMethod m_billingMethod;
606  bool m_billingMethodHasBeenSet;
607  DeviceMinutes m_deviceMinutes;
608  bool m_deviceMinutesHasBeenSet;
609  };
610 
611 } // namespace Model
612 } // namespace DeviceFarm
613 } // namespace Aws
Run & WithCreated(Aws::Utils::DateTime &&value)
Definition: Run.h:271
void SetMessage(const char *value)
Definition: Run.h:471
#define AWS_DEVICEFARM_API
void SetBillingMethod(BillingMethod &&value)
Definition: Run.h:537
Run & WithResult(const ExecutionResult &value)
Definition: Run.h:366
void SetMessage(Aws::String &&value)
Definition: Run.h:466
void SetPlatform(DevicePlatform &&value)
Definition: Run.h:234
const Aws::Utils::DateTime & GetStarted() const
Definition: Run.h:381
Run & WithStarted(Aws::Utils::DateTime &&value)
Definition: Run.h:401
Run & WithStatus(const ExecutionStatus &value)
Definition: Run.h:315
void SetPlatform(const DevicePlatform &value)
Definition: Run.h:228
void SetType(const TestType &value)
Definition: Run.h:159
int GetTotalJobs() const
Definition: Run.h:491
const DevicePlatform & GetPlatform() const
Definition: Run.h:222
Run & WithType(TestType &&value)
Definition: Run.h:216
Run & WithStarted(const Aws::Utils::DateTime &value)
Definition: Run.h:396
void SetType(TestType &&value)
Definition: Run.h:178
void SetCounters(Counters &&value)
Definition: Run.h:441
const DeviceMinutes & GetDeviceMinutes() const
Definition: Run.h:556
Run & WithCounters(Counters &&value)
Definition: Run.h:451
void SetArn(Aws::String &&value)
Definition: Run.h:66
const Aws::String & GetArn() const
Definition: Run.h:56
const BillingMethod & GetBillingMethod() const
Definition: Run.h:523
Run & WithDeviceMinutes(DeviceMinutes &&value)
Definition: Run.h:576
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Run.h:256
Run & WithPlatform(DevicePlatform &&value)
Definition: Run.h:246
Run & WithStopped(Aws::Utils::DateTime &&value)
Definition: Run.h:426
void SetArn(const Aws::String &value)
Definition: Run.h:61
void SetStatus(ExecutionStatus &&value)
Definition: Run.h:304
Run & WithArn(const Aws::String &value)
Definition: Run.h:76
Run & WithStopped(const Aws::Utils::DateTime &value)
Definition: Run.h:421
void SetDeviceMinutes(DeviceMinutes &&value)
Definition: Run.h:566
void SetTotalJobs(int value)
Definition: Run.h:496
void SetArn(const char *value)
Definition: Run.h:71
void SetResult(ExecutionResult &&value)
Definition: Run.h:356
Run & WithName(const Aws::String &value)
Definition: Run.h:111
Run & WithType(const TestType &value)
Definition: Run.h:197
Run & WithMessage(Aws::String &&value)
Definition: Run.h:481
void SetDeviceMinutes(const DeviceMinutes &value)
Definition: Run.h:561
int GetCompletedJobs() const
Definition: Run.h:506
void SetName(const Aws::String &value)
Definition: Run.h:96
Run & WithTotalJobs(int value)
Definition: Run.h:501
Run & WithArn(const char *value)
Definition: Run.h:86
Run & WithCreated(const Aws::Utils::DateTime &value)
Definition: Run.h:266
void SetStarted(const Aws::Utils::DateTime &value)
Definition: Run.h:386
Run & WithBillingMethod(BillingMethod &&value)
Definition: Run.h:551
void SetStatus(const ExecutionStatus &value)
Definition: Run.h:293
Run & WithBillingMethod(const BillingMethod &value)
Definition: Run.h:544
const Aws::String & GetName() const
Definition: Run.h:91
Run & WithMessage(const Aws::String &value)
Definition: Run.h:476
const Aws::Utils::DateTime & GetStopped() const
Definition: Run.h:406
const ExecutionStatus & GetStatus() const
Definition: Run.h:282
const Aws::Utils::DateTime & GetCreated() const
Definition: Run.h:251
void SetCompletedJobs(int value)
Definition: Run.h:511
void SetStarted(Aws::Utils::DateTime &&value)
Definition: Run.h:391
void SetResult(const ExecutionResult &value)
Definition: Run.h:346
const TestType & GetType() const
Definition: Run.h:140
void SetCounters(const Counters &value)
Definition: Run.h:436
Run & WithPlatform(const DevicePlatform &value)
Definition: Run.h:240
Run & WithStatus(ExecutionStatus &&value)
Definition: Run.h:326
const Counters & GetCounters() const
Definition: Run.h:431
Run & WithCompletedJobs(int value)
Definition: Run.h:516
Run & WithResult(ExecutionResult &&value)
Definition: Run.h:376
Run & WithArn(Aws::String &&value)
Definition: Run.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Run.h:261
void SetName(const char *value)
Definition: Run.h:106
Run & WithName(Aws::String &&value)
Definition: Run.h:116
const Aws::String & GetMessage() const
Definition: Run.h:456
Run & WithDeviceMinutes(const DeviceMinutes &value)
Definition: Run.h:571
void SetName(Aws::String &&value)
Definition: Run.h:101
Run & WithCounters(const Counters &value)
Definition: Run.h:446
void SetMessage(const Aws::String &value)
Definition: Run.h:461
const ExecutionResult & GetResult() const
Definition: Run.h:336
void SetStopped(const Aws::Utils::DateTime &value)
Definition: Run.h:411
Run & WithName(const char *value)
Definition: Run.h:121
Run & WithMessage(const char *value)
Definition: Run.h:486
JSON (JavaScript Object Notation).
void SetBillingMethod(const BillingMethod &value)
Definition: Run.h:530
void SetStopped(Aws::Utils::DateTime &&value)
Definition: Run.h:416