/** * 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 #include #include namespace Aws { namespace RoboMaker { namespace Model { /** */ class CreateSimulationJobRequest : public RoboMakerRequest { public: AWS_ROBOMAKER_API CreateSimulationJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateSimulationJob"; } AWS_ROBOMAKER_API Aws::String SerializePayload() const override; /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateSimulationJobRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateSimulationJobRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateSimulationJobRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

Location for output files generated by the simulation job.

*/ inline const OutputLocation& GetOutputLocation() const{ return m_outputLocation; } /** *

Location for output files generated by the simulation job.

*/ inline bool OutputLocationHasBeenSet() const { return m_outputLocationHasBeenSet; } /** *

Location for output files generated by the simulation job.

*/ inline void SetOutputLocation(const OutputLocation& value) { m_outputLocationHasBeenSet = true; m_outputLocation = value; } /** *

Location for output files generated by the simulation job.

*/ inline void SetOutputLocation(OutputLocation&& value) { m_outputLocationHasBeenSet = true; m_outputLocation = std::move(value); } /** *

Location for output files generated by the simulation job.

*/ inline CreateSimulationJobRequest& WithOutputLocation(const OutputLocation& value) { SetOutputLocation(value); return *this;} /** *

Location for output files generated by the simulation job.

*/ inline CreateSimulationJobRequest& WithOutputLocation(OutputLocation&& value) { SetOutputLocation(std::move(value)); return *this;} /** *

The logging configuration.

*/ inline const LoggingConfig& GetLoggingConfig() const{ return m_loggingConfig; } /** *

The logging configuration.

*/ inline bool LoggingConfigHasBeenSet() const { return m_loggingConfigHasBeenSet; } /** *

The logging configuration.

*/ inline void SetLoggingConfig(const LoggingConfig& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = value; } /** *

The logging configuration.

*/ inline void SetLoggingConfig(LoggingConfig&& value) { m_loggingConfigHasBeenSet = true; m_loggingConfig = std::move(value); } /** *

The logging configuration.

*/ inline CreateSimulationJobRequest& WithLoggingConfig(const LoggingConfig& value) { SetLoggingConfig(value); return *this;} /** *

The logging configuration.

*/ inline CreateSimulationJobRequest& WithLoggingConfig(LoggingConfig&& value) { SetLoggingConfig(std::move(value)); return *this;} /** *

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 * seconds. When maxJobDurationInSeconds is reached, the simulation * job will status will transition to Completed.

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

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 * seconds. When maxJobDurationInSeconds is reached, the simulation * job will status will transition to Completed.

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

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 * seconds. When maxJobDurationInSeconds is reached, the simulation * job will status will transition to Completed.

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

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 * seconds. When maxJobDurationInSeconds is reached, the simulation * job will status will transition to Completed.

*/ inline CreateSimulationJobRequest& 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 CreateSimulationJobRequest& 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 CreateSimulationJobRequest& 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 CreateSimulationJobRequest& WithIamRole(const char* value) { SetIamRole(value); return *this;} /** *

The failure behavior the simulation job.

Continue
*

Leaves the instance 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 instance 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 instance 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 instance 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 instance running for its maximum timeout duration after a * 4XX error code.

Fail

Stop the simulation * job and terminate the instance.

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

The failure behavior the simulation job.

Continue
*

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

Fail

Stop the simulation * job and terminate the instance.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The robot application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

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

The simulation application to use in the simulation job.

*/ inline CreateSimulationJobRequest& 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 CreateSimulationJobRequest& 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 CreateSimulationJobRequest& 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 CreateSimulationJobRequest& 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 CreateSimulationJobRequest& AddDataSources(DataSourceConfig&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; } /** *

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

*/ 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.

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

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

*/ 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.

*/ 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& 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.

*/ inline CreateSimulationJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline const VPCConfig& GetVpcConfig() const{ return m_vpcConfig; } /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline void SetVpcConfig(const VPCConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline void SetVpcConfig(VPCConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline CreateSimulationJobRequest& WithVpcConfig(const VPCConfig& value) { SetVpcConfig(value); return *this;} /** *

If your simulation job accesses resources in a VPC, you provide this * parameter identifying the list of security group IDs and subnet IDs. These must * belong to the same VPC. You must provide at least one security group and one * subnet ID.

*/ inline CreateSimulationJobRequest& 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 CreateSimulationJobRequest& WithCompute(const Compute& value) { SetCompute(value); return *this;} /** *

Compute information for the simulation job.

*/ inline CreateSimulationJobRequest& WithCompute(Compute&& value) { SetCompute(std::move(value)); return *this;} private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; 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; Aws::Vector m_robotApplications; bool m_robotApplicationsHasBeenSet = false; Aws::Vector m_simulationApplications; bool m_simulationApplicationsHasBeenSet = false; Aws::Vector m_dataSources; bool m_dataSourcesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; VPCConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; Compute m_compute; bool m_computeHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws