public ListHubsResult withHubSummaries(HubInfo... hubSummaries) {
        if (this.hubSummaries == null) {
            setHubSummaries(new java.util.ArrayList<HubInfo>(hubSummaries.length));
        }
        for (HubInfo ele : hubSummaries) {
            this.hubSummaries.add(ele);
        }
        return this;
    }
<p>
The summaries of the listed hubs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHubSummaries(java.util.Collection)} or {@link #withHubSummaries(java.util.Collection)} if you want to
override the existing values.
</p>

@param hubSummaries
       The summaries of the listed hubs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ListHubsResult.java