/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.robomaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a simulation job request. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SimulationJobRequest implements Serializable, Cloneable, StructuredPojo { private OutputLocation outputLocation; private LoggingConfig loggingConfig; /** ** The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. *
*/ private Long maxJobDurationInSeconds; /** ** 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. *
*/ private String iamRole; /** ** The failure behavior the simulation job. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
** A Boolean indicating whether to use default applications in the simulation job. Default applications include * Gazebo, rqt, rviz and terminal access. *
*/ private Boolean useDefaultApplications; /** ** The robot applications to use in the simulation job. *
*/ private java.util.List* The simulation applications to use in the simulation job. *
*/ private java.util.List
* 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.
*
* Compute information for the simulation job *
*/ private Compute compute; /** ** A map that contains tag keys and tag values that are attached to the simulation job request. *
*/ private java.util.Map* The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. *
* * @param maxJobDurationInSeconds * The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. */ public void setMaxJobDurationInSeconds(Long maxJobDurationInSeconds) { this.maxJobDurationInSeconds = maxJobDurationInSeconds; } /** ** The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. *
* * @return The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. */ public Long getMaxJobDurationInSeconds() { return this.maxJobDurationInSeconds; } /** ** The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. *
* * @param maxJobDurationInSeconds * The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withMaxJobDurationInSeconds(Long maxJobDurationInSeconds) { setMaxJobDurationInSeconds(maxJobDurationInSeconds); 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. *
* * @param 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. */ public void setIamRole(String iamRole) { this.iamRole = 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. *
* * @return 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. */ public String getIamRole() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withIamRole(String iamRole) { setIamRole(iamRole); return this; } /** ** The failure behavior the simulation job. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
** The failure behavior the simulation job. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
** The failure behavior the simulation job. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
** The failure behavior the simulation job. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
*
* Leaves the host running for its maximum timeout duration after a 4XX
error code.
*
* Stop the simulation job and terminate the instance. *
** A Boolean indicating whether to use default applications in the simulation job. Default applications include * Gazebo, rqt, rviz and terminal access. *
* * @param useDefaultApplications * A Boolean indicating whether to use default applications in the simulation job. Default applications * include Gazebo, rqt, rviz and terminal access. */ public void setUseDefaultApplications(Boolean useDefaultApplications) { this.useDefaultApplications = useDefaultApplications; } /** ** A Boolean indicating whether to use default applications in the simulation job. Default applications include * Gazebo, rqt, rviz and terminal access. *
* * @return A Boolean indicating whether to use default applications in the simulation job. Default applications * include Gazebo, rqt, rviz and terminal access. */ public Boolean getUseDefaultApplications() { return this.useDefaultApplications; } /** ** A Boolean indicating whether to use default applications in the simulation job. Default applications include * Gazebo, rqt, rviz and terminal access. *
* * @param useDefaultApplications * A Boolean indicating whether to use default applications in the simulation job. Default applications * include Gazebo, rqt, rviz and terminal access. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withUseDefaultApplications(Boolean useDefaultApplications) { setUseDefaultApplications(useDefaultApplications); return this; } /** ** A Boolean indicating whether to use default applications in the simulation job. Default applications include * Gazebo, rqt, rviz and terminal access. *
* * @return A Boolean indicating whether to use default applications in the simulation job. Default applications * include Gazebo, rqt, rviz and terminal access. */ public Boolean isUseDefaultApplications() { return this.useDefaultApplications; } /** ** The robot applications to use in the simulation job. *
* * @return The robot applications to use in the simulation job. */ public java.util.List* The robot applications to use in the simulation job. *
* * @param robotApplications * The robot applications to use in the simulation job. */ public void setRobotApplications(java.util.Collection* The robot applications to use in the simulation job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRobotApplications(java.util.Collection)} or {@link #withRobotApplications(java.util.Collection)} if * you want to override the existing values. *
* * @param robotApplications * The robot applications to use in the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withRobotApplications(RobotApplicationConfig... robotApplications) { if (this.robotApplications == null) { setRobotApplications(new java.util.ArrayList* The robot applications to use in the simulation job. *
* * @param robotApplications * The robot applications to use in the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withRobotApplications(java.util.Collection* The simulation applications to use in the simulation job. *
* * @return The simulation applications to use in the simulation job. */ public java.util.List* The simulation applications to use in the simulation job. *
* * @param simulationApplications * The simulation applications to use in the simulation job. */ public void setSimulationApplications(java.util.Collection* The simulation applications to use in the simulation job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSimulationApplications(java.util.Collection)} or * {@link #withSimulationApplications(java.util.Collection)} if you want to override the existing values. *
* * @param simulationApplications * The simulation applications to use in the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withSimulationApplications(SimulationApplicationConfig... simulationApplications) { if (this.simulationApplications == null) { setSimulationApplications(new java.util.ArrayList* The simulation applications to use in the simulation job. *
* * @param simulationApplications * The simulation applications to use in the simulation job. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withSimulationApplications(java.util.Collection
* 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.
*
/opt/robomaker/datasources/data_source_name
.
* There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig
objects.
*
* 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.
*
/opt/robomaker/datasources/data_source_name
.
* There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig
objects.
*
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataSources(java.util.Collection)} or {@link #withDataSources(java.util.Collection)} if you want to * override the existing values. *
* * @param 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.
*
* 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.
*
/opt/robomaker/datasources/data_source_name
.
* There is a limit of 100 files and a combined size of 25GB for all DataSourceConfig
objects.
*
* Compute information for the simulation job *
* * @param compute * Compute information for the simulation job */ public void setCompute(Compute compute) { this.compute = compute; } /** ** Compute information for the simulation job *
* * @return Compute information for the simulation job */ public Compute getCompute() { return this.compute; } /** ** Compute information for the simulation job *
* * @param compute * Compute information for the simulation job * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withCompute(Compute compute) { setCompute(compute); return this; } /** ** A map that contains tag keys and tag values that are attached to the simulation job request. *
* * @return A map that contains tag keys and tag values that are attached to the simulation job request. */ public java.util.Map* A map that contains tag keys and tag values that are attached to the simulation job request. *
* * @param tags * A map that contains tag keys and tag values that are attached to the simulation job request. */ public void setTags(java.util.Map* A map that contains tag keys and tag values that are attached to the simulation job request. *
* * @param tags * A map that contains tag keys and tag values that are attached to the simulation job request. * @return Returns a reference to this object so that method calls can be chained together. */ public SimulationJobRequest withTags(java.util.Map