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 Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteCircuitServiceProviderProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the bandwidthInMbps property: The BandwidthInMbps.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteCircuitServiceProviderProperties from the JsonReader.Get the peeringLocation property: The peering location.Get the serviceProviderName property: The serviceProviderName.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBandwidthInMbps(Integer bandwidthInMbps) Set the bandwidthInMbps property: The BandwidthInMbps.withPeeringLocation(String peeringLocation) Set the peeringLocation property: The peering location.withServiceProviderName(String serviceProviderName) Set the serviceProviderName property: The serviceProviderName.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
-
ExpressRouteCircuitServiceProviderProperties
public ExpressRouteCircuitServiceProviderProperties()Creates an instance of ExpressRouteCircuitServiceProviderProperties class.
-
-
Method Details
-
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
Get the peeringLocation property: The peering location.- Returns:
- the peeringLocation value.
-
withPeeringLocation
Set the peeringLocation property: The peering location.- Parameters:
peeringLocation- the peeringLocation value to set.- Returns:
- the ExpressRouteCircuitServiceProviderProperties object itself.
-
bandwidthInMbps
Get the bandwidthInMbps property: The BandwidthInMbps.- Returns:
- the bandwidthInMbps value.
-
withBandwidthInMbps
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
- Specified by:
toJsonin interfacecom.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.
-