public HyperParameterTrainingJobDefinition withRetryStrategy(RetryStrategy retryStrategy) {
        setRetryStrategy(retryStrategy);
        return this;
    }
<p>
The number of times to retry the job when the job fails due to an <code>InternalServerError</code>.
</p>

@param retryStrategy
       The number of times to retry the job when the job fails due to an <code>InternalServerError</code>.
@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/HyperParameterTrainingJobDefinition.java