public ConnectPeerConfiguration withBgpConfigurations(ConnectPeerBgpConfiguration... bgpConfigurations) {
        if (this.bgpConfigurations == null) {
            setBgpConfigurations(new java.util.ArrayList<ConnectPeerBgpConfiguration>(bgpConfigurations.length));
        }
        for (ConnectPeerBgpConfiguration ele : bgpConfigurations) {
            this.bgpConfigurations.add(ele);
        }
        return this;
    }
<p>
The Connect peer BGP configurations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setBgpConfigurations(java.util.Collection)} or {@link #withBgpConfigurations(java.util.Collection)} if
you want to override the existing values.
</p>

@param bgpConfigurations
       The Connect peer BGP configurations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/ConnectPeerConfiguration.java