Class QuotaCounterValueContractProperties

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

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

    • QuotaCounterValueContractProperties

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

    • callsCount

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

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

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

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

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