public static class HttpRouteRule.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpRouteRule.Builder |
addAllMatchRules(List<HttpRouteRuleMatch> matchRules) |
HttpRouteRule.Builder |
addMatchRules(HttpRouteRuleMatch matchRules) |
HttpRouteRule |
build() |
HttpRouteRule.Builder |
clone() |
HttpHeaderAction |
getHeaderAction()
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
List<HttpRouteRuleMatch> |
getMatchRulesList() |
HttpRouteAction |
getRouteAction()
In response to a matching matchRule, 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 this rule is matched, the request is redirected to a URL specified by urlRedirect.
|
HttpRouteRule.Builder |
mergeFrom(HttpRouteRule other) |
HttpRouteRule.Builder |
setHeaderAction(HttpHeaderAction headerAction)
Specifies changes to request and response headers that need to take effect for the selected
backendService.
|
HttpRouteRule.Builder |
setRouteAction(HttpRouteAction routeAction)
In response to a matching matchRule, the load balancer performs advanced routing actions like
URL rewrites, header transformations, etc.
|
HttpRouteRule.Builder |
setService(String service)
The full or partial URL of the backend service resource to which traffic is directed if this
rule is matched.
|
HttpRouteRule.Builder |
setUrlRedirect(HttpRedirectAction urlRedirect)
When this rule is matched, the request is redirected to a URL specified by urlRedirect.
|
public HttpRouteRule.Builder mergeFrom(HttpRouteRule other)
public HttpHeaderAction getHeaderAction()
public HttpRouteRule.Builder setHeaderAction(HttpHeaderAction headerAction)
public List<HttpRouteRuleMatch> getMatchRulesList()
public HttpRouteRule.Builder addAllMatchRules(List<HttpRouteRuleMatch> matchRules)
public HttpRouteRule.Builder addMatchRules(HttpRouteRuleMatch matchRules)
public HttpRouteAction getRouteAction()
public HttpRouteRule.Builder setRouteAction(HttpRouteAction routeAction)
public String getService()
public HttpRouteRule.Builder setService(String service)
public HttpRedirectAction getUrlRedirect()
public HttpRouteRule.Builder setUrlRedirect(HttpRedirectAction urlRedirect)
public HttpRouteRule build()
public HttpRouteRule.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.