public ListAssetsRequest withHostIdFilter(String... hostIdFilter) {
        if (this.hostIdFilter == null) {
            setHostIdFilter(new java.util.ArrayList<String>(hostIdFilter.length));
        }
        for (String ele : hostIdFilter) {
            this.hostIdFilter.add(ele);
        }
        return this;
    }
<p>
Filters the results by the host ID of a Dedicated Host.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHostIdFilter(java.util.Collection)} or {@link #withHostIdFilter(java.util.Collection)} if you want to
override the existing values.
</p>

@param hostIdFilter
       Filters the results by the host ID of a Dedicated Host.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-outposts/src/main/java/com/amazonaws/services/outposts/model/ListAssetsRequest.java