public LifecyclePolicyDetail withFilter(LifecyclePolicyDetailFilter filter) {
        setFilter(filter);
        return this;
    }
<p>
Specifies the resources that the lifecycle policy applies to.
</p>

@param filter
       Specifies the resources that the lifecycle policy applies to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/LifecyclePolicyDetail.java