AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Suite.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 Suite
38 {
39 public:
40 AWS_DEVICEFARM_API Suite();
41 AWS_DEVICEFARM_API Suite(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DEVICEFARM_API Suite& 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 Suite& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline Suite& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline Suite& 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 Suite& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Suite& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Suite& 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 Suite& WithType(const TestType& value) { SetType(value); return *this;}
90 inline Suite& 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 Suite& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
102 inline Suite& 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 Suite& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
118 inline Suite& 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 Suite& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
133 inline Suite& 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 Suite& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
145 inline Suite& 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 Suite& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
157 inline Suite& 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 Suite& WithCounters(const Counters& value) { SetCounters(value); return *this;}
169 inline Suite& 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 Suite& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
182 inline Suite& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
183 inline Suite& WithMessage(const char* value) { SetMessage(value); return *this;}
185
187
191 inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
192 inline bool DeviceMinutesHasBeenSet() const { return m_deviceMinutesHasBeenSet; }
193 inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
194 inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = std::move(value); }
195 inline Suite& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
196 inline Suite& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(std::move(value)); return *this;}
198 private:
199
200 Aws::String m_arn;
201 bool m_arnHasBeenSet = false;
202
203 Aws::String m_name;
204 bool m_nameHasBeenSet = false;
205
206 TestType m_type;
207 bool m_typeHasBeenSet = false;
208
209 Aws::Utils::DateTime m_created;
210 bool m_createdHasBeenSet = false;
211
212 ExecutionStatus m_status;
213 bool m_statusHasBeenSet = false;
214
215 ExecutionResult m_result;
216 bool m_resultHasBeenSet = false;
217
218 Aws::Utils::DateTime m_started;
219 bool m_startedHasBeenSet = false;
220
221 Aws::Utils::DateTime m_stopped;
222 bool m_stoppedHasBeenSet = false;
223
224 Counters m_counters;
225 bool m_countersHasBeenSet = false;
226
227 Aws::String m_message;
228 bool m_messageHasBeenSet = false;
229
230 DeviceMinutes m_deviceMinutes;
231 bool m_deviceMinutesHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace DeviceFarm
236} // namespace Aws
bool StatusHasBeenSet() const
Definition Suite.h:114
void SetCreated(Aws::Utils::DateTime &&value)
Definition Suite.h:100
void SetStatus(const ExecutionStatus &value)
Definition Suite.h:115
Suite & WithCounters(Counters &&value)
Definition Suite.h:169
Suite & WithStarted(const Aws::Utils::DateTime &value)
Definition Suite.h:144
Suite & WithStatus(ExecutionStatus &&value)
Definition Suite.h:118
Suite & WithArn(const Aws::String &value)
Definition Suite.h:55
void SetStarted(const Aws::Utils::DateTime &value)
Definition Suite.h:142
Suite & WithStatus(const ExecutionStatus &value)
Definition Suite.h:117
Suite & WithType(const TestType &value)
Definition Suite.h:89
const Aws::String & GetArn() const
Definition Suite.h:50
AWS_DEVICEFARM_API Suite & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreated(const Aws::Utils::DateTime &value)
Definition Suite.h:99
Suite & WithType(TestType &&value)
Definition Suite.h:90
void SetResult(const ExecutionResult &value)
Definition Suite.h:130
Suite & WithStopped(const Aws::Utils::DateTime &value)
Definition Suite.h:156
void SetMessage(Aws::String &&value)
Definition Suite.h:179
void SetName(const Aws::String &value)
Definition Suite.h:66
void SetMessage(const Aws::String &value)
Definition Suite.h:178
const Aws::Utils::DateTime & GetStarted() const
Definition Suite.h:140
bool ArnHasBeenSet() const
Definition Suite.h:51
void SetArn(Aws::String &&value)
Definition Suite.h:53
const Aws::String & GetName() const
Definition Suite.h:64
Suite & WithMessage(const Aws::String &value)
Definition Suite.h:181
void SetType(TestType &&value)
Definition Suite.h:88
void SetArn(const Aws::String &value)
Definition Suite.h:52
bool DeviceMinutesHasBeenSet() const
Definition Suite.h:192
Suite & WithCreated(const Aws::Utils::DateTime &value)
Definition Suite.h:101
Suite & WithDeviceMinutes(DeviceMinutes &&value)
Definition Suite.h:196
Suite & WithMessage(const char *value)
Definition Suite.h:183
void SetStatus(ExecutionStatus &&value)
Definition Suite.h:116
Suite & WithCounters(const Counters &value)
Definition Suite.h:168
Suite & WithResult(const ExecutionResult &value)
Definition Suite.h:132
const Aws::String & GetMessage() const
Definition Suite.h:176
AWS_DEVICEFARM_API Suite()
const ExecutionResult & GetResult() const
Definition Suite.h:128
Suite & WithResult(ExecutionResult &&value)
Definition Suite.h:133
bool StoppedHasBeenSet() const
Definition Suite.h:153
const DeviceMinutes & GetDeviceMinutes() const
Definition Suite.h:191
void SetMessage(const char *value)
Definition Suite.h:180
void SetType(const TestType &value)
Definition Suite.h:87
bool StartedHasBeenSet() const
Definition Suite.h:141
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
bool NameHasBeenSet() const
Definition Suite.h:65
Suite & WithName(const char *value)
Definition Suite.h:71
Suite & WithCreated(Aws::Utils::DateTime &&value)
Definition Suite.h:102
bool CreatedHasBeenSet() const
Definition Suite.h:98
AWS_DEVICEFARM_API Suite(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreated() const
Definition Suite.h:97
Suite & WithMessage(Aws::String &&value)
Definition Suite.h:182
void SetCounters(Counters &&value)
Definition Suite.h:167
Suite & WithStopped(Aws::Utils::DateTime &&value)
Definition Suite.h:157
const ExecutionStatus & GetStatus() const
Definition Suite.h:113
bool MessageHasBeenSet() const
Definition Suite.h:177
Suite & WithArn(Aws::String &&value)
Definition Suite.h:56
void SetStarted(Aws::Utils::DateTime &&value)
Definition Suite.h:143
void SetArn(const char *value)
Definition Suite.h:54
const Aws::Utils::DateTime & GetStopped() const
Definition Suite.h:152
void SetName(const char *value)
Definition Suite.h:68
Suite & WithDeviceMinutes(const DeviceMinutes &value)
Definition Suite.h:195
void SetCounters(const Counters &value)
Definition Suite.h:166
bool CountersHasBeenSet() const
Definition Suite.h:165
void SetStopped(const Aws::Utils::DateTime &value)
Definition Suite.h:154
void SetResult(ExecutionResult &&value)
Definition Suite.h:131
void SetDeviceMinutes(const DeviceMinutes &value)
Definition Suite.h:193
void SetName(Aws::String &&value)
Definition Suite.h:67
bool TypeHasBeenSet() const
Definition Suite.h:86
const Counters & GetCounters() const
Definition Suite.h:164
Suite & WithArn(const char *value)
Definition Suite.h:57
const TestType & GetType() const
Definition Suite.h:85
bool ResultHasBeenSet() const
Definition Suite.h:129
Suite & WithName(Aws::String &&value)
Definition Suite.h:70
Suite & WithStarted(Aws::Utils::DateTime &&value)
Definition Suite.h:145
void SetDeviceMinutes(DeviceMinutes &&value)
Definition Suite.h:194
Suite & WithName(const Aws::String &value)
Definition Suite.h:69
void SetStopped(Aws::Utils::DateTime &&value)
Definition Suite.h:155
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue