public void setTimeoutInSeconds(Long timeoutInSeconds) {
        this.timeoutInSeconds = timeoutInSeconds;
    }
<p>
The amount of time, in seconds, to wait for the batch to complete.
</p>
<p>
If a batch times out, and there are pending requests that were failing due to an internal failure (like
<code>InternalServiceError</code>), they will be moved to the failed list and the batch status will be
<code>Failed</code>. If the pending requests were failing for any other reason, the failed pending requests will
be moved to the failed list and the batch status will be <code>TimedOut</code>.
</p>

@param timeoutInSeconds
       The amount of time, in seconds, to wait for the batch to complete. </p>
       <p>
       If a batch times out, and there are pending requests that were failing due to an internal failure (like
       <code>InternalServiceError</code>), they will be moved to the failed list and the batch status will be
       <code>Failed</code>. If the pending requests were failing for any other reason, the failed pending
       requests will be moved to the failed list and the batch status will be <code>TimedOut</code>.
aws-java-sdk-robomaker/src/main/java/com/amazonaws/services/robomaker/model/BatchPolicy.java