AWS SDK for C++  0.14.3
AWS SDK for C++
Test.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
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace DeviceFarm
35 {
36 namespace Model
37 {
38 
43  {
44  public:
45  Test();
46  Test(const Aws::Utils::Json::JsonValue& jsonValue);
47  Test& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetArn() const{ return m_arn; }
54 
58  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
59 
63  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
64 
68  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 
73  inline Test& WithArn(const Aws::String& value) { SetArn(value); return *this;}
74 
78  inline Test& WithArn(Aws::String&& value) { SetArn(value); return *this;}
79 
83  inline Test& WithArn(const char* value) { SetArn(value); return *this;}
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 
108  inline Test& WithName(const Aws::String& value) { SetName(value); return *this;}
109 
113  inline Test& WithName(Aws::String&& value) { SetName(value); return *this;}
114 
118  inline Test& WithName(const char* value) { SetName(value); return *this;}
119 
137  inline const TestType& GetType() const{ return m_type; }
138 
156  inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
157 
175  inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = value; }
176 
194  inline Test& WithType(const TestType& value) { SetType(value); return *this;}
195 
213  inline Test& WithType(TestType&& value) { SetType(value); return *this;}
214 
218  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
219 
223  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
224 
228  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
229 
233  inline Test& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
234 
238  inline Test& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
239 
249  inline const ExecutionStatus& GetStatus() const{ return m_status; }
250 
260  inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
261 
271  inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
272 
282  inline Test& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
283 
293  inline Test& WithStatus(ExecutionStatus&& value) { SetStatus(value); return *this;}
294 
303  inline const ExecutionResult& GetResult() const{ return m_result; }
304 
313  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
314 
323  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = value; }
324 
333  inline Test& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
334 
343  inline Test& WithResult(ExecutionResult&& value) { SetResult(value); return *this;}
344 
348  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
349 
353  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
354 
358  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = value; }
359 
363  inline Test& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
364 
368  inline Test& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(value); return *this;}
369 
373  inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
374 
378  inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
379 
383  inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
384 
388  inline Test& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
389 
393  inline Test& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(value); return *this;}
394 
398  inline const Counters& GetCounters() const{ return m_counters; }
399 
403  inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
404 
408  inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = value; }
409 
413  inline Test& WithCounters(const Counters& value) { SetCounters(value); return *this;}
414 
418  inline Test& WithCounters(Counters&& value) { SetCounters(value); return *this;}
419 
423  inline const Aws::String& GetMessage() const{ return m_message; }
424 
428  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
429 
433  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
434 
438  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
439 
443  inline Test& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
444 
448  inline Test& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
449 
453  inline Test& WithMessage(const char* value) { SetMessage(value); return *this;}
454 
458  inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
459 
463  inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
464 
468  inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
469 
473  inline Test& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
474 
478  inline Test& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(value); return *this;}
479 
480  private:
481  Aws::String m_arn;
482  bool m_arnHasBeenSet;
483  Aws::String m_name;
484  bool m_nameHasBeenSet;
485  TestType m_type;
486  bool m_typeHasBeenSet;
487  Aws::Utils::DateTime m_created;
488  bool m_createdHasBeenSet;
489  ExecutionStatus m_status;
490  bool m_statusHasBeenSet;
491  ExecutionResult m_result;
492  bool m_resultHasBeenSet;
493  Aws::Utils::DateTime m_started;
494  bool m_startedHasBeenSet;
495  Aws::Utils::DateTime m_stopped;
496  bool m_stoppedHasBeenSet;
497  Counters m_counters;
498  bool m_countersHasBeenSet;
499  Aws::String m_message;
500  bool m_messageHasBeenSet;
501  DeviceMinutes m_deviceMinutes;
502  bool m_deviceMinutesHasBeenSet;
503  };
504 
505 } // namespace Model
506 } // namespace DeviceFarm
507 } // namespace Aws
void SetArn(const Aws::String &value)
Definition: Test.h:58
#define AWS_DEVICEFARM_API
void SetName(const char *value)
Definition: Test.h:103
const Aws::Utils::DateTime & GetCreated() const
Definition: Test.h:218
void SetMessage(const char *value)
Definition: Test.h:438
void SetStatus(ExecutionStatus &&value)
Definition: Test.h:271
void SetCounters(Counters &&value)
Definition: Test.h:408
void SetType(const TestType &value)
Definition: Test.h:156
void SetStarted(const Aws::Utils::DateTime &value)
Definition: Test.h:353
const Aws::Utils::DateTime & GetStopped() const
Definition: Test.h:373
const Aws::String & GetMessage() const
Definition: Test.h:423
void SetArn(const char *value)
Definition: Test.h:68
void SetStopped(Aws::Utils::DateTime &&value)
Definition: Test.h:383
Test & WithStarted(const Aws::Utils::DateTime &value)
Definition: Test.h:363
Test & WithArn(Aws::String &&value)
Definition: Test.h:78
Test & WithName(const char *value)
Definition: Test.h:118
Test & WithCreated(const Aws::Utils::DateTime &value)
Definition: Test.h:233
const ExecutionStatus & GetStatus() const
Definition: Test.h:249
const Aws::String & GetArn() const
Definition: Test.h:53
void SetStarted(Aws::Utils::DateTime &&value)
Definition: Test.h:358
void SetDeviceMinutes(const DeviceMinutes &value)
Definition: Test.h:463
Test & WithStatus(ExecutionStatus &&value)
Definition: Test.h:293
Test & WithResult(const ExecutionResult &value)
Definition: Test.h:333
Test & WithName(Aws::String &&value)
Definition: Test.h:113
Test & WithResult(ExecutionResult &&value)
Definition: Test.h:343
void SetName(const Aws::String &value)
Definition: Test.h:93
void SetMessage(const Aws::String &value)
Definition: Test.h:428
Test & WithArn(const char *value)
Definition: Test.h:83
const Aws::Utils::DateTime & GetStarted() const
Definition: Test.h:348
void SetMessage(Aws::String &&value)
Definition: Test.h:433
Test & WithDeviceMinutes(const DeviceMinutes &value)
Definition: Test.h:473
void SetName(Aws::String &&value)
Definition: Test.h:98
void SetStopped(const Aws::Utils::DateTime &value)
Definition: Test.h:378
Test & WithCounters(Counters &&value)
Definition: Test.h:418
void SetDeviceMinutes(DeviceMinutes &&value)
Definition: Test.h:468
void SetCreated(Aws::Utils::DateTime &&value)
Definition: Test.h:228
Test & WithType(TestType &&value)
Definition: Test.h:213
void SetResult(ExecutionResult &&value)
Definition: Test.h:323
Test & WithDeviceMinutes(DeviceMinutes &&value)
Definition: Test.h:478
Test & WithType(const TestType &value)
Definition: Test.h:194
const TestType & GetType() const
Definition: Test.h:137
Test & WithMessage(const Aws::String &value)
Definition: Test.h:443
Test & WithCounters(const Counters &value)
Definition: Test.h:413
void SetType(TestType &&value)
Definition: Test.h:175
const DeviceMinutes & GetDeviceMinutes() const
Definition: Test.h:458
void SetResult(const ExecutionResult &value)
Definition: Test.h:313
Test & WithStopped(const Aws::Utils::DateTime &value)
Definition: Test.h:388
Test & WithStopped(Aws::Utils::DateTime &&value)
Definition: Test.h:393
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCounters(const Counters &value)
Definition: Test.h:403
void SetStatus(const ExecutionStatus &value)
Definition: Test.h:260
Test & WithStatus(const ExecutionStatus &value)
Definition: Test.h:282
const Aws::String & GetName() const
Definition: Test.h:88
Test & WithCreated(Aws::Utils::DateTime &&value)
Definition: Test.h:238
Test & WithMessage(Aws::String &&value)
Definition: Test.h:448
Test & WithArn(const Aws::String &value)
Definition: Test.h:73
const ExecutionResult & GetResult() const
Definition: Test.h:303
Test & WithName(const Aws::String &value)
Definition: Test.h:108
Test & WithStarted(Aws::Utils::DateTime &&value)
Definition: Test.h:368
void SetCreated(const Aws::Utils::DateTime &value)
Definition: Test.h:223
const Counters & GetCounters() const
Definition: Test.h:398
void SetArn(Aws::String &&value)
Definition: Test.h:63
JSON (JavaScript Object Notation).
Test & WithMessage(const char *value)
Definition: Test.h:453