AWS SDK for C++  0.12.9
AWS SDK for C++
Job.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
25 
26 namespace Aws
27 {
28 namespace Utils
29 {
30 namespace Json
31 {
32  class JsonValue;
33 } // namespace Json
34 } // namespace Utils
35 namespace DeviceFarm
36 {
37 namespace Model
38 {
39 
44  {
45  public:
46  Job();
47  Job(const Aws::Utils::Json::JsonValue& jsonValue);
48  Job& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
54  inline const Aws::String& GetArn() const{ return m_arn; }
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 = value; }
65 
69  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 
74  inline Job& WithArn(const Aws::String& value) { SetArn(value); return *this;}
75 
79  inline Job& WithArn(Aws::String&& value) { SetArn(value); return *this;}
80 
84  inline Job& WithArn(const char* value) { SetArn(value); return *this;}
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 
109  inline Job& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline Job& WithName(Aws::String&& value) { SetName(value); return *this;}
115 
119  inline Job& WithName(const char* value) { SetName(value); return *this;}
120 
138  inline const TestType& GetType() const{ return m_type; }
139 
157  inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
158 
176  inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = value; }
177 
195  inline Job& WithType(const TestType& value) { SetType(value); return *this;}
196 
214  inline Job& WithType(TestType&& value) { SetType(value); return *this;}
215 
219  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
220 
224  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
225 
229  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
230 
234  inline Job& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
235 
239  inline Job& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
240 
250  inline const ExecutionStatus& GetStatus() const{ return m_status; }
251 
261  inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
262 
272  inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
273 
283  inline Job& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
284 
294  inline Job& WithStatus(ExecutionStatus&& value) { SetStatus(value); return *this;}
295 
304  inline const ExecutionResult& GetResult() const{ return m_result; }
305 
314  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
315 
324  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = value; }
325 
334  inline Job& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
335 
344  inline Job& WithResult(ExecutionResult&& value) { SetResult(value); return *this;}
345 
349  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
350 
354  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
355 
359  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = value; }
360 
364  inline Job& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
365 
369  inline Job& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(value); return *this;}
370 
374  inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
375 
379  inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
380 
384  inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
385 
389  inline Job& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
390 
394  inline Job& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(value); return *this;}
395 
399  inline const Counters& GetCounters() const{ return m_counters; }
400 
404  inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
405 
409  inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = value; }
410 
414  inline Job& WithCounters(const Counters& value) { SetCounters(value); return *this;}
415 
419  inline Job& WithCounters(Counters&& value) { SetCounters(value); return *this;}
420 
424  inline const Aws::String& GetMessage() const{ return m_message; }
425 
429  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
430 
434  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
435 
439  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
440 
444  inline Job& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
445 
449  inline Job& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
450 
454  inline Job& WithMessage(const char* value) { SetMessage(value); return *this;}
455 
456 
457  inline const Device& GetDevice() const{ return m_device; }
458 
459 
460  inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
461 
462 
463  inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = value; }
464 
465 
466  inline Job& WithDevice(const Device& value) { SetDevice(value); return *this;}
467 
468 
469  inline Job& WithDevice(Device&& value) { SetDevice(value); return *this;}
470 
474  inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
475 
479  inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
480 
484  inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
485 
489  inline Job& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
490 
494  inline Job& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(value); return *this;}
495 
496  private:
497  Aws::String m_arn;
498  bool m_arnHasBeenSet;
499  Aws::String m_name;
500  bool m_nameHasBeenSet;
501  TestType m_type;
502  bool m_typeHasBeenSet;
503  Aws::Utils::DateTime m_created;
504  bool m_createdHasBeenSet;
505  ExecutionStatus m_status;
506  bool m_statusHasBeenSet;
507  ExecutionResult m_result;
508  bool m_resultHasBeenSet;
509  Aws::Utils::DateTime m_started;
510  bool m_startedHasBeenSet;
511  Aws::Utils::DateTime m_stopped;
512  bool m_stoppedHasBeenSet;
513  Counters m_counters;
514  bool m_countersHasBeenSet;
515  Aws::String m_message;
516  bool m_messageHasBeenSet;
517  Device m_device;
518  bool m_deviceHasBeenSet;
519  DeviceMinutes m_deviceMinutes;
520  bool m_deviceMinutesHasBeenSet;
521  };
522 
523 } // namespace Model
524 } // namespace DeviceFarm
525 } // namespace Aws
Job & WithMessage(const Aws::String &value)
Definition: Job.h:444
#define AWS_DEVICEFARM_API
Job & WithStatus(const ExecutionStatus &value)
Definition: Job.h:283
Job & WithCreated(const Aws::Utils::DateTime &value)
Definition: Job.h:234
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Job.h:224
Job & WithStopped(Aws::Utils::DateTime &&value)
Definition: Job.h:394
const Aws::Utils::DateTime & GetCreated() const
Definition: Job.h:219
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Job.h:229
Job & WithDeviceMinutes(const DeviceMinutes &value)
Definition: Job.h:489
void SetStatus(const ExecutionStatus &value)
Definition: Job.h:261
Job & WithMessage(const char *value)
Definition: Job.h:454
Job & WithName(const Aws::String &value)
Definition: Job.h:109
Job & WithStarted(Aws::Utils::DateTime &&value)
Definition: Job.h:369
Job & WithName(const char *value)
Definition: Job.h:119
const Aws::String & GetArn() const
Definition: Job.h:54
void SetMessage(const char *value)
Definition: Job.h:439
Job & WithName(Aws::String &&value)
Definition: Job.h:114
void SetCounters(const Counters &value)
Definition: Job.h:404
void SetDevice(Device &&value)
Definition: Job.h:463
void SetArn(Aws::String &&value)
Definition: Job.h:64
Job & WithMessage(Aws::String &&value)
Definition: Job.h:449
Job & WithStatus(ExecutionStatus &&value)
Definition: Job.h:294
Job & WithDevice(const Device &value)
Definition: Job.h:466
void SetName(Aws::String &&value)
Definition: Job.h:99
void SetStopped(const Aws::Utils::DateTime &value)
Definition: Job.h:379
Job & WithType(TestType &&value)
Definition: Job.h:214
void SetName(const Aws::String &value)
Definition: Job.h:94
const Counters & GetCounters() const
Definition: Job.h:399
Job & WithDevice(Device &&value)
Definition: Job.h:469
void SetStarted(const Aws::Utils::DateTime &value)
Definition: Job.h:354
const Aws::String & GetName() const
Definition: Job.h:89
void SetDeviceMinutes(const DeviceMinutes &value)
Definition: Job.h:479
const Aws::Utils::DateTime & GetStarted() const
Definition: Job.h:349
Job & WithStarted(const Aws::Utils::DateTime &value)
Definition: Job.h:364
const Aws::String & GetMessage() const
Definition: Job.h:424
void SetMessage(const Aws::String &value)
Definition: Job.h:429
Job & WithStopped(const Aws::Utils::DateTime &value)
Definition: Job.h:389
void SetStopped(Aws::Utils::DateTime &&value)
Definition: Job.h:384
const DeviceMinutes & GetDeviceMinutes() const
Definition: Job.h:474
Job & WithArn(const char *value)
Definition: Job.h:84
void SetName(const char *value)
Definition: Job.h:104
void SetArn(const char *value)
Definition: Job.h:69
const ExecutionStatus & GetStatus() const
Definition: Job.h:250
Job & WithResult(ExecutionResult &&value)
Definition: Job.h:344
Job & WithCreated(Aws::Utils::DateTime &&value)
Definition: Job.h:239
Job & WithCounters(const Counters &value)
Definition: Job.h:414
Job & WithDeviceMinutes(DeviceMinutes &&value)
Definition: Job.h:494
void SetResult(const ExecutionResult &value)
Definition: Job.h:314
void SetMessage(Aws::String &&value)
Definition: Job.h:434
const Device & GetDevice() const
Definition: Job.h:457
Job & WithArn(Aws::String &&value)
Definition: Job.h:79
void SetDevice(const Device &value)
Definition: Job.h:460
Job & WithCounters(Counters &&value)
Definition: Job.h:419
void SetDeviceMinutes(DeviceMinutes &&value)
Definition: Job.h:484
Job & WithType(const TestType &value)
Definition: Job.h:195
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Job & WithResult(const ExecutionResult &value)
Definition: Job.h:334
void SetArn(const Aws::String &value)
Definition: Job.h:59
void SetStatus(ExecutionStatus &&value)
Definition: Job.h:272
void SetType(const TestType &value)
Definition: Job.h:157
void SetCounters(Counters &&value)
Definition: Job.h:409
void SetStarted(Aws::Utils::DateTime &&value)
Definition: Job.h:359
void SetType(TestType &&value)
Definition: Job.h:176
void SetResult(ExecutionResult &&value)
Definition: Job.h:324
Job & WithArn(const Aws::String &value)
Definition: Job.h:74
const TestType & GetType() const
Definition: Job.h:138
const ExecutionResult & GetResult() const
Definition: Job.h:304
const Aws::Utils::DateTime & GetStopped() const
Definition: Job.h:374
JSON (JavaScript Object Notation).