public PublishPackageVersionRequest withAssetSHA256(String assetSHA256) {
        setAssetSHA256(assetSHA256);
        return this;
    }
<p>
The SHA256 hash of the <code>assetContent</code> to publish. This value must be calculated by the caller and
provided with the request (see <a
href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages"
>Publishing a generic package</a> in the <i>CodeArtifact User Guide</i>).
</p>
<p>
This value is used as an integrity check to verify that the <code>assetContent</code> has not changed after it
was originally sent.
</p>

@param assetSHA256
       The SHA256 hash of the <code>assetContent</code> to publish. This value must be calculated by the caller
       and provided with the request (see <a
       href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages"
       >Publishing a generic package</a> in the <i>CodeArtifact User Guide</i>).</p>
       <p>
       This value is used as an integrity check to verify that the <code>assetContent</code> has not changed
       after it was originally sent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/PublishPackageVersionRequest.java