AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateSimulationJobResult.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/ComputeResponse.h>
19#include <aws/robomaker/model/RobotApplicationConfig.h>
20#include <aws/robomaker/model/SimulationApplicationConfig.h>
21#include <aws/robomaker/model/DataSource.h>
22#include <utility>
23
24namespace Aws
25{
26template<typename RESULT_TYPE>
27class AmazonWebServiceResult;
28
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34} // namespace Json
35} // namespace Utils
36namespace RoboMaker
37{
38namespace Model
39{
41 {
42 public:
43 AWS_ROBOMAKER_API CreateSimulationJobResult() = default;
46
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 CreateSimulationJobResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
63 inline SimulationJobStatus GetStatus() const { return m_status; }
64 inline void SetStatus(SimulationJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
65 inline CreateSimulationJobResult& WithStatus(SimulationJobStatus value) { SetStatus(value); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetLastStartedAt() const { return m_lastStartedAt; }
74 template<typename LastStartedAtT = Aws::Utils::DateTime>
75 void SetLastStartedAt(LastStartedAtT&& value) { m_lastStartedAtHasBeenSet = true; m_lastStartedAt = std::forward<LastStartedAtT>(value); }
76 template<typename LastStartedAtT = Aws::Utils::DateTime>
77 CreateSimulationJobResult& WithLastStartedAt(LastStartedAtT&& value) { SetLastStartedAt(std::forward<LastStartedAtT>(value)); return *this;}
79
81
85 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
86 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
87 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
88 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
89 CreateSimulationJobResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
91
93
96 inline FailureBehavior GetFailureBehavior() const { return m_failureBehavior; }
97 inline void SetFailureBehavior(FailureBehavior value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; }
100
102
127 inline SimulationJobErrorCode GetFailureCode() const { return m_failureCode; }
128 inline void SetFailureCode(SimulationJobErrorCode value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
131
133
137 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
138 template<typename ClientRequestTokenT = Aws::String>
139 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
140 template<typename ClientRequestTokenT = Aws::String>
141 CreateSimulationJobResult& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
143
145
148 inline const OutputLocation& GetOutputLocation() const { return m_outputLocation; }
149 template<typename OutputLocationT = OutputLocation>
150 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
151 template<typename OutputLocationT = OutputLocation>
152 CreateSimulationJobResult& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
154
156
159 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
160 template<typename LoggingConfigT = LoggingConfig>
161 void SetLoggingConfig(LoggingConfigT&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::forward<LoggingConfigT>(value); }
162 template<typename LoggingConfigT = LoggingConfig>
163 CreateSimulationJobResult& WithLoggingConfig(LoggingConfigT&& value) { SetLoggingConfig(std::forward<LoggingConfigT>(value)); return *this;}
165
167
170 inline long long GetMaxJobDurationInSeconds() const { return m_maxJobDurationInSeconds; }
171 inline void SetMaxJobDurationInSeconds(long long value) { m_maxJobDurationInSecondsHasBeenSet = true; m_maxJobDurationInSeconds = value; }
174
176
179 inline long long GetSimulationTimeMillis() const { return m_simulationTimeMillis; }
180 inline void SetSimulationTimeMillis(long long value) { m_simulationTimeMillisHasBeenSet = true; m_simulationTimeMillis = value; }
181 inline CreateSimulationJobResult& WithSimulationTimeMillis(long long value) { SetSimulationTimeMillis(value); return *this;}
183
185
189 inline const Aws::String& GetIamRole() const { return m_iamRole; }
190 template<typename IamRoleT = Aws::String>
191 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
192 template<typename IamRoleT = Aws::String>
193 CreateSimulationJobResult& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
195
197
200 inline const Aws::Vector<RobotApplicationConfig>& GetRobotApplications() const { return m_robotApplications; }
201 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
202 void SetRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::forward<RobotApplicationsT>(value); }
203 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
204 CreateSimulationJobResult& WithRobotApplications(RobotApplicationsT&& value) { SetRobotApplications(std::forward<RobotApplicationsT>(value)); return *this;}
205 template<typename RobotApplicationsT = RobotApplicationConfig>
206 CreateSimulationJobResult& AddRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.emplace_back(std::forward<RobotApplicationsT>(value)); return *this; }
208
210
213 inline const Aws::Vector<SimulationApplicationConfig>& GetSimulationApplications() const { return m_simulationApplications; }
214 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
215 void SetSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::forward<SimulationApplicationsT>(value); }
216 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
217 CreateSimulationJobResult& WithSimulationApplications(SimulationApplicationsT&& value) { SetSimulationApplications(std::forward<SimulationApplicationsT>(value)); return *this;}
218 template<typename SimulationApplicationsT = SimulationApplicationConfig>
219 CreateSimulationJobResult& AddSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.emplace_back(std::forward<SimulationApplicationsT>(value)); return *this; }
221
223
226 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
227 template<typename DataSourcesT = Aws::Vector<DataSource>>
228 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
229 template<typename DataSourcesT = Aws::Vector<DataSource>>
230 CreateSimulationJobResult& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
231 template<typename DataSourcesT = DataSource>
232 CreateSimulationJobResult& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
234
236
239 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
240 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
241 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
242 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
243 CreateSimulationJobResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
244 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
245 CreateSimulationJobResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
246 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
247 }
249
251
254 inline const VPCConfigResponse& GetVpcConfig() const { return m_vpcConfig; }
255 template<typename VpcConfigT = VPCConfigResponse>
256 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
257 template<typename VpcConfigT = VPCConfigResponse>
258 CreateSimulationJobResult& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
260
262
265 inline const ComputeResponse& GetCompute() const { return m_compute; }
266 template<typename ComputeT = ComputeResponse>
267 void SetCompute(ComputeT&& value) { m_computeHasBeenSet = true; m_compute = std::forward<ComputeT>(value); }
268 template<typename ComputeT = ComputeResponse>
269 CreateSimulationJobResult& WithCompute(ComputeT&& value) { SetCompute(std::forward<ComputeT>(value)); return *this;}
271
273
274 inline const Aws::String& GetRequestId() const { return m_requestId; }
275 template<typename RequestIdT = Aws::String>
276 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
277 template<typename RequestIdT = Aws::String>
278 CreateSimulationJobResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
280 private:
281
282 Aws::String m_arn;
283 bool m_arnHasBeenSet = false;
284
286 bool m_statusHasBeenSet = false;
287
288 Aws::Utils::DateTime m_lastStartedAt{};
289 bool m_lastStartedAtHasBeenSet = false;
290
291 Aws::Utils::DateTime m_lastUpdatedAt{};
292 bool m_lastUpdatedAtHasBeenSet = false;
293
294 FailureBehavior m_failureBehavior{FailureBehavior::NOT_SET};
295 bool m_failureBehaviorHasBeenSet = false;
296
298 bool m_failureCodeHasBeenSet = false;
299
300 Aws::String m_clientRequestToken;
301 bool m_clientRequestTokenHasBeenSet = false;
302
303 OutputLocation m_outputLocation;
304 bool m_outputLocationHasBeenSet = false;
305
306 LoggingConfig m_loggingConfig;
307 bool m_loggingConfigHasBeenSet = false;
308
309 long long m_maxJobDurationInSeconds{0};
310 bool m_maxJobDurationInSecondsHasBeenSet = false;
311
312 long long m_simulationTimeMillis{0};
313 bool m_simulationTimeMillisHasBeenSet = false;
314
315 Aws::String m_iamRole;
316 bool m_iamRoleHasBeenSet = false;
317
318 Aws::Vector<RobotApplicationConfig> m_robotApplications;
319 bool m_robotApplicationsHasBeenSet = false;
320
321 Aws::Vector<SimulationApplicationConfig> m_simulationApplications;
322 bool m_simulationApplicationsHasBeenSet = false;
323
324 Aws::Vector<DataSource> m_dataSources;
325 bool m_dataSourcesHasBeenSet = false;
326
328 bool m_tagsHasBeenSet = false;
329
330 VPCConfigResponse m_vpcConfig;
331 bool m_vpcConfigHasBeenSet = false;
332
333 ComputeResponse m_compute;
334 bool m_computeHasBeenSet = false;
335
336 Aws::String m_requestId;
337 bool m_requestIdHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace RoboMaker
342} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedAt() const
CreateSimulationJobResult & WithCompute(ComputeT &&value)
CreateSimulationJobResult & WithStatus(SimulationJobStatus value)
const Aws::Vector< DataSource > & GetDataSources() const
CreateSimulationJobResult & WithRequestId(RequestIdT &&value)
CreateSimulationJobResult & WithClientRequestToken(ClientRequestTokenT &&value)
CreateSimulationJobResult & WithMaxJobDurationInSeconds(long long value)
const Aws::Vector< SimulationApplicationConfig > & GetSimulationApplications() const
void SetSimulationApplications(SimulationApplicationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSimulationJobResult & WithSimulationTimeMillis(long long value)
CreateSimulationJobResult & WithLoggingConfig(LoggingConfigT &&value)
CreateSimulationJobResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
CreateSimulationJobResult & WithArn(ArnT &&value)
CreateSimulationJobResult & WithLastStartedAt(LastStartedAtT &&value)
CreateSimulationJobResult & WithOutputLocation(OutputLocationT &&value)
AWS_ROBOMAKER_API CreateSimulationJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RobotApplicationConfig > & GetRobotApplications() const
const Aws::Utils::DateTime & GetLastStartedAt() const
CreateSimulationJobResult & WithDataSources(DataSourcesT &&value)
CreateSimulationJobResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSimulationJobResult & AddSimulationApplications(SimulationApplicationsT &&value)
AWS_ROBOMAKER_API CreateSimulationJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSimulationJobResult & WithVpcConfig(VpcConfigT &&value)
CreateSimulationJobResult & WithRobotApplications(RobotApplicationsT &&value)
CreateSimulationJobResult & WithIamRole(IamRoleT &&value)
CreateSimulationJobResult & WithFailureBehavior(FailureBehavior value)
CreateSimulationJobResult & WithTags(TagsT &&value)
CreateSimulationJobResult & WithFailureCode(SimulationJobErrorCode value)
CreateSimulationJobResult & WithSimulationApplications(SimulationApplicationsT &&value)
CreateSimulationJobResult & AddDataSources(DataSourcesT &&value)
AWS_ROBOMAKER_API CreateSimulationJobResult()=default
CreateSimulationJobResult & AddRobotApplications(RobotApplicationsT &&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