Class GRPCRouteMatch
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.GRPCRouteMatch
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<GRPCRouteMatchBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class GRPCRouteMatch extends Object implements io.fabric8.kubernetes.api.builder.Editable<GRPCRouteMatchBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:
``` matches:
- method:
type: Exact
service: "foo"
headers:
- name: "version"
value "v1"
```
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GRPCRouteMatch()
No args constructor for use in serializationGRPCRouteMatch(List<GRPCHeaderMatch> headers, GRPCMethodMatch method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GRPCRouteMatchBuilder
edit()
Map<String,Object>
getAdditionalProperties()
List<GRPCHeaderMatch>
getHeaders()
Headers specifies gRPC request header matchers.GRPCMethodMatch
getMethod()
GRPCRouteMatch defines the predicate used to match requests to a given action.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setHeaders(List<GRPCHeaderMatch> headers)
Headers specifies gRPC request header matchers.void
setMethod(GRPCMethodMatch method)
GRPCRouteMatch defines the predicate used to match requests to a given action.GRPCRouteMatchBuilder
toBuilder()
-
-
-
Constructor Detail
-
GRPCRouteMatch
public GRPCRouteMatch()
No args constructor for use in serialization
-
GRPCRouteMatch
public GRPCRouteMatch(List<GRPCHeaderMatch> headers, GRPCMethodMatch method)
-
-
Method Detail
-
getHeaders
public List<GRPCHeaderMatch> getHeaders()
Headers specifies gRPC request header matchers. Multiple match values are ANDed together, meaning, a request MUST match all the specified headers to select the route.
-
setHeaders
public void setHeaders(List<GRPCHeaderMatch> headers)
Headers specifies gRPC request header matchers. Multiple match values are ANDed together, meaning, a request MUST match all the specified headers to select the route.
-
getMethod
public GRPCMethodMatch getMethod()
GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:
``` matches:
- method:
type: Exact
service: "foo"
headers:
- name: "version"
value "v1"
```
-
setMethod
public void setMethod(GRPCMethodMatch method)
GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header:
``` matches:
- method:
type: Exact
service: "foo"
headers:
- name: "version"
value "v1"
```
-
edit
public GRPCRouteMatchBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<GRPCRouteMatchBuilder>
-
toBuilder
public GRPCRouteMatchBuilder toBuilder()
-
-