AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 Test& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 Test& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
81 inline TestType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(TestType value) { m_typeHasBeenSet = true; m_type = value; }
84 inline Test& WithType(TestType value) { SetType(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
92 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
93 template<typename CreatedT = Aws::Utils::DateTime>
94 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
95 template<typename CreatedT = Aws::Utils::DateTime>
96 Test& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
98
100
107 inline ExecutionStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(ExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline Test& WithStatus(ExecutionStatus value) { SetStatus(value); return *this;}
112
114
120 inline ExecutionResult GetResult() const { return m_result; }
121 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
122 inline void SetResult(ExecutionResult value) { m_resultHasBeenSet = true; m_result = value; }
123 inline Test& WithResult(ExecutionResult value) { SetResult(value); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
131 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
132 template<typename StartedT = Aws::Utils::DateTime>
133 void SetStarted(StartedT&& value) { m_startedHasBeenSet = true; m_started = std::forward<StartedT>(value); }
134 template<typename StartedT = Aws::Utils::DateTime>
135 Test& WithStarted(StartedT&& value) { SetStarted(std::forward<StartedT>(value)); return *this;}
137
139
142 inline const Aws::Utils::DateTime& GetStopped() const { return m_stopped; }
143 inline bool StoppedHasBeenSet() const { return m_stoppedHasBeenSet; }
144 template<typename StoppedT = Aws::Utils::DateTime>
145 void SetStopped(StoppedT&& value) { m_stoppedHasBeenSet = true; m_stopped = std::forward<StoppedT>(value); }
146 template<typename StoppedT = Aws::Utils::DateTime>
147 Test& WithStopped(StoppedT&& value) { SetStopped(std::forward<StoppedT>(value)); return *this;}
149
151
154 inline const Counters& GetCounters() const { return m_counters; }
155 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
156 template<typename CountersT = Counters>
157 void SetCounters(CountersT&& value) { m_countersHasBeenSet = true; m_counters = std::forward<CountersT>(value); }
158 template<typename CountersT = Counters>
159 Test& WithCounters(CountersT&& value) { SetCounters(std::forward<CountersT>(value)); return *this;}
161
163
166 inline const Aws::String& GetMessage() const { return m_message; }
167 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
168 template<typename MessageT = Aws::String>
169 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
170 template<typename MessageT = Aws::String>
171 Test& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
173
175
178 inline const DeviceMinutes& GetDeviceMinutes() const { return m_deviceMinutes; }
179 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
180 template<typename DeviceMinutesT = DeviceMinutes>
181 void SetDeviceMinutes(DeviceMinutesT&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::forward<DeviceMinutesT>(value); }
182 template<typename DeviceMinutesT = DeviceMinutes>
183 Test& WithDeviceMinutes(DeviceMinutesT&& value) { SetDeviceMinutes(std::forward<DeviceMinutesT>(value)); return *this;}
185 private:
186
187 Aws::String m_arn;
188 bool m_arnHasBeenSet = false;
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
194 bool m_typeHasBeenSet = false;
195
196 Aws::Utils::DateTime m_created{};
197 bool m_createdHasBeenSet = false;
198
200 bool m_statusHasBeenSet = false;
201
203 bool m_resultHasBeenSet = false;
204
205 Aws::Utils::DateTime m_started{};
206 bool m_startedHasBeenSet = false;
207
208 Aws::Utils::DateTime m_stopped{};
209 bool m_stoppedHasBeenSet = false;
210
211 Counters m_counters;
212 bool m_countersHasBeenSet = false;
213
214 Aws::String m_message;
215 bool m_messageHasBeenSet = false;
216
217 DeviceMinutes m_deviceMinutes;
218 bool m_deviceMinutesHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace DeviceFarm
223} // namespace Aws
void SetResult(ExecutionResult value)
Definition Test.h:122
bool StartedHasBeenSet() const
Definition Test.h:131
bool StoppedHasBeenSet() const
Definition Test.h:143
void SetStatus(ExecutionStatus value)
Definition Test.h:109
void SetCreated(CreatedT &&value)
Definition Test.h:94
const Aws::String & GetName() const
Definition Test.h:62
Test & WithStatus(ExecutionStatus value)
Definition Test.h:110
bool StatusHasBeenSet() const
Definition Test.h:108
ExecutionStatus GetStatus() const
Definition Test.h:107
AWS_DEVICEFARM_API Test()=default
void SetType(TestType value)
Definition Test.h:83
void SetStopped(StoppedT &&value)
Definition Test.h:145
const Aws::String & GetArn() const
Definition Test.h:50
bool CountersHasBeenSet() const
Definition Test.h:155
void SetName(NameT &&value)
Definition Test.h:65
void SetDeviceMinutes(DeviceMinutesT &&value)
Definition Test.h:181
TestType GetType() const
Definition Test.h:81
const DeviceMinutes & GetDeviceMinutes() const
Definition Test.h:178
bool ArnHasBeenSet() const
Definition Test.h:51
bool DeviceMinutesHasBeenSet() const
Definition Test.h:179
bool ResultHasBeenSet() const
Definition Test.h:121
Test & WithArn(ArnT &&value)
Definition Test.h:55
bool CreatedHasBeenSet() const
Definition Test.h:92
Test & WithDeviceMinutes(DeviceMinutesT &&value)
Definition Test.h:183
void SetArn(ArnT &&value)
Definition Test.h:53
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMessage(MessageT &&value)
Definition Test.h:169
ExecutionResult GetResult() const
Definition Test.h:120
const Aws::Utils::DateTime & GetStopped() const
Definition Test.h:142
void SetCounters(CountersT &&value)
Definition Test.h:157
Test & WithResult(ExecutionResult value)
Definition Test.h:123
Test & WithMessage(MessageT &&value)
Definition Test.h:171
Test & WithCreated(CreatedT &&value)
Definition Test.h:96
bool NameHasBeenSet() const
Definition Test.h:63
AWS_DEVICEFARM_API Test & operator=(Aws::Utils::Json::JsonView jsonValue)
Test & WithStarted(StartedT &&value)
Definition Test.h:135
Test & WithName(NameT &&value)
Definition Test.h:67
const Aws::Utils::DateTime & GetCreated() const
Definition Test.h:91
const Aws::String & GetMessage() const
Definition Test.h:166
bool TypeHasBeenSet() const
Definition Test.h:82
void SetStarted(StartedT &&value)
Definition Test.h:133
const Aws::Utils::DateTime & GetStarted() const
Definition Test.h:130
Test & WithCounters(CountersT &&value)
Definition Test.h:159
bool MessageHasBeenSet() const
Definition Test.h:167
Test & WithStopped(StoppedT &&value)
Definition Test.h:147
AWS_DEVICEFARM_API Test(Aws::Utils::Json::JsonView jsonValue)
const Counters & GetCounters() const
Definition Test.h:154
Test & WithType(TestType value)
Definition Test.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue