Class ExpressRouteCircuitStatsInner

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

public final class ExpressRouteCircuitStatsInner extends Object implements com.azure.json.JsonSerializable<ExpressRouteCircuitStatsInner>
Contains stats associated with the peering.
  • Constructor Details

    • ExpressRouteCircuitStatsInner

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

    • primarybytesIn

      public Long primarybytesIn()
      Get the primarybytesIn property: The Primary BytesIn of the peering.
      Returns:
      the primarybytesIn value.
    • withPrimarybytesIn

      public ExpressRouteCircuitStatsInner withPrimarybytesIn(Long primarybytesIn)
      Set the primarybytesIn property: The Primary BytesIn of the peering.
      Parameters:
      primarybytesIn - the primarybytesIn value to set.
      Returns:
      the ExpressRouteCircuitStatsInner object itself.
    • primarybytesOut

      public Long primarybytesOut()
      Get the primarybytesOut property: The primary BytesOut of the peering.
      Returns:
      the primarybytesOut value.
    • withPrimarybytesOut

      public ExpressRouteCircuitStatsInner withPrimarybytesOut(Long primarybytesOut)
      Set the primarybytesOut property: The primary BytesOut of the peering.
      Parameters:
      primarybytesOut - the primarybytesOut value to set.
      Returns:
      the ExpressRouteCircuitStatsInner object itself.
    • secondarybytesIn

      public Long secondarybytesIn()
      Get the secondarybytesIn property: The secondary BytesIn of the peering.
      Returns:
      the secondarybytesIn value.
    • withSecondarybytesIn

      public ExpressRouteCircuitStatsInner withSecondarybytesIn(Long secondarybytesIn)
      Set the secondarybytesIn property: The secondary BytesIn of the peering.
      Parameters:
      secondarybytesIn - the secondarybytesIn value to set.
      Returns:
      the ExpressRouteCircuitStatsInner object itself.
    • secondarybytesOut

      public Long secondarybytesOut()
      Get the secondarybytesOut property: The secondary BytesOut of the peering.
      Returns:
      the secondarybytesOut value.
    • withSecondarybytesOut

      public ExpressRouteCircuitStatsInner withSecondarybytesOut(Long secondarybytesOut)
      Set the secondarybytesOut property: The secondary BytesOut of the peering.
      Parameters:
      secondarybytesOut - the secondarybytesOut value to set.
      Returns:
      the ExpressRouteCircuitStatsInner 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<ExpressRouteCircuitStatsInner>
      Throws:
      IOException
    • fromJson

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