AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SimulationJobRequest.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/model/OutputLocation.h>
9#include <aws/robomaker/model/LoggingConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/robomaker/model/FailureBehavior.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/robomaker/model/VPCConfig.h>
14#include <aws/robomaker/model/Compute.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/robomaker/model/RobotApplicationConfig.h>
17#include <aws/robomaker/model/SimulationApplicationConfig.h>
18#include <aws/robomaker/model/DataSourceConfig.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace RoboMaker
32{
33namespace Model
34{
35
42 {
43 public:
44 AWS_ROBOMAKER_API SimulationJobRequest();
47 AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
52 inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; }
53 inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; }
54 inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; }
55 inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); }
56 inline SimulationJobRequest& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;}
57 inline SimulationJobRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;}
59
61
62 inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; }
63 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
64 inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; }
65 inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); }
66 inline SimulationJobRequest& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;}
67 inline SimulationJobRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;}
69
71
75 inline long long GetMaxJobDurationInSeconds() const{ return m_maxJobDurationInSeconds; }
76 inline bool MaxJobDurationInSecondsHasBeenSet() const { return m_maxJobDurationInSecondsHasBeenSet; }
77 inline void SetMaxJobDurationInSeconds(long long value) { m_maxJobDurationInSecondsHasBeenSet = true; m_maxJobDurationInSeconds = value; }
78 inline SimulationJobRequest& WithMaxJobDurationInSeconds(long long value) { SetMaxJobDurationInSeconds(value); return *this;}
80
82
87 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
88 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
89 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
90 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
91 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
92 inline SimulationJobRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
93 inline SimulationJobRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
94 inline SimulationJobRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;}
96
98
104 inline const FailureBehavior& GetFailureBehavior() const{ return m_failureBehavior; }
105 inline bool FailureBehaviorHasBeenSet() const { return m_failureBehaviorHasBeenSet; }
106 inline void SetFailureBehavior(const FailureBehavior& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; }
107 inline void SetFailureBehavior(FailureBehavior&& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = std::move(value); }
108 inline SimulationJobRequest& WithFailureBehavior(const FailureBehavior& value) { SetFailureBehavior(value); return *this;}
109 inline SimulationJobRequest& WithFailureBehavior(FailureBehavior&& value) { SetFailureBehavior(std::move(value)); return *this;}
111
113
117 inline bool GetUseDefaultApplications() const{ return m_useDefaultApplications; }
118 inline bool UseDefaultApplicationsHasBeenSet() const { return m_useDefaultApplicationsHasBeenSet; }
119 inline void SetUseDefaultApplications(bool value) { m_useDefaultApplicationsHasBeenSet = true; m_useDefaultApplications = value; }
122
124
127 inline const Aws::Vector<RobotApplicationConfig>& GetRobotApplications() const{ return m_robotApplications; }
128 inline bool RobotApplicationsHasBeenSet() const { return m_robotApplicationsHasBeenSet; }
129 inline void SetRobotApplications(const Aws::Vector<RobotApplicationConfig>& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = value; }
130 inline void SetRobotApplications(Aws::Vector<RobotApplicationConfig>&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::move(value); }
133 inline SimulationJobRequest& AddRobotApplications(const RobotApplicationConfig& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(value); return *this; }
134 inline SimulationJobRequest& AddRobotApplications(RobotApplicationConfig&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(std::move(value)); return *this; }
136
138
141 inline const Aws::Vector<SimulationApplicationConfig>& GetSimulationApplications() const{ return m_simulationApplications; }
142 inline bool SimulationApplicationsHasBeenSet() const { return m_simulationApplicationsHasBeenSet; }
143 inline void SetSimulationApplications(const Aws::Vector<SimulationApplicationConfig>& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = value; }
144 inline void SetSimulationApplications(Aws::Vector<SimulationApplicationConfig>&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::move(value); }
147 inline SimulationJobRequest& AddSimulationApplications(const SimulationApplicationConfig& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(value); return *this; }
148 inline SimulationJobRequest& AddSimulationApplications(SimulationApplicationConfig&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(std::move(value)); return *this; }
150
152
159 inline const Aws::Vector<DataSourceConfig>& GetDataSources() const{ return m_dataSources; }
160 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
161 inline void SetDataSources(const Aws::Vector<DataSourceConfig>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
162 inline void SetDataSources(Aws::Vector<DataSourceConfig>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
164 inline SimulationJobRequest& WithDataSources(Aws::Vector<DataSourceConfig>&& value) { SetDataSources(std::move(value)); return *this;}
165 inline SimulationJobRequest& AddDataSources(const DataSourceConfig& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
166 inline SimulationJobRequest& AddDataSources(DataSourceConfig&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
168
170
171 inline const VPCConfig& GetVpcConfig() const{ return m_vpcConfig; }
172 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
173 inline void SetVpcConfig(const VPCConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
174 inline void SetVpcConfig(VPCConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
175 inline SimulationJobRequest& WithVpcConfig(const VPCConfig& value) { SetVpcConfig(value); return *this;}
176 inline SimulationJobRequest& WithVpcConfig(VPCConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
178
180
183 inline const Compute& GetCompute() const{ return m_compute; }
184 inline bool ComputeHasBeenSet() const { return m_computeHasBeenSet; }
185 inline void SetCompute(const Compute& value) { m_computeHasBeenSet = true; m_compute = value; }
186 inline void SetCompute(Compute&& value) { m_computeHasBeenSet = true; m_compute = std::move(value); }
187 inline SimulationJobRequest& WithCompute(const Compute& value) { SetCompute(value); return *this;}
188 inline SimulationJobRequest& WithCompute(Compute&& value) { SetCompute(std::move(value)); return *this;}
190
192
196 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
197 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
198 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
199 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
200 inline SimulationJobRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
201 inline SimulationJobRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
202 inline SimulationJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
203 inline SimulationJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
204 inline SimulationJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
205 inline SimulationJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
206 inline SimulationJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
207 inline SimulationJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
208 inline SimulationJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
210 private:
211
212 OutputLocation m_outputLocation;
213 bool m_outputLocationHasBeenSet = false;
214
215 LoggingConfig m_loggingConfig;
216 bool m_loggingConfigHasBeenSet = false;
217
218 long long m_maxJobDurationInSeconds;
219 bool m_maxJobDurationInSecondsHasBeenSet = false;
220
221 Aws::String m_iamRole;
222 bool m_iamRoleHasBeenSet = false;
223
224 FailureBehavior m_failureBehavior;
225 bool m_failureBehaviorHasBeenSet = false;
226
227 bool m_useDefaultApplications;
228 bool m_useDefaultApplicationsHasBeenSet = false;
229
230 Aws::Vector<RobotApplicationConfig> m_robotApplications;
231 bool m_robotApplicationsHasBeenSet = false;
232
233 Aws::Vector<SimulationApplicationConfig> m_simulationApplications;
234 bool m_simulationApplicationsHasBeenSet = false;
235
236 Aws::Vector<DataSourceConfig> m_dataSources;
237 bool m_dataSourcesHasBeenSet = false;
238
239 VPCConfig m_vpcConfig;
240 bool m_vpcConfigHasBeenSet = false;
241
242 Compute m_compute;
243 bool m_computeHasBeenSet = false;
244
246 bool m_tagsHasBeenSet = false;
247 };
248
249} // namespace Model
250} // namespace RoboMaker
251} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ROBOMAKER_API SimulationJobRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
SimulationJobRequest & WithDataSources(Aws::Vector< DataSourceConfig > &&value)
SimulationJobRequest & AddTags(const char *key, const char *value)
SimulationJobRequest & WithVpcConfig(const VPCConfig &value)
SimulationJobRequest & WithRobotApplications(Aws::Vector< RobotApplicationConfig > &&value)
SimulationJobRequest & WithCompute(const Compute &value)
void SetDataSources(const Aws::Vector< DataSourceConfig > &value)
void SetDataSources(Aws::Vector< DataSourceConfig > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SimulationJobRequest & AddDataSources(const DataSourceConfig &value)
void SetSimulationApplications(const Aws::Vector< SimulationApplicationConfig > &value)
SimulationJobRequest & AddTags(Aws::String &&key, const char *value)
SimulationJobRequest & AddSimulationApplications(SimulationApplicationConfig &&value)
void SetRobotApplications(const Aws::Vector< RobotApplicationConfig > &value)
SimulationJobRequest & WithOutputLocation(const OutputLocation &value)
SimulationJobRequest & AddTags(Aws::String &&key, Aws::String &&value)
SimulationJobRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetSimulationApplications(Aws::Vector< SimulationApplicationConfig > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SimulationJobRequest & AddDataSources(DataSourceConfig &&value)
SimulationJobRequest & AddSimulationApplications(const SimulationApplicationConfig &value)
SimulationJobRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
SimulationJobRequest & AddRobotApplications(RobotApplicationConfig &&value)
SimulationJobRequest & WithSimulationApplications(const Aws::Vector< SimulationApplicationConfig > &value)
void SetOutputLocation(const OutputLocation &value)
const OutputLocation & GetOutputLocation() const
void SetLoggingConfig(const LoggingConfig &value)
AWS_ROBOMAKER_API SimulationJobRequest(Aws::Utils::Json::JsonView jsonValue)
SimulationJobRequest & WithOutputLocation(OutputLocation &&value)
SimulationJobRequest & WithFailureBehavior(const FailureBehavior &value)
SimulationJobRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::Vector< DataSourceConfig > & GetDataSources() const
SimulationJobRequest & AddTags(const char *key, Aws::String &&value)
void SetRobotApplications(Aws::Vector< RobotApplicationConfig > &&value)
void SetFailureBehavior(const FailureBehavior &value)
SimulationJobRequest & WithLoggingConfig(const LoggingConfig &value)
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SimulationJobRequest & WithMaxJobDurationInSeconds(long long value)
SimulationJobRequest & WithRobotApplications(const Aws::Vector< RobotApplicationConfig > &value)
SimulationJobRequest & WithFailureBehavior(FailureBehavior &&value)
SimulationJobRequest & WithUseDefaultApplications(bool value)
const Aws::Vector< RobotApplicationConfig > & GetRobotApplications() const
const FailureBehavior & GetFailureBehavior() const
SimulationJobRequest & WithIamRole(const Aws::String &value)
const Aws::Vector< SimulationApplicationConfig > & GetSimulationApplications() const
SimulationJobRequest & WithIamRole(const char *value)
SimulationJobRequest & WithSimulationApplications(Aws::Vector< SimulationApplicationConfig > &&value)
SimulationJobRequest & WithCompute(Compute &&value)
SimulationJobRequest & WithDataSources(const Aws::Vector< DataSourceConfig > &value)
SimulationJobRequest & WithLoggingConfig(LoggingConfig &&value)
SimulationJobRequest & AddRobotApplications(const RobotApplicationConfig &value)
SimulationJobRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
SimulationJobRequest & WithIamRole(Aws::String &&value)
SimulationJobRequest & WithVpcConfig(VPCConfig &&value)
SimulationJobRequest & AddTags(Aws::String &&key, const Aws::String &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