Criterion Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. Criterion
- com.
Implements
public final class Criterion
implements JsonSerializable<Criterion>
A matching criteria which matches routes based on route prefix, community, and AS path.
Constructor Summary
| Constructor | Description |
|---|---|
| Criterion() |
Creates an instance of Criterion class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
asPath()
Get the as |
| List<String> |
community()
Get the community property: List of BGP communities which this criteria matches. |
| static Criterion |
fromJson(JsonReader jsonReader)
Reads an instance of Criterion from the Json |
|
Route |
matchCondition()
Get the match |
| List<String> |
routePrefix()
Get the route |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Criterion |
withAsPath(List<String> asPath)
Set the as |
| Criterion |
withCommunity(List<String> community)
Set the community property: List of BGP communities which this criteria matches. |
| Criterion |
withMatchCondition(RouteMapMatchCondition matchCondition)
Set the match |
| Criterion |
withRoutePrefix(List<String> routePrefix)
Set the route |
Methods inherited from java.lang.Object
Constructor Details
Criterion
public Criterion()
Creates an instance of Criterion class.
Method Details
asPath
public List<String> asPath()
Get the asPath property: List of AS paths which this criteria matches.
Returns:
community
public List<String> community()
Get the community property: List of BGP communities which this criteria matches.
Returns:
fromJson
public static Criterion fromJson(JsonReader jsonReader)
Reads an instance of Criterion from the JsonReader.
Parameters:
Returns:
Throws:
matchCondition
public RouteMapMatchCondition matchCondition()
Get the matchCondition property: Match condition to apply RouteMap rules.
Returns:
routePrefix
public List<String> routePrefix()
Get the routePrefix property: List of route prefixes which this criteria matches.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAsPath
public Criterion withAsPath(List<String> asPath)
Set the asPath property: List of AS paths which this criteria matches.
Parameters:
Returns:
withCommunity
public Criterion withCommunity(List<String> community)
Set the community property: List of BGP communities which this criteria matches.
Parameters:
Returns:
withMatchCondition
public Criterion withMatchCondition(RouteMapMatchCondition matchCondition)
Set the matchCondition property: Match condition to apply RouteMap rules.
Parameters:
Returns:
withRoutePrefix
public Criterion withRoutePrefix(List<String> routePrefix)
Set the routePrefix property: List of route prefixes which this criteria matches.
Parameters:
Returns: