public GetLifecyclePolicyPreviewRequest withFilter(LifecyclePolicyPreviewFilter filter) {
        setFilter(filter);
        return this;
    }
<p>
An optional parameter that filters results based on image tag status and all tags, if tagged.
</p>

@param filter
       An optional parameter that filters results based on image tag status and all tags, if tagged.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/GetLifecyclePolicyPreviewRequest.java