public CheckpointConfig withLocalPath(String localPath) {
        setLocalPath(localPath);
        return this;
    }
<p>
(Optional) The local directory where checkpoints are written. The default directory is
<code>/opt/ml/checkpoints/</code>.
</p>

@param localPath
       (Optional) The local directory where checkpoints are written. The default directory is
       <code>/opt/ml/checkpoints/</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/CheckpointConfig.java