public PackageDetails withPackageType(PackageType packageType) {
        this.packageType = packageType.toString();
        return this;
    }
<p>
The type of package.
</p>

@param packageType
       The type of package.
@return Returns a reference to this object so that method calls can be chained together.
@see PackageType
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/PackageDetails.java