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 Details

    • ExpressRouteFailoverRedundantRoute

      public ExpressRouteFailoverRedundantRoute()
      Creates an instance of ExpressRouteFailoverRedundantRoute class.
  • Method Details

    • peeringLocations

      public List<String> peeringLocations()
      Get the peeringLocations property: A list of all the peering locations for the redundant routes.
      Returns:
      the peeringLocations value.
    • withPeeringLocations

      public ExpressRouteFailoverRedundantRoute withPeeringLocations(List<String> peeringLocations)
      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

      public List<String> routes()
      Get the routes property: A list of all the redundant routes in the peering locations.
      Returns:
      the routes value.
    • withRoutes

      public ExpressRouteFailoverRedundantRoute withRoutes(List<String> routes)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.