Class SubscriptionSpecRoutesRules.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.dapr.v2alpha1.SubscriptionSpecRoutesRules.Builder
-
- Enclosing class:
- SubscriptionSpecRoutesRules
public static class SubscriptionSpecRoutesRules.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionSpecRoutesRules
build()
SubscriptionSpecRoutesRules.Builder
match(@NonNull java.lang.String match)
The optional CEL expression used to match the event.SubscriptionSpecRoutesRules.Builder
path(@NonNull java.lang.String path)
The path for events that match this rule.java.lang.String
toString()
-
-
-
Method Detail
-
match
public SubscriptionSpecRoutesRules.Builder match(@NonNull @NonNull java.lang.String match)
The optional CEL expression used to match the event. If the match is not specified, then the route is considered the default. The rules are tested in the order specified, so they should be define from most-to-least specific. The default route should appear last in the list.- Returns:
this
.
-
path
public SubscriptionSpecRoutesRules.Builder path(@NonNull @NonNull java.lang.String path)
The path for events that match this rule.- Returns:
this
.
-
build
public SubscriptionSpecRoutesRules build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-