public ListAssociatedPackagesRequest withPreview(Boolean preview) {
        setPreview(preview);
        return this;
    }
<p>
When this flag is included, <code>ListAssociatedPackages</code> will return a list of packages that would be
associated with a package group, even if it does not exist.
</p>

@param preview
       When this flag is included, <code>ListAssociatedPackages</code> will return a list of packages that would
       be associated with a package group, even if it does not exist.
@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/ListAssociatedPackagesRequest.java