Class PeeringBandwidthOffer
java.lang.Object
com.azure.resourcemanager.peering.models.PeeringBandwidthOffer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PeeringBandwidthOffer>
public final class PeeringBandwidthOffer
extends Object
implements com.azure.json.JsonSerializable<PeeringBandwidthOffer>
The properties that define a peering bandwidth offer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PeeringBandwidthOfferfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PeeringBandwidthOffer from the JsonReader.Get the offerName property: The name of the bandwidth offer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the valueInMbps property: The value of the bandwidth offer in Mbps.withOfferName(String offerName) Set the offerName property: The name of the bandwidth offer.withValueInMbps(Integer valueInMbps) Set the valueInMbps property: The value of the bandwidth offer in Mbps.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
-
PeeringBandwidthOffer
public PeeringBandwidthOffer()Creates an instance of PeeringBandwidthOffer class.
-
-
Method Details
-
offerName
Get the offerName property: The name of the bandwidth offer.- Returns:
- the offerName value.
-
withOfferName
Set the offerName property: The name of the bandwidth offer.- Parameters:
offerName- the offerName value to set.- Returns:
- the PeeringBandwidthOffer object itself.
-
valueInMbps
Get the valueInMbps property: The value of the bandwidth offer in Mbps.- Returns:
- the valueInMbps value.
-
withValueInMbps
Set the valueInMbps property: The value of the bandwidth offer in Mbps.- Parameters:
valueInMbps- the valueInMbps value to set.- Returns:
- the PeeringBandwidthOffer 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<PeeringBandwidthOffer>- Throws:
IOException
-
fromJson
public static PeeringBandwidthOffer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PeeringBandwidthOffer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PeeringBandwidthOffer 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 PeeringBandwidthOffer.
-