Class QuotaCounterValueUpdateContract

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

public final class QuotaCounterValueUpdateContract extends Object implements com.azure.json.JsonSerializable<QuotaCounterValueUpdateContract>
Quota counter value details.
  • Constructor Details

    • QuotaCounterValueUpdateContract

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

    • callsCount

      public Integer callsCount()
      Get the callsCount property: Number of times Counter was called.
      Returns:
      the callsCount value.
    • withCallsCount

      public QuotaCounterValueUpdateContract withCallsCount(Integer callsCount)
      Set the callsCount property: Number of times Counter was called.
      Parameters:
      callsCount - the callsCount value to set.
      Returns:
      the QuotaCounterValueUpdateContract object itself.
    • kbTransferred

      public Double kbTransferred()
      Get the kbTransferred property: Data Transferred in KiloBytes.
      Returns:
      the kbTransferred value.
    • withKbTransferred

      public QuotaCounterValueUpdateContract withKbTransferred(Double kbTransferred)
      Set the kbTransferred property: Data Transferred in KiloBytes.
      Parameters:
      kbTransferred - the kbTransferred value to set.
      Returns:
      the QuotaCounterValueUpdateContract 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<QuotaCounterValueUpdateContract>
      Throws:
      IOException
    • fromJson

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