Class ContainerCpuStatistics
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerCpuStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerCpuStatistics>
public final class ContainerCpuStatistics
extends Object
implements com.azure.json.JsonSerializable<ContainerCpuStatistics>
The ContainerCpuStatistics model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerCpuStatistics class. -
Method Summary
Modifier and TypeMethodDescriptioncpuUsage()
Get the cpuUsage property: The cpuUsage property.static ContainerCpuStatistics
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerCpuStatistics from the JsonReader.Get the onlineCpuCount property: The onlineCpuCount property.Get the systemCpuUsage property: The systemCpuUsage property.Get the throttlingData property: The throttlingData property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCpuUsage
(ContainerCpuUsage cpuUsage) Set the cpuUsage property: The cpuUsage property.withOnlineCpuCount
(Integer onlineCpuCount) Set the onlineCpuCount property: The onlineCpuCount property.withSystemCpuUsage
(Long systemCpuUsage) Set the systemCpuUsage property: The systemCpuUsage property.withThrottlingData
(ContainerThrottlingData throttlingData) Set the throttlingData property: The throttlingData property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerCpuStatistics
public ContainerCpuStatistics()Creates an instance of ContainerCpuStatistics class.
-
-
Method Details
-
cpuUsage
Get the cpuUsage property: The cpuUsage property.- Returns:
- the cpuUsage value.
-
withCpuUsage
Set the cpuUsage property: The cpuUsage property.- Parameters:
cpuUsage
- the cpuUsage value to set.- Returns:
- the ContainerCpuStatistics object itself.
-
systemCpuUsage
Get the systemCpuUsage property: The systemCpuUsage property.- Returns:
- the systemCpuUsage value.
-
withSystemCpuUsage
Set the systemCpuUsage property: The systemCpuUsage property.- Parameters:
systemCpuUsage
- the systemCpuUsage value to set.- Returns:
- the ContainerCpuStatistics object itself.
-
onlineCpuCount
Get the onlineCpuCount property: The onlineCpuCount property.- Returns:
- the onlineCpuCount value.
-
withOnlineCpuCount
Set the onlineCpuCount property: The onlineCpuCount property.- Parameters:
onlineCpuCount
- the onlineCpuCount value to set.- Returns:
- the ContainerCpuStatistics object itself.
-
throttlingData
Get the throttlingData property: The throttlingData property.- Returns:
- the throttlingData value.
-
withThrottlingData
Set the throttlingData property: The throttlingData property.- Parameters:
throttlingData
- the throttlingData value to set.- Returns:
- the ContainerCpuStatistics object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ContainerCpuStatistics>
- Throws:
IOException
-
fromJson
public static ContainerCpuStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerCpuStatistics from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ContainerCpuStatistics 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 ContainerCpuStatistics.
-