AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Test.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/TestType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/devicefarm/model/ExecutionStatus.h>
12#include <aws/devicefarm/model/ExecutionResult.h>
13#include <aws/devicefarm/model/Counters.h>
14#include <aws/devicefarm/model/DeviceMinutes.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DeviceFarm
28{
29namespace Model
30{
31
37 class Test
38 {
39 public:
40 AWS_DEVICEFARM_API Test();
41 AWS_DEVICEFARM_API Test(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVICEFARM_API Test& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline Test& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Test& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Test& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Test& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Test& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Test& WithName(const char* value) { SetName(value); return *this;}
73
75
85 inline const TestType& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const TestType& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(TestType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline Test& WithType(const TestType& value) { SetType(value); return *this;}
90 inline Test& WithType(TestType&& value) { SetType(std::move(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
98 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
99 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
100 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
101 inline Test& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
102 inline Test& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
104
106
113 inline const ExecutionStatus& GetStatus() const{ return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
116 inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
117 inline Test& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
118 inline Test& WithStatus(ExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
120
122
128 inline const ExecutionResult& GetResult() const{ return m_result; }
129 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
130 inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
131 inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = std::move(value); }
132 inline Test& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
133 inline Test& WithResult(ExecutionResult&& value) { SetResult(std::move(value)); return *this;}
135
137
140 inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
141 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
142 inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
143 inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
144 inline Test& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
145 inline Test& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
153 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
154 inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
155 inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = std::move(value); }
156 inline Test& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
157 inline Test& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(std::move(value)); return *this;}
159
161
164 inline const Counters& GetCounters() const{ return m_counters; }
165 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
166 inline void SetCounters(const Counters& value) { m_countersHasBeenSet = true; m_counters = value; }
167 inline void SetCounters(Counters&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); }
168 inline Test& WithCounters(const Counters& value) { SetCounters(value); return *this;}
169 inline Test& WithCounters(Counters&& value) { SetCounters(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetMessage() const{ return m_message; }
177 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
178 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
179 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
180 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
181 inline Test& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
182 inline Test& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
183 inline Test& WithMessage(const char* value) { SetMessage(value); return *this;}
185
187
190 inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
191 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
192 inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
193 inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::move(value); }
194 inline Test& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
195 inline Test& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(std::move(value)); return *this;}
197 private:
198
199 Aws::String m_arn;
200 bool m_arnHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 TestType m_type;
206 bool m_typeHasBeenSet = false;
207
208 Aws::Utils::DateTime m_created;
209 bool m_createdHasBeenSet = false;
210
211 ExecutionStatus m_status;
212 bool m_statusHasBeenSet = false;
213
214 ExecutionResult m_result;
215 bool m_resultHasBeenSet = false;
216
217 Aws::Utils::DateTime m_started;
218 bool m_startedHasBeenSet = false;
219
220 Aws::Utils::DateTime m_stopped;
221 bool m_stoppedHasBeenSet = false;
222
223 Counters m_counters;
224 bool m_countersHasBeenSet = false;
225
226 Aws::String m_message;
227 bool m_messageHasBeenSet = false;
228
229 DeviceMinutes m_deviceMinutes;
230 bool m_deviceMinutesHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace DeviceFarm
235} // namespace Aws
bool StartedHasBeenSet() const
Definition Test.h:141
bool StoppedHasBeenSet() const
Definition Test.h:153
void SetStarted(const Aws::Utils::DateTime &value)
Definition Test.h:142
Test & WithCounters(Counters &&value)
Definition Test.h:169
void SetName(const char *value)
Definition Test.h:68
Test & WithStatus(const ExecutionStatus &value)
Definition Test.h:117
const Aws::String & GetName() const
Definition Test.h:64
void SetType(TestType &&value)
Definition Test.h:88
void SetArn(const Aws::String &value)
Definition Test.h:52
Test & WithResult(ExecutionResult &&value)
Definition Test.h:133
void SetDeviceMinutes(DeviceMinutes &&value)
Definition Test.h:193
Test & WithMessage(const char *value)
Definition Test.h:183
bool StatusHasBeenSet() const
Definition Test.h:114
const ExecutionStatus & GetStatus() const
Definition Test.h:113
void SetType(const TestType &value)
Definition Test.h:87
Test & WithStarted(const Aws::Utils::DateTime &value)
Definition Test.h:144
void SetResult(ExecutionResult &&value)
Definition Test.h:131
const TestType & GetType() const
Definition Test.h:85
Test & WithArn(const Aws::String &value)
Definition Test.h:55
void SetStopped(const Aws::Utils::DateTime &value)
Definition Test.h:154
void SetCounters(const Counters &value)
Definition Test.h:166
const Aws::String & GetArn() const
Definition Test.h:50
Test & WithArn(const char *value)
Definition Test.h:57
void SetArn(Aws::String &&value)
Definition Test.h:53
void SetCreated(Aws::Utils::DateTime &&value)
Definition Test.h:100
AWS_DEVICEFARM_API Test()
void SetDeviceMinutes(const DeviceMinutes &value)
Definition Test.h:192
bool CountersHasBeenSet() const
Definition Test.h:165
void SetStatus(const ExecutionStatus &value)
Definition Test.h:115
Test & WithType(TestType &&value)
Definition Test.h:90
Test & WithStopped(const Aws::Utils::DateTime &value)
Definition Test.h:156
Test & WithStatus(ExecutionStatus &&value)
Definition Test.h:118
void SetMessage(const char *value)
Definition Test.h:180
Test & WithDeviceMinutes(DeviceMinutes &&value)
Definition Test.h:195
void SetCounters(Counters &&value)
Definition Test.h:167
const DeviceMinutes & GetDeviceMinutes() const
Definition Test.h:190
Test & WithArn(Aws::String &&value)
Definition Test.h:56
bool ArnHasBeenSet() const
Definition Test.h:51
bool DeviceMinutesHasBeenSet() const
Definition Test.h:191
Test & WithCounters(const Counters &value)
Definition Test.h:168
Test & WithType(const TestType &value)
Definition Test.h:89
bool ResultHasBeenSet() const
Definition Test.h:129
Test & WithStarted(Aws::Utils::DateTime &&value)
Definition Test.h:145
Test & WithCreated(Aws::Utils::DateTime &&value)
Definition Test.h:102
void SetName(const Aws::String &value)
Definition Test.h:66
bool CreatedHasBeenSet() const
Definition Test.h:98
Test & WithDeviceMinutes(const DeviceMinutes &value)
Definition Test.h:194
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Test.h:67
Test & WithName(Aws::String &&value)
Definition Test.h:70
const ExecutionResult & GetResult() const
Definition Test.h:128
void SetMessage(Aws::String &&value)
Definition Test.h:179
void SetArn(const char *value)
Definition Test.h:54
Test & WithName(const Aws::String &value)
Definition Test.h:69
Test & WithCreated(const Aws::Utils::DateTime &value)
Definition Test.h:101
Test & WithMessage(const Aws::String &value)
Definition Test.h:181
Test & WithMessage(Aws::String &&value)
Definition Test.h:182
const Aws::Utils::DateTime & GetStopped() const
Definition Test.h:152
void SetCreated(const Aws::Utils::DateTime &value)
Definition Test.h:99
void SetStarted(Aws::Utils::DateTime &&value)
Definition Test.h:143
bool NameHasBeenSet() const
Definition Test.h:65
AWS_DEVICEFARM_API Test & operator=(Aws::Utils::Json::JsonView jsonValue)
Test & WithName(const char *value)
Definition Test.h:71
const Aws::Utils::DateTime & GetCreated() const
Definition Test.h:97
const Aws::String & GetMessage() const
Definition Test.h:176
bool TypeHasBeenSet() const
Definition Test.h:86
const Aws::Utils::DateTime & GetStarted() const
Definition Test.h:140
bool MessageHasBeenSet() const
Definition Test.h:177
Test & WithStopped(Aws::Utils::DateTime &&value)
Definition Test.h:157
void SetResult(const ExecutionResult &value)
Definition Test.h:130
Test & WithResult(const ExecutionResult &value)
Definition Test.h:132
void SetStopped(Aws::Utils::DateTime &&value)
Definition Test.h:155
AWS_DEVICEFARM_API Test(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ExecutionStatus &&value)
Definition Test.h:116
const Counters & GetCounters() const
Definition Test.h:164
void SetMessage(const Aws::String &value)
Definition Test.h:178
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue