customErrorResponsePolicy = $customErrorResponsePolicy; } /** * @return CustomErrorResponsePolicy */ public function getCustomErrorResponsePolicy() { return $this->customErrorResponsePolicy; } /** * The list of path patterns to match. Each must start with / and the only * place a * is allowed is at the end following a /. The string fed to the * path matcher does not include any text after the first ? or #, and those * chars are not allowed here. * * @param string[] $paths */ public function setPaths($paths) { $this->paths = $paths; } /** * @return string[] */ public function getPaths() { return $this->paths; } /** * In response to a matching path, the load balancer performs advanced routing * actions, such as URL rewrites and header transformations, before forwarding * the request to the selected backend. * * Only one of urlRedirect, service orrouteAction.weightedBackendService can * be set. * * URL maps for classic Application Load Balancers only support the urlRewrite * action within a path rule'srouteAction. * * @param HttpRouteAction $routeAction */ public function setRouteAction(HttpRouteAction $routeAction) { $this->routeAction = $routeAction; } /** * @return HttpRouteAction */ public function getRouteAction() { return $this->routeAction; } /** * The full or partial URL of the backend service resource to which traffic is * directed if this rule is matched. If routeAction is also specified, * advanced routing actions, such as URL rewrites, take effect before sending * the request to the backend. * * Only one of urlRedirect, service orrouteAction.weightedBackendService can * be set. * * @param string $service */ public function setService($service) { $this->service = $service; } /** * @return string */ public function getService() { return $this->service; } /** * When a path pattern is matched, the request is redirected to a URL * specified by urlRedirect. * * Only one of urlRedirect, service orrouteAction.weightedBackendService can * be set. * * Not supported when the URL map is bound to a target gRPC proxy. * * @param HttpRedirectAction $urlRedirect */ public function setUrlRedirect(HttpRedirectAction $urlRedirect) { $this->urlRedirect = $urlRedirect; } /** * @return HttpRedirectAction */ public function getUrlRedirect() { return $this->urlRedirect; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PathRule::class, 'Google_Service_Compute_PathRule');