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 Summary
ConstructorsConstructorDescriptionCreates an instance of QuotaCounterValueContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the callsCount property: Number of times Counter was called.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QuotaCounterValueContractProperties from the JsonReader.Get the kbTransferred property: Data Transferred in KiloBytes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCallsCount(Integer callsCount) Set the callsCount property: Number of times Counter was called.withKbTransferred(Double kbTransferred) Set the kbTransferred property: Data Transferred in KiloBytes.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
-
QuotaCounterValueContractProperties
public QuotaCounterValueContractProperties()Creates an instance of QuotaCounterValueContractProperties class.
-
-
Method Details
-
callsCount
Get the callsCount property: Number of times Counter was called.- Returns:
- the callsCount value.
-
withCallsCount
Set the callsCount property: Number of times Counter was called.- Parameters:
callsCount- the callsCount value to set.- Returns:
- the QuotaCounterValueContractProperties object itself.
-
kbTransferred
Get the kbTransferred property: Data Transferred in KiloBytes.- Returns:
- the kbTransferred value.
-
withKbTransferred
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
- Specified by:
toJsonin interfacecom.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.
-