Class GatewayRouteSet

java.lang.Object
com.azure.resourcemanager.network.models.GatewayRouteSet
All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayRouteSet>

public final class GatewayRouteSet extends Object implements com.azure.json.JsonSerializable<GatewayRouteSet>
The GatewayRouteSet model.
  • Constructor Details

    • GatewayRouteSet

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

    • name

      public String name()
      Get the name property: Route Set name.
      Returns:
      the name value.
    • withName

      public GatewayRouteSet withName(String name)
      Set the name property: Route Set name.
      Parameters:
      name - the name value to set.
      Returns:
      the GatewayRouteSet object itself.
    • locations

      public List<String> locations()
      Get the locations property: List of different locations from where the routes are learned.
      Returns:
      the locations value.
    • withLocations

      public GatewayRouteSet withLocations(List<String> locations)
      Set the locations property: List of different locations from where the routes are learned.
      Parameters:
      locations - the locations value to set.
      Returns:
      the GatewayRouteSet object itself.
    • details

      public Map<String, List<RouteSourceDetails>> details()
      Get the details property: List of different Route Sources.
      Returns:
      the details value.
    • withDetails

      public GatewayRouteSet withDetails(Map<String, List<RouteSourceDetails>> details)
      Set the details property: List of different Route Sources.
      Parameters:
      details - the details value to set.
      Returns:
      the GatewayRouteSet 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<GatewayRouteSet>
      Throws:
      IOException
    • fromJson

      public static GatewayRouteSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GatewayRouteSet from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GatewayRouteSet 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 GatewayRouteSet.