public CreateConnectPeerRequest withBgpOptions(BgpOptions bgpOptions) {
        setBgpOptions(bgpOptions);
        return this;
    }
<p>
The Connect peer BGP options. This only applies only when the protocol is <code>GRE</code>.
</p>

@param bgpOptions
       The Connect peer BGP options. This only applies only when the protocol is <code>GRE</code>.
@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/CreateConnectPeerRequest.java