/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RoboMaker { namespace Model { /** *

Information about a simulation job request.

See Also:

AWS * API Reference

*/ class SimulationJobRequest { public: AWS_ROBOMAKER_API SimulationJobRequest(); AWS_ROBOMAKER_API SimulationJobRequest(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API SimulationJobRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; } inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; } inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; } inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); } inline SimulationJobRequest& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;} inline SimulationJobRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;} inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; } inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; } inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; } inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); } inline SimulationJobRequest& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;} inline SimulationJobRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;} /** *

The maximum simulation job duration in seconds. The value must be 8 days * (691,200 seconds) or less.

*/ inline long long GetMaxJobDurationInSeconds() const{ return m_maxJobDurationInSeconds; } /** *

The maximum simulation job duration in seconds. The value must be 8 days * (691,200 seconds) or less.

*/ inline bool MaxJobDurationInSecondsHasBeenSet() const { return m_maxJobDurationInSecondsHasBeenSet; } /** *

The maximum simulation job duration in seconds. The value must be 8 days * (691,200 seconds) or less.

*/ inline void SetMaxJobDurationInSeconds(long long value) { m_maxJobDurationInSecondsHasBeenSet = true; m_maxJobDurationInSeconds = value; } /** *

The maximum simulation job duration in seconds. The value must be 8 days * (691,200 seconds) or less.

*/ inline SimulationJobRequest& WithMaxJobDurationInSeconds(long long value) { SetMaxJobDurationInSeconds(value); return *this;} /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline const Aws::String& GetIamRole() const{ return m_iamRole; } /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; } /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; } /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); } /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); } /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline SimulationJobRequest& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;} /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline SimulationJobRequest& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;} /** *

The IAM role name that allows the simulation instance to call the AWS APIs * that are specified in its associated policies on your behalf. This is how * credentials are passed in to your simulation job.

*/ inline SimulationJobRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;} /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline const FailureBehavior& GetFailureBehavior() const{ return m_failureBehavior; } /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline bool FailureBehaviorHasBeenSet() const { return m_failureBehaviorHasBeenSet; } /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline void SetFailureBehavior(const FailureBehavior& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = value; } /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline void SetFailureBehavior(FailureBehavior&& value) { m_failureBehaviorHasBeenSet = true; m_failureBehavior = std::move(value); } /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline SimulationJobRequest& WithFailureBehavior(const FailureBehavior& value) { SetFailureBehavior(value); return *this;} /** *

The failure behavior the simulation job.

Continue
*

Leaves the host running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

*/ inline SimulationJobRequest& WithFailureBehavior(FailureBehavior&& value) { SetFailureBehavior(std::move(value)); return *this;} /** *

A Boolean indicating whether to use default applications in the simulation * job. Default applications include Gazebo, rqt, rviz and terminal access.

*/ inline bool GetUseDefaultApplications() const{ return m_useDefaultApplications; } /** *

A Boolean indicating whether to use default applications in the simulation * job. Default applications include Gazebo, rqt, rviz and terminal access.

*/ inline bool UseDefaultApplicationsHasBeenSet() const { return m_useDefaultApplicationsHasBeenSet; } /** *

A Boolean indicating whether to use default applications in the simulation * job. Default applications include Gazebo, rqt, rviz and terminal access.

*/ inline void SetUseDefaultApplications(bool value) { m_useDefaultApplicationsHasBeenSet = true; m_useDefaultApplications = value; } /** *

A Boolean indicating whether to use default applications in the simulation * job. Default applications include Gazebo, rqt, rviz and terminal access.

*/ inline SimulationJobRequest& WithUseDefaultApplications(bool value) { SetUseDefaultApplications(value); return *this;} /** *

The robot applications to use in the simulation job.

*/ inline const Aws::Vector& GetRobotApplications() const{ return m_robotApplications; } /** *

The robot applications to use in the simulation job.

*/ inline bool RobotApplicationsHasBeenSet() const { return m_robotApplicationsHasBeenSet; } /** *

The robot applications to use in the simulation job.

*/ inline void SetRobotApplications(const Aws::Vector& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = value; } /** *

The robot applications to use in the simulation job.

*/ inline void SetRobotApplications(Aws::Vector&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications = std::move(value); } /** *

The robot applications to use in the simulation job.

*/ inline SimulationJobRequest& WithRobotApplications(const Aws::Vector& value) { SetRobotApplications(value); return *this;} /** *

The robot applications to use in the simulation job.

*/ inline SimulationJobRequest& WithRobotApplications(Aws::Vector&& value) { SetRobotApplications(std::move(value)); return *this;} /** *

The robot applications to use in the simulation job.

*/ inline SimulationJobRequest& AddRobotApplications(const RobotApplicationConfig& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(value); return *this; } /** *

The robot applications to use in the simulation job.

*/ inline SimulationJobRequest& AddRobotApplications(RobotApplicationConfig&& value) { m_robotApplicationsHasBeenSet = true; m_robotApplications.push_back(std::move(value)); return *this; } /** *

The simulation applications to use in the simulation job.

*/ inline const Aws::Vector& GetSimulationApplications() const{ return m_simulationApplications; } /** *

The simulation applications to use in the simulation job.

*/ inline bool SimulationApplicationsHasBeenSet() const { return m_simulationApplicationsHasBeenSet; } /** *

The simulation applications to use in the simulation job.

*/ inline void SetSimulationApplications(const Aws::Vector& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = value; } /** *

The simulation applications to use in the simulation job.

*/ inline void SetSimulationApplications(Aws::Vector&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications = std::move(value); } /** *

The simulation applications to use in the simulation job.

*/ inline SimulationJobRequest& WithSimulationApplications(const Aws::Vector& value) { SetSimulationApplications(value); return *this;} /** *

The simulation applications to use in the simulation job.

*/ inline SimulationJobRequest& WithSimulationApplications(Aws::Vector&& value) { SetSimulationApplications(std::move(value)); return *this;} /** *

The simulation applications to use in the simulation job.

*/ inline SimulationJobRequest& AddSimulationApplications(const SimulationApplicationConfig& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(value); return *this; } /** *

The simulation applications to use in the simulation job.

*/ inline SimulationJobRequest& AddSimulationApplications(SimulationApplicationConfig&& value) { m_simulationApplicationsHasBeenSet = true; m_simulationApplications.push_back(std::move(value)); return *this; } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline const Aws::Vector& GetDataSources() const{ return m_dataSources; } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline void SetDataSources(const Aws::Vector& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline void SetDataSources(Aws::Vector&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline SimulationJobRequest& WithDataSources(const Aws::Vector& value) { SetDataSources(value); return *this;} /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline SimulationJobRequest& WithDataSources(Aws::Vector&& value) { SetDataSources(std::move(value)); return *this;} /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline SimulationJobRequest& AddDataSources(const DataSourceConfig& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; } /** *

Specify data sources to mount read-only files from S3 into your simulation. * These files are available under * /opt/robomaker/datasources/data_source_name.

There * is a limit of 100 files and a combined size of 25GB for all * DataSourceConfig objects.

*/ inline SimulationJobRequest& AddDataSources(DataSourceConfig&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; } inline const VPCConfig& GetVpcConfig() const{ return m_vpcConfig; } inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } inline void SetVpcConfig(const VPCConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } inline void SetVpcConfig(VPCConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } inline SimulationJobRequest& WithVpcConfig(const VPCConfig& value) { SetVpcConfig(value); return *this;} inline SimulationJobRequest& WithVpcConfig(VPCConfig&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

Compute information for the simulation job

*/ inline const Compute& GetCompute() const{ return m_compute; } /** *

Compute information for the simulation job

*/ inline bool ComputeHasBeenSet() const { return m_computeHasBeenSet; } /** *

Compute information for the simulation job

*/ inline void SetCompute(const Compute& value) { m_computeHasBeenSet = true; m_compute = value; } /** *

Compute information for the simulation job

*/ inline void SetCompute(Compute&& value) { m_computeHasBeenSet = true; m_compute = std::move(value); } /** *

Compute information for the simulation job

*/ inline SimulationJobRequest& WithCompute(const Compute& value) { SetCompute(value); return *this;} /** *

Compute information for the simulation job

*/ inline SimulationJobRequest& WithCompute(Compute&& value) { SetCompute(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map that contains tag keys and tag values that are attached to the * simulation job request.

*/ inline SimulationJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: OutputLocation m_outputLocation; bool m_outputLocationHasBeenSet = false; LoggingConfig m_loggingConfig; bool m_loggingConfigHasBeenSet = false; long long m_maxJobDurationInSeconds; bool m_maxJobDurationInSecondsHasBeenSet = false; Aws::String m_iamRole; bool m_iamRoleHasBeenSet = false; FailureBehavior m_failureBehavior; bool m_failureBehaviorHasBeenSet = false; bool m_useDefaultApplications; bool m_useDefaultApplicationsHasBeenSet = false; Aws::Vector m_robotApplications; bool m_robotApplicationsHasBeenSet = false; Aws::Vector m_simulationApplications; bool m_simulationApplicationsHasBeenSet = false; Aws::Vector m_dataSources; bool m_dataSourcesHasBeenSet = false; VPCConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; Compute m_compute; bool m_computeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws