Class SubscriptionSpecRoutesRules
- java.lang.Object
-
- com.marcnuri.yakc.model.io.dapr.v2alpha1.SubscriptionSpecRoutesRules
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class SubscriptionSpecRoutesRules extends java.lang.Object implements com.marcnuri.yakc.model.Model
Rule is used to specify the condition for sending a message to a specific path.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscriptionSpecRoutesRules.Builder
-
Constructor Summary
Constructors Constructor Description SubscriptionSpecRoutesRules()
SubscriptionSpecRoutesRules(@NonNull java.lang.String match, @NonNull java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionSpecRoutesRules.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getMatch()
The optional CEL expression used to match the event.@NonNull java.lang.String
getPath()
The path for events that match this rule.int
hashCode()
void
setMatch(@NonNull java.lang.String match)
The optional CEL expression used to match the event.void
setPath(@NonNull java.lang.String path)
The path for events that match this rule.SubscriptionSpecRoutesRules.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static SubscriptionSpecRoutesRules.Builder builder()
-
toBuilder
public SubscriptionSpecRoutesRules.Builder toBuilder()
-
getMatch
@NonNull public @NonNull java.lang.String getMatch()
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.
-
getPath
@NonNull public @NonNull java.lang.String getPath()
The path for events that match this rule.
-
setMatch
public void setMatch(@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.
-
setPath
public void setPath(@NonNull @NonNull java.lang.String path)
The path for events that match this rule.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-