Class ExpressRouteCircuitServiceProviderProperties

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

public final class ExpressRouteCircuitServiceProviderProperties extends Object implements com.azure.json.JsonSerializable<ExpressRouteCircuitServiceProviderProperties>
Contains ServiceProviderProperties in an ExpressRouteCircuit.
  • Constructor Details

    • ExpressRouteCircuitServiceProviderProperties

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

    • serviceProviderName

      public String serviceProviderName()
      Get the serviceProviderName property: The serviceProviderName.
      Returns:
      the serviceProviderName value.
    • withServiceProviderName

      public ExpressRouteCircuitServiceProviderProperties withServiceProviderName(String serviceProviderName)
      Set the serviceProviderName property: The serviceProviderName.
      Parameters:
      serviceProviderName - the serviceProviderName value to set.
      Returns:
      the ExpressRouteCircuitServiceProviderProperties object itself.
    • peeringLocation

      public String peeringLocation()
      Get the peeringLocation property: The peering location.
      Returns:
      the peeringLocation value.
    • withPeeringLocation

      public ExpressRouteCircuitServiceProviderProperties withPeeringLocation(String peeringLocation)
      Set the peeringLocation property: The peering location.
      Parameters:
      peeringLocation - the peeringLocation value to set.
      Returns:
      the ExpressRouteCircuitServiceProviderProperties object itself.
    • bandwidthInMbps

      public Integer bandwidthInMbps()
      Get the bandwidthInMbps property: The BandwidthInMbps.
      Returns:
      the bandwidthInMbps value.
    • withBandwidthInMbps

      public ExpressRouteCircuitServiceProviderProperties withBandwidthInMbps(Integer bandwidthInMbps)
      Set the bandwidthInMbps property: The BandwidthInMbps.
      Parameters:
      bandwidthInMbps - the bandwidthInMbps value to set.
      Returns:
      the ExpressRouteCircuitServiceProviderProperties 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<ExpressRouteCircuitServiceProviderProperties>
      Throws:
      IOException
    • fromJson

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