public String getModelPackageType() {
        return this.modelPackageType;
    }
<p>
A filter that returns only the model packages of the specified type. This can be one of the following values.
</p>
<ul>
<li>
<p>
<code>UNVERSIONED</code> - List only unversioined models. This is the default value if no
<code>ModelPackageType</code> is specified.
</p>
</li>
<li>
<p>
<code>VERSIONED</code> - List only versioned models.
</p>
</li>
<li>
<p>
<code>BOTH</code> - List both versioned and unversioned models.
</p>
</li>
</ul>

@return A filter that returns only the model packages of the specified type. This can be one of the following
        values.</p>
        <ul>
        <li>
        <p>
        <code>UNVERSIONED</code> - List only unversioined models. This is the default value if no
        <code>ModelPackageType</code> is specified.
        </p>
        </li>
        <li>
        <p>
        <code>VERSIONED</code> - List only versioned models.
        </p>
        </li>
        <li>
        <p>
        <code>BOTH</code> - List both versioned and unversioned models.
        </p>
        </li>
@see ModelPackageType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListModelPackagesRequest.java