AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSimulationJobRequest.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/RoboMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/robomaker/model/OutputLocation.h>
11#include <aws/robomaker/model/LoggingConfig.h>
12#include <aws/robomaker/model/FailureBehavior.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/robomaker/model/VPCConfig.h>
16#include <aws/robomaker/model/Compute.h>
17#include <aws/robomaker/model/RobotApplicationConfig.h>
18#include <aws/robomaker/model/SimulationApplicationConfig.h>
19#include <aws/robomaker/model/DataSourceConfig.h>
20#include <utility>
21#include <aws/core/utils/UUID.h>
22
23namespace Aws
24{
25namespace RoboMaker
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_ROBOMAKER_API CreateSimulationJobRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateSimulationJob"; }
42
43 AWS_ROBOMAKER_API Aws::String SerializePayload() const override;
44
45
47
51 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
52 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
53 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
54 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
55 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
57 inline CreateSimulationJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
58 inline CreateSimulationJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
60
62
65 inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
66 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
67 inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
68 inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
70 inline CreateSimulationJobRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
72
74
77 inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
78 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
79 inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; }
80 inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); }
81 inline CreateSimulationJobRequest& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
82 inline CreateSimulationJobRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
84
86
91 inline long long GetMaxJobDurationInSeconds() const{ return m_maxJobDurationInSeconds; }
92 inline bool MaxJobDurationInSecondsHasBeenSet() const { return m_maxJobDurationInSecondsHasBeenSet; }
93 inline void SetMaxJobDurationInSeconds(long long value) { m_maxJobDurationInSecondsHasBeenSet = true; m_maxJobDurationInSeconds = value; }
96
98
103 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
104 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
105 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
106 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
107 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
108 inline CreateSimulationJobRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
109 inline CreateSimulationJobRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
110 inline CreateSimulationJobRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
112
114
120 inline const FailureBehavior& GetFailureBehavior() const{ return m_failureBehavior; }
121 inline bool FailureBehaviorHasBeenSet() const { return m_failureBehaviorHasBeenSet; }
122 inline void SetFailureBehavior(const FailureBehavior& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; }
123 inline void SetFailureBehavior(FailureBehavior&& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = std::move(value); }
125 inline CreateSimulationJobRequest& WithFailureBehavior(FailureBehavior&& value) { SetFailureBehavior(std::move(value)); return *this;}
127
129
132 inline const Aws::Vector<RobotApplicationConfig>& GetRobotApplications() const{ return m_robotApplications; }
133 inline bool RobotApplicationsHasBeenSet() const { return m_robotApplicationsHasBeenSet; }
134 inline void SetRobotApplications(const Aws::Vector<RobotApplicationConfig>& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = value; }
135 inline void SetRobotApplications(Aws::Vector<RobotApplicationConfig>&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::move(value); }
138 inline CreateSimulationJobRequest& AddRobotApplications(const RobotApplicationConfig& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(value); return *this; }
139 inline CreateSimulationJobRequest& AddRobotApplications(RobotApplicationConfig&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(std::move(value)); return *this; }
141
143
146 inline const Aws::Vector<SimulationApplicationConfig>& GetSimulationApplications() const{ return m_simulationApplications; }
147 inline bool SimulationApplicationsHasBeenSet() const { return m_simulationApplicationsHasBeenSet; }
148 inline void SetSimulationApplications(const Aws::Vector<SimulationApplicationConfig>& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = value; }
149 inline void SetSimulationApplications(Aws::Vector<SimulationApplicationConfig>&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::move(value); }
152 inline CreateSimulationJobRequest& AddSimulationApplications(const SimulationApplicationConfig& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(value); return *this; }
153 inline CreateSimulationJobRequest& AddSimulationApplications(SimulationApplicationConfig&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(std::move(value)); return *this; }
155
157
164 inline const Aws::Vector<DataSourceConfig>& GetDataSources() const{ return m_dataSources; }
165 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
166 inline void SetDataSources(const Aws::Vector<DataSourceConfig>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
167 inline void SetDataSources(Aws::Vector<DataSourceConfig>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
170 inline CreateSimulationJobRequest& AddDataSources(const DataSourceConfig& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
171 inline CreateSimulationJobRequest& AddDataSources(DataSourceConfig&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
173
175
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
184 inline CreateSimulationJobRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
185 inline CreateSimulationJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
186 inline CreateSimulationJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
187 inline CreateSimulationJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
188 inline CreateSimulationJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
189 inline CreateSimulationJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
190 inline CreateSimulationJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 inline CreateSimulationJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
193
195
201 inline const VPCConfig& GetVpcConfig() const{ return m_vpcConfig; }
202 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
203 inline void SetVpcConfig(const VPCConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
204 inline void SetVpcConfig(VPCConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
205 inline CreateSimulationJobRequest& WithVpcConfig(const VPCConfig& value) { SetVpcConfig(value); return *this;}
206 inline CreateSimulationJobRequest& WithVpcConfig(VPCConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
208
210
213 inline const Compute& GetCompute() const{ return m_compute; }
214 inline bool ComputeHasBeenSet() const { return m_computeHasBeenSet; }
215 inline void SetCompute(const Compute& value) { m_computeHasBeenSet = true; m_compute = value; }
216 inline void SetCompute(Compute&& value) { m_computeHasBeenSet = true; m_compute = std::move(value); }
217 inline CreateSimulationJobRequest& WithCompute(const Compute& value) { SetCompute(value); return *this;}
218 inline CreateSimulationJobRequest& WithCompute(Compute&& value) { SetCompute(std::move(value)); return *this;}
220 private:
221
222 Aws::String m_clientRequestToken;
223 bool m_clientRequestTokenHasBeenSet = false;
224
225 OutputLocation m_outputLocation;
226 bool m_outputLocationHasBeenSet = false;
227
228 LoggingConfig m_loggingConfig;
229 bool m_loggingConfigHasBeenSet = false;
230
231 long long m_maxJobDurationInSeconds;
232 bool m_maxJobDurationInSecondsHasBeenSet = false;
233
234 Aws::String m_iamRole;
235 bool m_iamRoleHasBeenSet = false;
236
237 FailureBehavior m_failureBehavior;
238 bool m_failureBehaviorHasBeenSet = false;
239
240 Aws::Vector<RobotApplicationConfig> m_robotApplications;
241 bool m_robotApplicationsHasBeenSet = false;
242
243 Aws::Vector<SimulationApplicationConfig> m_simulationApplications;
244 bool m_simulationApplicationsHasBeenSet = false;
245
246 Aws::Vector<DataSourceConfig> m_dataSources;
247 bool m_dataSourcesHasBeenSet = false;
248
250 bool m_tagsHasBeenSet = false;
251
252 VPCConfig m_vpcConfig;
253 bool m_vpcConfigHasBeenSet = false;
254
255 Compute m_compute;
256 bool m_computeHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace RoboMaker
261} // namespace Aws
CreateSimulationJobRequest & AddRobotApplications(RobotApplicationConfig &&value)
CreateSimulationJobRequest & WithRobotApplications(Aws::Vector< RobotApplicationConfig > &&value)
CreateSimulationJobRequest & WithMaxJobDurationInSeconds(long long value)
CreateSimulationJobRequest & AddDataSources(DataSourceConfig &&value)
CreateSimulationJobRequest & WithDataSources(Aws::Vector< DataSourceConfig > &&value)
CreateSimulationJobRequest & WithVpcConfig(VPCConfig &&value)
CreateSimulationJobRequest & WithClientRequestToken(const Aws::String &value)
CreateSimulationJobRequest & WithOutputLocation(OutputLocation &&value)
CreateSimulationJobRequest & WithFailureBehavior(FailureBehavior &&value)
CreateSimulationJobRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateSimulationJobRequest & WithClientRequestToken(Aws::String &&value)
const Aws::Vector< RobotApplicationConfig > & GetRobotApplications() const
CreateSimulationJobRequest & WithDataSources(const Aws::Vector< DataSourceConfig > &value)
CreateSimulationJobRequest & WithLoggingConfig(const LoggingConfig &value)
void SetRobotApplications(const Aws::Vector< RobotApplicationConfig > &value)
CreateSimulationJobRequest & WithSimulationApplications(Aws::Vector< SimulationApplicationConfig > &&value)
CreateSimulationJobRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSimulationApplications(Aws::Vector< SimulationApplicationConfig > &&value)
CreateSimulationJobRequest & WithLoggingConfig(LoggingConfig &&value)
CreateSimulationJobRequest & WithVpcConfig(const VPCConfig &value)
CreateSimulationJobRequest & WithFailureBehavior(const FailureBehavior &value)
void SetDataSources(Aws::Vector< DataSourceConfig > &&value)
CreateSimulationJobRequest & AddTags(const char *key, Aws::String &&value)
CreateSimulationJobRequest & AddSimulationApplications(SimulationApplicationConfig &&value)
CreateSimulationJobRequest & WithSimulationApplications(const Aws::Vector< SimulationApplicationConfig > &value)
const Aws::Vector< DataSourceConfig > & GetDataSources() const
virtual const char * GetServiceRequestName() const override
void SetSimulationApplications(const Aws::Vector< SimulationApplicationConfig > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateSimulationJobRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Vector< SimulationApplicationConfig > & GetSimulationApplications() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSimulationJobRequest & AddTags(const char *key, const char *value)
CreateSimulationJobRequest & AddTags(Aws::String &&key, const Aws::String &value)
void SetRobotApplications(Aws::Vector< RobotApplicationConfig > &&value)
void SetDataSources(const Aws::Vector< DataSourceConfig > &value)
CreateSimulationJobRequest & AddDataSources(const DataSourceConfig &value)
CreateSimulationJobRequest & AddRobotApplications(const RobotApplicationConfig &value)
CreateSimulationJobRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateSimulationJobRequest & WithIamRole(Aws::String &&value)
CreateSimulationJobRequest & AddTags(Aws::String &&key, const char *value)
CreateSimulationJobRequest & WithIamRole(const Aws::String &value)
CreateSimulationJobRequest & WithOutputLocation(const OutputLocation &value)
CreateSimulationJobRequest & WithClientRequestToken(const char *value)
CreateSimulationJobRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateSimulationJobRequest & WithRobotApplications(const Aws::Vector< RobotApplicationConfig > &value)
CreateSimulationJobRequest & WithCompute(const Compute &value)
AWS_ROBOMAKER_API Aws::String SerializePayload() const override
CreateSimulationJobRequest & WithIamRole(const char *value)
CreateSimulationJobRequest & WithCompute(Compute &&value)
CreateSimulationJobRequest & AddSimulationApplications(const SimulationApplicationConfig &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