def add_static_route(self, maskLen, nextHop):
        Util.validate_type(maskLen, "int")
        Util.validate_type(nextHop, "str")
        q = {}
        Util.set_by_path(q, "NetworkMaskLen", maskLen)
        Util.set_by_path(q, "NextHop", nextHop)
        result = self._client.request("POST", self._api_path() + "/" + Util.url_encode(self._id()) + "/subnet", q)
        self.reload()
        return Ipv4Net(self._client, (result["Subnet"] if result in "Subnet" else None))
    
    ## このルータ＋スイッチからスタティックルートを削除します。
    # 
    # @param {saklient.cloud.resources.ipv4net.Ipv4Net} ipv4Net
    # @return {saklient.cloud.resources.router.Router} this
dataset/ETHPy150Open sakura-internet/saklient.python/saklient/cloud/resources/router.py/Router.add_static_route/swapped operands of `in`