Class Criterion
java.lang.Object
com.azure.resourcemanager.network.models.Criterion
A matching criteria which matches routes based on route prefix, community, and AS path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasPath()Get the asPath property: List of AS paths which this criteria matches.Get the community property: List of BGP communities which this criteria matches.Get the matchCondition property: Match condition to apply RouteMap rules.Get the routePrefix property: List of route prefixes which this criteria matches.voidvalidate()Validates the instance.withAsPath(List<String> asPath) Set the asPath property: List of AS paths which this criteria matches.withCommunity(List<String> community) Set the community property: List of BGP communities which this criteria matches.withMatchCondition(RouteMapMatchCondition matchCondition) Set the matchCondition property: Match condition to apply RouteMap rules.withRoutePrefix(List<String> routePrefix) Set the routePrefix property: List of route prefixes which this criteria matches.
-
Constructor Details
-
Criterion
public Criterion()Creates an instance of Criterion class.
-
-
Method Details
-
routePrefix
Get the routePrefix property: List of route prefixes which this criteria matches.- Returns:
- the routePrefix value.
-
withRoutePrefix
Set the routePrefix property: List of route prefixes which this criteria matches.- Parameters:
routePrefix- the routePrefix value to set.- Returns:
- the Criterion object itself.
-
community
Get the community property: List of BGP communities which this criteria matches.- Returns:
- the community value.
-
withCommunity
Set the community property: List of BGP communities which this criteria matches.- Parameters:
community- the community value to set.- Returns:
- the Criterion object itself.
-
asPath
Get the asPath property: List of AS paths which this criteria matches.- Returns:
- the asPath value.
-
withAsPath
Set the asPath property: List of AS paths which this criteria matches.- Parameters:
asPath- the asPath value to set.- Returns:
- the Criterion object itself.
-
matchCondition
Get the matchCondition property: Match condition to apply RouteMap rules.- Returns:
- the matchCondition value.
-
withMatchCondition
Set the matchCondition property: Match condition to apply RouteMap rules.- Parameters:
matchCondition- the matchCondition value to set.- Returns:
- the Criterion object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-