public VpnConnectionOptions withStaticRoutesOnly(Boolean staticRoutesOnly) {
        setStaticRoutesOnly(staticRoutesOnly);
        return this;
    }
<p>
Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't
support BGP.
</p>

@param staticRoutesOnly
       Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that
       don't support BGP.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/VpnConnectionOptions.java