public ListNetworksResult withNetworks(NetworkSummary... networks) {
        if (this.networks == null) {
            setNetworks(new java.util.ArrayList<NetworkSummary>(networks.length));
        }
        for (NetworkSummary ele : networks) {
            this.networks.add(ele);
        }
        return this;
    }
<p>
An array of <code>NetworkSummary</code> objects that contain configuration properties for each network.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNetworks(java.util.Collection)} or {@link #withNetworks(java.util.Collection)} if you want to override
the existing values.
</p>

@param networks
       An array of <code>NetworkSummary</code> objects that contain configuration properties for each network.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-managedblockchain/src/main/java/com/amazonaws/services/managedblockchain/model/ListNetworksResult.java