AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SimulationJob.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/robomaker/model/SimulationJobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/robomaker/model/FailureBehavior.h>
12#include <aws/robomaker/model/SimulationJobErrorCode.h>
13#include <aws/robomaker/model/OutputLocation.h>
14#include <aws/robomaker/model/LoggingConfig.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/robomaker/model/VPCConfigResponse.h>
18#include <aws/robomaker/model/NetworkInterface.h>
19#include <aws/robomaker/model/ComputeResponse.h>
20#include <aws/robomaker/model/RobotApplicationConfig.h>
21#include <aws/robomaker/model/SimulationApplicationConfig.h>
22#include <aws/robomaker/model/DataSource.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace RoboMaker
36{
37namespace Model
38{
39
46 {
47 public:
48 AWS_ROBOMAKER_API SimulationJob() = default;
49 AWS_ROBOMAKER_API SimulationJob(Aws::Utils::Json::JsonView jsonValue);
50 AWS_ROBOMAKER_API SimulationJob& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template<typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
62 template<typename ArnT = Aws::String>
63 SimulationJob& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 SimulationJob& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
82 inline SimulationJobStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(SimulationJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
85 inline SimulationJob& WithStatus(SimulationJobStatus value) { SetStatus(value); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetLastStartedAt() const { return m_lastStartedAt; }
94 inline bool LastStartedAtHasBeenSet() const { return m_lastStartedAtHasBeenSet; }
95 template<typename LastStartedAtT = Aws::Utils::DateTime>
96 void SetLastStartedAt(LastStartedAtT&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::forward<LastStartedAtT>(value); }
97 template<typename LastStartedAtT = Aws::Utils::DateTime>
98 SimulationJob& WithLastStartedAt(LastStartedAtT&& value) { SetLastStartedAt(std::forward<LastStartedAtT>(value)); return *this;}
100
102
106 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
107 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
108 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
109 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
110 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
111 SimulationJob& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
113
115
121 inline FailureBehavior GetFailureBehavior() const { return m_failureBehavior; }
122 inline bool FailureBehaviorHasBeenSet() const { return m_failureBehaviorHasBeenSet; }
123 inline void SetFailureBehavior(FailureBehavior value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; }
126
128
131 inline SimulationJobErrorCode GetFailureCode() const { return m_failureCode; }
132 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
133 inline void SetFailureCode(SimulationJobErrorCode value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
136
138
141 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
142 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
143 template<typename FailureReasonT = Aws::String>
144 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
145 template<typename FailureReasonT = Aws::String>
146 SimulationJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
148
150
153 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
154 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
155 template<typename ClientRequestTokenT = Aws::String>
156 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
157 template<typename ClientRequestTokenT = Aws::String>
158 SimulationJob& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
160
162
165 inline const OutputLocation& GetOutputLocation() const { return m_outputLocation; }
166 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
167 template<typename OutputLocationT = OutputLocation>
168 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
169 template<typename OutputLocationT = OutputLocation>
170 SimulationJob& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
172
174
177 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
178 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
179 template<typename LoggingConfigT = LoggingConfig>
180 void SetLoggingConfig(LoggingConfigT&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::forward<LoggingConfigT>(value); }
181 template<typename LoggingConfigT = LoggingConfig>
182 SimulationJob& WithLoggingConfig(LoggingConfigT&& value) { SetLoggingConfig(std::forward<LoggingConfigT>(value)); return *this;}
184
186
190 inline long long GetMaxJobDurationInSeconds() const { return m_maxJobDurationInSeconds; }
191 inline bool MaxJobDurationInSecondsHasBeenSet() const { return m_maxJobDurationInSecondsHasBeenSet; }
192 inline void SetMaxJobDurationInSeconds(long long value) { m_maxJobDurationInSecondsHasBeenSet = true; m_maxJobDurationInSeconds = value; }
193 inline SimulationJob& WithMaxJobDurationInSeconds(long long value) { SetMaxJobDurationInSeconds(value); return *this;}
195
197
200 inline long long GetSimulationTimeMillis() const { return m_simulationTimeMillis; }
201 inline bool SimulationTimeMillisHasBeenSet() const { return m_simulationTimeMillisHasBeenSet; }
202 inline void SetSimulationTimeMillis(long long value) { m_simulationTimeMillisHasBeenSet = true; m_simulationTimeMillis = value; }
203 inline SimulationJob& WithSimulationTimeMillis(long long value) { SetSimulationTimeMillis(value); return *this;}
205
207
212 inline const Aws::String& GetIamRole() const { return m_iamRole; }
213 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
214 template<typename IamRoleT = Aws::String>
215 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
216 template<typename IamRoleT = Aws::String>
217 SimulationJob& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
219
221
224 inline const Aws::Vector<RobotApplicationConfig>& GetRobotApplications() const { return m_robotApplications; }
225 inline bool RobotApplicationsHasBeenSet() const { return m_robotApplicationsHasBeenSet; }
226 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
227 void SetRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::forward<RobotApplicationsT>(value); }
228 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
229 SimulationJob& WithRobotApplications(RobotApplicationsT&& value) { SetRobotApplications(std::forward<RobotApplicationsT>(value)); return *this;}
230 template<typename RobotApplicationsT = RobotApplicationConfig>
231 SimulationJob& AddRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.emplace_back(std::forward<RobotApplicationsT>(value)); return *this; }
233
235
238 inline const Aws::Vector<SimulationApplicationConfig>& GetSimulationApplications() const { return m_simulationApplications; }
239 inline bool SimulationApplicationsHasBeenSet() const { return m_simulationApplicationsHasBeenSet; }
240 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
241 void SetSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::forward<SimulationApplicationsT>(value); }
242 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
243 SimulationJob& WithSimulationApplications(SimulationApplicationsT&& value) { SetSimulationApplications(std::forward<SimulationApplicationsT>(value)); return *this;}
244 template<typename SimulationApplicationsT = SimulationApplicationConfig>
245 SimulationJob& AddSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.emplace_back(std::forward<SimulationApplicationsT>(value)); return *this; }
247
249
252 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
253 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
254 template<typename DataSourcesT = Aws::Vector<DataSource>>
255 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
256 template<typename DataSourcesT = Aws::Vector<DataSource>>
257 SimulationJob& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
258 template<typename DataSourcesT = DataSource>
259 SimulationJob& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
261
263
267 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
268 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
269 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
271 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
272 SimulationJob& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
273 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
274 SimulationJob& AddTags(TagsKeyT&& key, TagsValueT&& value) {
275 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
276 }
278
280
283 inline const VPCConfigResponse& GetVpcConfig() const { return m_vpcConfig; }
284 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
285 template<typename VpcConfigT = VPCConfigResponse>
286 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
287 template<typename VpcConfigT = VPCConfigResponse>
288 SimulationJob& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
290
292
295 inline const NetworkInterface& GetNetworkInterface() const { return m_networkInterface; }
296 inline bool NetworkInterfaceHasBeenSet() const { return m_networkInterfaceHasBeenSet; }
297 template<typename NetworkInterfaceT = NetworkInterface>
298 void SetNetworkInterface(NetworkInterfaceT&& value) { m_networkInterfaceHasBeenSet = true; m_networkInterface = std::forward<NetworkInterfaceT>(value); }
299 template<typename NetworkInterfaceT = NetworkInterface>
300 SimulationJob& WithNetworkInterface(NetworkInterfaceT&& value) { SetNetworkInterface(std::forward<NetworkInterfaceT>(value)); return *this;}
302
304
307 inline const ComputeResponse& GetCompute() const { return m_compute; }
308 inline bool ComputeHasBeenSet() const { return m_computeHasBeenSet; }
309 template<typename ComputeT = ComputeResponse>
310 void SetCompute(ComputeT&& value) { m_computeHasBeenSet = true; m_compute = std::forward<ComputeT>(value); }
311 template<typename ComputeT = ComputeResponse>
312 SimulationJob& WithCompute(ComputeT&& value) { SetCompute(std::forward<ComputeT>(value)); return *this;}
314 private:
315
316 Aws::String m_arn;
317 bool m_arnHasBeenSet = false;
318
319 Aws::String m_name;
320 bool m_nameHasBeenSet = false;
321
323 bool m_statusHasBeenSet = false;
324
325 Aws::Utils::DateTime m_lastStartedAt{};
326 bool m_lastStartedAtHasBeenSet = false;
327
328 Aws::Utils::DateTime m_lastUpdatedAt{};
329 bool m_lastUpdatedAtHasBeenSet = false;
330
331 FailureBehavior m_failureBehavior{FailureBehavior::NOT_SET};
332 bool m_failureBehaviorHasBeenSet = false;
333
335 bool m_failureCodeHasBeenSet = false;
336
337 Aws::String m_failureReason;
338 bool m_failureReasonHasBeenSet = false;
339
340 Aws::String m_clientRequestToken;
341 bool m_clientRequestTokenHasBeenSet = false;
342
343 OutputLocation m_outputLocation;
344 bool m_outputLocationHasBeenSet = false;
345
346 LoggingConfig m_loggingConfig;
347 bool m_loggingConfigHasBeenSet = false;
348
349 long long m_maxJobDurationInSeconds{0};
350 bool m_maxJobDurationInSecondsHasBeenSet = false;
351
352 long long m_simulationTimeMillis{0};
353 bool m_simulationTimeMillisHasBeenSet = false;
354
355 Aws::String m_iamRole;
356 bool m_iamRoleHasBeenSet = false;
357
358 Aws::Vector<RobotApplicationConfig> m_robotApplications;
359 bool m_robotApplicationsHasBeenSet = false;
360
361 Aws::Vector<SimulationApplicationConfig> m_simulationApplications;
362 bool m_simulationApplicationsHasBeenSet = false;
363
364 Aws::Vector<DataSource> m_dataSources;
365 bool m_dataSourcesHasBeenSet = false;
366
368 bool m_tagsHasBeenSet = false;
369
370 VPCConfigResponse m_vpcConfig;
371 bool m_vpcConfigHasBeenSet = false;
372
373 NetworkInterface m_networkInterface;
374 bool m_networkInterfaceHasBeenSet = false;
375
376 ComputeResponse m_compute;
377 bool m_computeHasBeenSet = false;
378 };
379
380} // namespace Model
381} // namespace RoboMaker
382} // namespace Aws
const NetworkInterface & GetNetworkInterface() const
void SetStatus(SimulationJobStatus value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
SimulationJob & WithSimulationApplications(SimulationApplicationsT &&value)
AWS_ROBOMAKER_API SimulationJob & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ROBOMAKER_API SimulationJob(Aws::Utils::Json::JsonView jsonValue)
SimulationJobStatus GetStatus() const
SimulationJob & AddDataSources(DataSourcesT &&value)
SimulationJob & WithMaxJobDurationInSeconds(long long value)
void SetSimulationTimeMillis(long long value)
void SetFailureCode(SimulationJobErrorCode value)
SimulationJob & WithOutputLocation(OutputLocationT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
const Aws::Vector< RobotApplicationConfig > & GetRobotApplications() const
const Aws::String & GetClientRequestToken() const
SimulationJob & WithDataSources(DataSourcesT &&value)
SimulationJob & WithLastStartedAt(LastStartedAtT &&value)
const Aws::String & GetArn() const
SimulationJob & WithIamRole(IamRoleT &&value)
const Aws::Utils::DateTime & GetLastStartedAt() const
void SetFailureBehavior(FailureBehavior value)
SimulationJob & WithLastUpdatedAt(LastUpdatedAtT &&value)
SimulationJob & WithLoggingConfig(LoggingConfigT &&value)
SimulationJob & WithSimulationTimeMillis(long long value)
void SetOutputLocation(OutputLocationT &&value)
void SetSimulationApplications(SimulationApplicationsT &&value)
const OutputLocation & GetOutputLocation() const
void SetLoggingConfig(LoggingConfigT &&value)
const Aws::String & GetFailureReason() const
void SetDataSources(DataSourcesT &&value)
const VPCConfigResponse & GetVpcConfig() const
void SetLastStartedAt(LastStartedAtT &&value)
void SetNetworkInterface(NetworkInterfaceT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const ComputeResponse & GetCompute() const
SimulationJob & AddSimulationApplications(SimulationApplicationsT &&value)
SimulationJob & WithCompute(ComputeT &&value)
void SetMaxJobDurationInSeconds(long long value)
void SetClientRequestToken(ClientRequestTokenT &&value)
SimulationJob & WithVpcConfig(VpcConfigT &&value)
void SetRobotApplications(RobotApplicationsT &&value)
SimulationJob & AddTags(TagsKeyT &&key, TagsValueT &&value)
SimulationJob & WithClientRequestToken(ClientRequestTokenT &&value)
void SetVpcConfig(VpcConfigT &&value)
SimulationJob & WithArn(ArnT &&value)
const Aws::Vector< SimulationApplicationConfig > & GetSimulationApplications() const
SimulationJob & WithFailureReason(FailureReasonT &&value)
SimulationJob & WithName(NameT &&value)
AWS_ROBOMAKER_API SimulationJob()=default
const Aws::String & GetName() const
SimulationJobErrorCode GetFailureCode() const
SimulationJob & AddRobotApplications(RobotApplicationsT &&value)
const Aws::String & GetIamRole() const
FailureBehavior GetFailureBehavior() const
SimulationJob & WithNetworkInterface(NetworkInterfaceT &&value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SimulationJob & WithTags(TagsT &&value)
void SetFailureReason(FailureReasonT &&value)
const LoggingConfig & GetLoggingConfig() const
SimulationJob & WithRobotApplications(RobotApplicationsT &&value)
SimulationJob & WithStatus(SimulationJobStatus value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
SimulationJob & WithFailureBehavior(FailureBehavior value)
SimulationJob & WithFailureCode(SimulationJobErrorCode value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue