code: public CreatePublicVirtualInterfaceResult withBgpPeers(BGPPeer... bgpPeers) {
          if (this.bgpPeers == null) {
              setBgpPeers(new com.amazonaws.internal.SdkInternalList<BGPPeer>(bgpPeers.length));
          }
          for (BGPPeer ele : bgpPeers) {
              this.bgpPeers.add(ele);
          }
          return this;
      }
docs: <p>
  The BGP peers configured on this virtual interface.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setBgpPeers(java.util.Collection)} or {@link #withBgpPeers(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param bgpPeers
  The BGP peers configured on this virtual interface.
  @return Returns a reference to this object so that method calls can be chained together.