public void setFilter(java.util.Collection<Filter> filter) {
        if (filter == null) {
            this.filter = null;
            return;
        }

        this.filter = new com.amazonaws.internal.SdkInternalList<Filter>(filter);
    }
<p>
The filters.
</p>
<ul>
<li>
<p>
<code>instance-family</code> - The instance family of the offering (for example, <code>m4</code>).
</p>
</li>
<li>
<p>
<code>payment-option</code> - The payment option (<code>NoUpfront</code> | <code>PartialUpfront</code> |
<code>AllUpfront</code>).
</p>
</li>
</ul>

@param filter
       The filters.</p>
       <ul>
       <li>
       <p>
       <code>instance-family</code> - The instance family of the offering (for example, <code>m4</code>).
       </p>
       </li>
       <li>
       <p>
       <code>payment-option</code> - The payment option (<code>NoUpfront</code> | <code>PartialUpfront</code> |
       <code>AllUpfront</code>).
       </p>
       </li>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeHostReservationOfferingsRequest.java