Interface SimulationJobRequest.Builder

    • Method Detail

      • outputLocation

        SimulationJobRequest.Builder outputLocation​(OutputLocation outputLocation)
        Sets the value of the OutputLocation property for this object.
        Parameters:
        outputLocation - The new value for the OutputLocation property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • loggingConfig

        SimulationJobRequest.Builder loggingConfig​(LoggingConfig loggingConfig)
        Sets the value of the LoggingConfig property for this object.
        Parameters:
        loggingConfig - The new value for the LoggingConfig property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxJobDurationInSeconds

        SimulationJobRequest.Builder maxJobDurationInSeconds​(Long maxJobDurationInSeconds)

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

        Parameters:
        maxJobDurationInSeconds - The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • iamRole

        SimulationJobRequest.Builder iamRole​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • failureBehavior

        SimulationJobRequest.Builder failureBehavior​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FailureBehavior, FailureBehavior
      • failureBehavior

        SimulationJobRequest.Builder failureBehavior​(FailureBehavior 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FailureBehavior, FailureBehavior
      • useDefaultApplications

        SimulationJobRequest.Builder useDefaultApplications​(Boolean useDefaultApplications)

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

        Parameters:
        useDefaultApplications - A Boolean indicating whether to use default applications in the simulation job. Default applications include Gazebo, rqt, rviz and terminal access.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • robotApplications

        SimulationJobRequest.Builder robotApplications​(Collection<RobotApplicationConfig> robotApplications)

        The robot applications to use in the simulation job.

        Parameters:
        robotApplications - The robot applications to use in the simulation job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • robotApplications

        SimulationJobRequest.Builder robotApplications​(RobotApplicationConfig... robotApplications)

        The robot applications to use in the simulation job.

        Parameters:
        robotApplications - The robot applications to use in the simulation job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • simulationApplications

        SimulationJobRequest.Builder simulationApplications​(Collection<SimulationApplicationConfig> simulationApplications)

        The simulation applications to use in the simulation job.

        Parameters:
        simulationApplications - The simulation applications to use in the simulation job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • simulationApplications

        SimulationJobRequest.Builder simulationApplications​(SimulationApplicationConfig... simulationApplications)

        The simulation applications to use in the simulation job.

        Parameters:
        simulationApplications - The simulation applications to use in the simulation job.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataSources

        SimulationJobRequest.Builder dataSources​(Collection<DataSourceConfig> 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataSources

        SimulationJobRequest.Builder dataSources​(DataSourceConfig... 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dataSources

        SimulationJobRequest.Builder dataSources​(Consumer<DataSourceConfig.Builder>... 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.

        This is a convenience method that creates an instance of the DataSourceConfig.Builder avoiding the need to create one manually via DataSourceConfig.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #dataSources(List).

        Parameters:
        dataSources - a consumer that will call methods on DataSourceConfig.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #dataSources(java.util.Collection)
      • vpcConfig

        SimulationJobRequest.Builder vpcConfig​(VPCConfig vpcConfig)
        Sets the value of the VpcConfig property for this object.
        Parameters:
        vpcConfig - The new value for the VpcConfig property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • compute

        SimulationJobRequest.Builder compute​(Compute compute)

        Compute information for the simulation job

        Parameters:
        compute - Compute information for the simulation job
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        SimulationJobRequest.Builder tags​(Map<String,​String> tags)

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

        Parameters:
        tags - A map that contains tag keys and tag values that are attached to the simulation job request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.