Class ExpressRouteFailoverRedundantRoute
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteFailoverRedundantRoute
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteFailoverRedundantRoute>
public final class ExpressRouteFailoverRedundantRoute
extends Object
implements com.azure.json.JsonSerializable<ExpressRouteFailoverRedundantRoute>
The ExpressRouteFailoverRedundantRoute model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteFailoverRedundantRoute class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteFailoverRedundantRoute from the JsonReader.Get the peeringLocations property: A list of all the peering locations for the redundant routes.routes()Get the routes property: A list of all the redundant routes in the peering locations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPeeringLocations(List<String> peeringLocations) Set the peeringLocations property: A list of all the peering locations for the redundant routes.withRoutes(List<String> routes) Set the routes property: A list of all the redundant routes in the peering locations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ExpressRouteFailoverRedundantRoute
public ExpressRouteFailoverRedundantRoute()Creates an instance of ExpressRouteFailoverRedundantRoute class.
-
-
Method Details
-
peeringLocations
Get the peeringLocations property: A list of all the peering locations for the redundant routes.- Returns:
- the peeringLocations value.
-
withPeeringLocations
Set the peeringLocations property: A list of all the peering locations for the redundant routes.- Parameters:
peeringLocations- the peeringLocations value to set.- Returns:
- the ExpressRouteFailoverRedundantRoute object itself.
-
routes
Get the routes property: A list of all the redundant routes in the peering locations.- Returns:
- the routes value.
-
withRoutes
Set the routes property: A list of all the redundant routes in the peering locations.- Parameters:
routes- the routes value to set.- Returns:
- the ExpressRouteFailoverRedundantRoute object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExpressRouteFailoverRedundantRoute>- Throws:
IOException
-
fromJson
public static ExpressRouteFailoverRedundantRoute fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteFailoverRedundantRoute from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteFailoverRedundantRoute if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ExpressRouteFailoverRedundantRoute.
-