AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename OutputLocationT = OutputLocation>
55 void SetOutputLocation(OutputLocationT&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::forward<OutputLocationT>(value); }
56 template<typename OutputLocationT = OutputLocation>
57 SimulationJobRequest& WithOutputLocation(OutputLocationT&& value) { SetOutputLocation(std::forward<OutputLocationT>(value)); return *this;}
59
61
62 inline const LoggingConfig& GetLoggingConfig() const { return m_loggingConfig; }
63 inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; }
64 template<typename LoggingConfigT = LoggingConfig>
65 void SetLoggingConfig(LoggingConfigT&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::forward<LoggingConfigT>(value); }
66 template<typename LoggingConfigT = LoggingConfig>
67 SimulationJobRequest& WithLoggingConfig(LoggingConfigT&& value) { SetLoggingConfig(std::forward<LoggingConfigT>(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 template<typename IamRoleT = Aws::String>
90 void SetIamRole(IamRoleT&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::forward<IamRoleT>(value); }
91 template<typename IamRoleT = Aws::String>
92 SimulationJobRequest& WithIamRole(IamRoleT&& value) { SetIamRole(std::forward<IamRoleT>(value)); return *this;}
94
96
102 inline FailureBehavior GetFailureBehavior() const { return m_failureBehavior; }
103 inline bool FailureBehaviorHasBeenSet() const { return m_failureBehaviorHasBeenSet; }
104 inline void SetFailureBehavior(FailureBehavior value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; }
107
109
113 inline bool GetUseDefaultApplications() const { return m_useDefaultApplications; }
114 inline bool UseDefaultApplicationsHasBeenSet() const { return m_useDefaultApplicationsHasBeenSet; }
115 inline void SetUseDefaultApplications(bool value) { m_useDefaultApplicationsHasBeenSet = true; m_useDefaultApplications = value; }
118
120
123 inline const Aws::Vector<RobotApplicationConfig>& GetRobotApplications() const { return m_robotApplications; }
124 inline bool RobotApplicationsHasBeenSet() const { return m_robotApplicationsHasBeenSet; }
125 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
126 void SetRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::forward<RobotApplicationsT>(value); }
127 template<typename RobotApplicationsT = Aws::Vector<RobotApplicationConfig>>
128 SimulationJobRequest& WithRobotApplications(RobotApplicationsT&& value) { SetRobotApplications(std::forward<RobotApplicationsT>(value)); return *this;}
129 template<typename RobotApplicationsT = RobotApplicationConfig>
130 SimulationJobRequest& AddRobotApplications(RobotApplicationsT&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.emplace_back(std::forward<RobotApplicationsT>(value)); return *this; }
132
134
137 inline const Aws::Vector<SimulationApplicationConfig>& GetSimulationApplications() const { return m_simulationApplications; }
138 inline bool SimulationApplicationsHasBeenSet() const { return m_simulationApplicationsHasBeenSet; }
139 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
140 void SetSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::forward<SimulationApplicationsT>(value); }
141 template<typename SimulationApplicationsT = Aws::Vector<SimulationApplicationConfig>>
142 SimulationJobRequest& WithSimulationApplications(SimulationApplicationsT&& value) { SetSimulationApplications(std::forward<SimulationApplicationsT>(value)); return *this;}
143 template<typename SimulationApplicationsT = SimulationApplicationConfig>
144 SimulationJobRequest& AddSimulationApplications(SimulationApplicationsT&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.emplace_back(std::forward<SimulationApplicationsT>(value)); return *this; }
146
148
155 inline const Aws::Vector<DataSourceConfig>& GetDataSources() const { return m_dataSources; }
156 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
157 template<typename DataSourcesT = Aws::Vector<DataSourceConfig>>
158 void SetDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::forward<DataSourcesT>(value); }
159 template<typename DataSourcesT = Aws::Vector<DataSourceConfig>>
160 SimulationJobRequest& WithDataSources(DataSourcesT&& value) { SetDataSources(std::forward<DataSourcesT>(value)); return *this;}
161 template<typename DataSourcesT = DataSourceConfig>
162 SimulationJobRequest& AddDataSources(DataSourcesT&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.emplace_back(std::forward<DataSourcesT>(value)); return *this; }
164
166
167 inline const VPCConfig& GetVpcConfig() const { return m_vpcConfig; }
168 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
169 template<typename VpcConfigT = VPCConfig>
170 void SetVpcConfig(VpcConfigT&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::forward<VpcConfigT>(value); }
171 template<typename VpcConfigT = VPCConfig>
172 SimulationJobRequest& WithVpcConfig(VpcConfigT&& value) { SetVpcConfig(std::forward<VpcConfigT>(value)); return *this;}
174
176
179 inline const Compute& GetCompute() const { return m_compute; }
180 inline bool ComputeHasBeenSet() const { return m_computeHasBeenSet; }
181 template<typename ComputeT = Compute>
182 void SetCompute(ComputeT&& value) { m_computeHasBeenSet = true; m_compute = std::forward<ComputeT>(value); }
183 template<typename ComputeT = Compute>
184 SimulationJobRequest& WithCompute(ComputeT&& value) { SetCompute(std::forward<ComputeT>(value)); return *this;}
186
188
192 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 SimulationJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
198 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 SimulationJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
201 }
203 private:
204
205 OutputLocation m_outputLocation;
206 bool m_outputLocationHasBeenSet = false;
207
208 LoggingConfig m_loggingConfig;
209 bool m_loggingConfigHasBeenSet = false;
210
211 long long m_maxJobDurationInSeconds{0};
212 bool m_maxJobDurationInSecondsHasBeenSet = false;
213
214 Aws::String m_iamRole;
215 bool m_iamRoleHasBeenSet = false;
216
217 FailureBehavior m_failureBehavior{FailureBehavior::NOT_SET};
218 bool m_failureBehaviorHasBeenSet = false;
219
220 bool m_useDefaultApplications{false};
221 bool m_useDefaultApplicationsHasBeenSet = false;
222
223 Aws::Vector<RobotApplicationConfig> m_robotApplications;
224 bool m_robotApplicationsHasBeenSet = false;
225
226 Aws::Vector<SimulationApplicationConfig> m_simulationApplications;
227 bool m_simulationApplicationsHasBeenSet = false;
228
229 Aws::Vector<DataSourceConfig> m_dataSources;
230 bool m_dataSourcesHasBeenSet = false;
231
232 VPCConfig m_vpcConfig;
233 bool m_vpcConfigHasBeenSet = false;
234
235 Compute m_compute;
236 bool m_computeHasBeenSet = false;
237
239 bool m_tagsHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace RoboMaker
244} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SimulationJobRequest & WithCompute(ComputeT &&value)
SimulationJobRequest & WithIamRole(IamRoleT &&value)
SimulationJobRequest & AddSimulationApplications(SimulationApplicationsT &&value)
AWS_ROBOMAKER_API SimulationJobRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRobotApplications(RobotApplicationsT &&value)
void SetSimulationApplications(SimulationApplicationsT &&value)
SimulationJobRequest & AddDataSources(DataSourcesT &&value)
SimulationJobRequest & WithRobotApplications(RobotApplicationsT &&value)
SimulationJobRequest & WithTags(TagsT &&value)
SimulationJobRequest & WithLoggingConfig(LoggingConfigT &&value)
SimulationJobRequest & WithSimulationApplications(SimulationApplicationsT &&value)
const OutputLocation & GetOutputLocation() const
AWS_ROBOMAKER_API SimulationJobRequest(Aws::Utils::Json::JsonView jsonValue)
SimulationJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< DataSourceConfig > & GetDataSources() const
AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SimulationJobRequest & WithMaxJobDurationInSeconds(long long value)
void SetOutputLocation(OutputLocationT &&value)
SimulationJobRequest & WithFailureBehavior(FailureBehavior value)
SimulationJobRequest & WithUseDefaultApplications(bool value)
SimulationJobRequest & WithOutputLocation(OutputLocationT &&value)
const Aws::Vector< RobotApplicationConfig > & GetRobotApplications() const
SimulationJobRequest & WithVpcConfig(VpcConfigT &&value)
const Aws::Vector< SimulationApplicationConfig > & GetSimulationApplications() const
SimulationJobRequest & AddRobotApplications(RobotApplicationsT &&value)
SimulationJobRequest & WithDataSources(DataSourcesT &&value)
AWS_ROBOMAKER_API SimulationJobRequest()=default
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