// SetRoutes sets all routes or paths for API.
546564
func SetRoutes(router *gin.Engine) {
	if EnableRestAPI {
		route.RestV1SetRoutes(router)
	}
	if EnableStreamAPI {
		route.StreamV1SetRoutes(router)
	}
}
58285
func (a *GetCookiesArgs) SetURLs(urls []string) *GetCookiesArgs {
	a.URLs = urls
	return a
}
97859
func (s *UpdateRouteOutput) SetRequestModels(v map[string]*string) *UpdateRouteOutput {
	s.RequestModels = v
	return s
}
520331
func (s *ListFlowsOutput) SetFlows(v []*ListedFlow) *ListFlowsOutput {
	s.Flows = v
	return s
}
894713
func (s *WebsiteConfiguration) SetRoutingRules(v []*RoutingRule) *WebsiteConfiguration {
	s.RoutingRules = v
	return s
}
1283966
func (s *ContainerDefinition) SetLinks(v []*string) *ContainerDefinition {
	s.Links = v
	return s
}
838595
func (s *UpdateStageOutput) SetDefaultRouteSettings(v *RouteSettings) *UpdateStageOutput {
	s.DefaultRouteSettings = v
	return s
}
602985
func (s *GetRoutesOutput) SetItems(v []*Route) *GetRoutesOutput {
	s.Items = v
	return s
}
1258704
func (c *Client) SetIPs(r addressassignment.AssignmentRequest) error {
	return c.call("SetIPs", r, new(string))
}
146908
func (s *GetResourcesOutput) SetFolders(v []*FolderMetadata) *GetResourcesOutput {
	s.Folders = v
	return s
}
153168
func (s *CreateStageOutput) SetDefaultRouteSettings(v *RouteSettings) *CreateStageOutput {
	s.DefaultRouteSettings = v
	return s
}
159054
func (s *CreateRouteInput) SetRouteName(v string) *CreateRouteInput {
	s.RouteName = &v
	return s
}
520782
func (s *RouteRef) SetRouteName(v string) *RouteRef {
	s.RouteName = &v
	return s
}
1124828
func UpdateRoutes(newRoutes []Route) error {
	for i := range newRoutes {
		if newRoutes[i].ExpectedCode == 0 {
			newRoutes[i].ExpectedCode = 200
		}
		if newRoutes[i].Timeout == 0 {
			newRoutes[i].Timeout = 3000
		}
		if newRoutes[i].Attempts == 0 {
			newRoutes[i].Attempts = 3
		}
		for _, tgt := range newRoutes[i].Targets {
			prox := &proxy{targetUrl: tgt, fwdPath: newRoutes[i].FwdPath, prefixPath: newRoutes[i].Path}
			err := prox.initProxy()
			if err == nil {
				newRoutes[i].proxies = append(newRoutes[i].proxies, prox)
			} else {
				lumber.Error("[NANOBOX-ROUTER] Failed to update routes - %v", err)
				return err
			}
		}
	}

	routesMutex.Lock()
	routes = newRoutes
	routesMutex.Unlock()
	lumber.Trace("[NANOBOX-ROUTER] Routes updated")
	return nil
}
616976
func (i *ChannelInbound) SetRouter(router transport.Router) {
	i.transport.router = router
}
63774
func (ml *MockRouteCountLogger) SetRouter(router router.Router) {
	ml.logger.SetRouter(router)
}
51206
func (s *UpdateRouteOutput) SetRoute(v *RouteData) *UpdateRouteOutput {
	s.Route = v
	return s
}