Modifier and Type | Method and Description |
---|---|
PathRule.Builder |
addAllPaths(List<String> paths)
The list of path patterns to match.
|
PathRule.Builder |
addPaths(String paths)
The list of path patterns to match.
|
PathRule |
build() |
PathRule.Builder |
clone() |
List<String> |
getPathsList()
The list of path patterns to match.
|
HttpRouteAction |
getRouteAction()
In response to a matching path, the load balancer performs advanced routing actions like URL
rewrites, header transformations, etc.
|
String |
getService()
The full or partial URL of the backend service resource to which traffic is directed if this
rule is matched.
|
HttpRedirectAction |
getUrlRedirect()
When a path pattern is matched, the request is redirected to a URL specified by urlRedirect.
|
PathRule.Builder |
mergeFrom(PathRule other) |
PathRule.Builder |
setRouteAction(HttpRouteAction routeAction)
In response to a matching path, the load balancer performs advanced routing actions like URL
rewrites, header transformations, etc.
|
PathRule.Builder |
setService(String service)
The full or partial URL of the backend service resource to which traffic is directed if this
rule is matched.
|
PathRule.Builder |
setUrlRedirect(HttpRedirectAction urlRedirect)
When a path pattern is matched, the request is redirected to a URL specified by urlRedirect.
|
public PathRule.Builder mergeFrom(PathRule other)
public List<String> getPathsList()
public PathRule.Builder addAllPaths(List<String> paths)
public PathRule.Builder addPaths(String paths)
public HttpRouteAction getRouteAction()
public PathRule.Builder setRouteAction(HttpRouteAction routeAction)
public String getService()
public PathRule.Builder setService(String service)
public HttpRedirectAction getUrlRedirect()
public PathRule.Builder setUrlRedirect(HttpRedirectAction urlRedirect)
public PathRule build()
public PathRule.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.