public StoppingCondition withMaxPendingTimeInSeconds(Integer maxPendingTimeInSeconds) {
        setMaxPendingTimeInSeconds(maxPendingTimeInSeconds);
        return this;
    }
<p>
The maximum length of time, in seconds, that a training or compilation job can be pending before it is stopped.
</p>

@param maxPendingTimeInSeconds
       The maximum length of time, in seconds, that a training or compilation job can be pending before it is
       stopped.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/StoppingCondition.java