Class RoutingPolicy
- java.lang.Object
-
- com.azure.resourcemanager.network.models.RoutingPolicy
-
public final class RoutingPolicy extends Object
The routing policy object used in a RoutingIntent resource.
-
-
Constructor Summary
Constructors Constructor Description RoutingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>destinations()Get the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).Stringname()Get the name property: The unique name for the routing policy.StringnextHop()Get the nextHop property: The next hop resource id on which this routing policy is applicable to.voidvalidate()Validates the instance.RoutingPolicywithDestinations(List<String> destinations)Set the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).RoutingPolicywithName(String name)Set the name property: The unique name for the routing policy.RoutingPolicywithNextHop(String nextHop)Set the nextHop property: The next hop resource id on which this routing policy is applicable to.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The unique name for the routing policy.- Returns:
- the name value.
-
withName
public RoutingPolicy withName(String name)
Set the name property: The unique name for the routing policy.- Parameters:
name- the name value to set.- Returns:
- the RoutingPolicy object itself.
-
destinations
public List<String> destinations()
Get the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).- Returns:
- the destinations value.
-
withDestinations
public RoutingPolicy withDestinations(List<String> destinations)
Set the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, PrivateTraffic).- Parameters:
destinations- the destinations value to set.- Returns:
- the RoutingPolicy object itself.
-
nextHop
public String nextHop()
Get the nextHop property: The next hop resource id on which this routing policy is applicable to.- Returns:
- the nextHop value.
-
withNextHop
public RoutingPolicy withNextHop(String nextHop)
Set the nextHop property: The next hop resource id on which this routing policy is applicable to.- Parameters:
nextHop- the nextHop value to set.- Returns:
- the RoutingPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-