public GetConnectionsRequest withFilter(GetConnectionsFilter filter) {
        setFilter(filter);
        return this;
    }
<p>
A filter that controls which connections are returned.
</p>

@param filter
       A filter that controls which connections are returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/GetConnectionsRequest.java