public PublishPackageVersionRequest withFormat(PackageFormat format) {
        this.format = format.toString();
        return this;
    }
<p>
A format that specifies the type of the package version with the requested asset file.
</p>
<p>
The only supported value is <code>generic</code>.
</p>

@param format
       A format that specifies the type of the package version with the requested asset file.</p>
       <p>
       The only supported value is <code>generic</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see PackageFormat
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/PublishPackageVersionRequest.java