public BrokerInstance withEndpoints(String... endpoints) {
        if (this.endpoints == null) {
            setEndpoints(new java.util.ArrayList<String>(endpoints.length));
        }
        for (String ele : endpoints) {
            this.endpoints.add(ele);
        }
        return this;
    }
public BrokerInstance withEndpoints ( String ... endpoints ) { if ( this . endpoints == null ) { setEndpoints ( new java . util . ArrayList < String > ( endpoints . length ) ) ; } for ( String ele : endpoints ) { this . endpoints . add ( ele ) ; } return this ; }
The broker's wire-level protocol endpoints.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEndpoints(java.util.Collection)} or {@link #withEndpoints(java.util.Collection)} if you want to
override the existing values.
</p>

@param endpoints
The broker's wire-level protocol endpoints.
@return Returns a reference to this object so that method calls can be chained together.