RoutingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. RoutingPolicy
- com.
Implements
public final class RoutingPolicy
implements JsonSerializable<RoutingPolicy>
The routing policy object used in a RoutingIntent resource.
Constructor Summary
| Constructor | Description |
|---|---|
| RoutingPolicy() |
Creates an instance of Routing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
destinations()
Get the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, Private |
|
static
Routing |
fromJson(JsonReader jsonReader)
Reads an instance of Routing |
| String |
name()
Get the name property: The unique name for the routing policy. |
| String |
nextHop()
Get the next |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Routing |
withDestinations(List<String> destinations)
Set the destinations property: List of all destinations which this routing policy is applicable to (for example: Internet, Private |
|
Routing |
withName(String name)
Set the name property: The unique name for the routing policy. |
|
Routing |
withNextHop(String nextHop)
Set the next |
Methods inherited from java.lang.Object
Constructor Details
RoutingPolicy
public RoutingPolicy()
Creates an instance of RoutingPolicy class.
Method Details
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:
fromJson
public static RoutingPolicy fromJson(JsonReader jsonReader)
Reads an instance of RoutingPolicy from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The unique name for the routing policy.
Returns:
nextHop
public String nextHop()
Get the nextHop property: The next hop resource id on which this routing policy is applicable to.
Returns:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withName
public RoutingPolicy withName(String name)
Set the name property: The unique name for the routing policy.
Parameters:
Returns:
withNextHop
public RoutingPolicy withNextHop(String nextHop)
Set the nextHop property: The next hop resource id on which this routing policy is applicable to.
Parameters:
Returns: