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 Details

    • PeeringBandwidthOffer

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

    • offerName

      public String offerName()
      Get the offerName property: The name of the bandwidth offer.
      Returns:
      the offerName value.
    • withOfferName

      public PeeringBandwidthOffer withOfferName(String offerName)
      Set the offerName property: The name of the bandwidth offer.
      Parameters:
      offerName - the offerName value to set.
      Returns:
      the PeeringBandwidthOffer object itself.
    • valueInMbps

      public Integer valueInMbps()
      Get the valueInMbps property: The value of the bandwidth offer in Mbps.
      Returns:
      the valueInMbps value.
    • withValueInMbps

      public PeeringBandwidthOffer withValueInMbps(Integer valueInMbps)
      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

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