Class ContainerCpuUsage
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerCpuUsage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerCpuUsage>
public final class ContainerCpuUsage
extends Object
implements com.azure.json.JsonSerializable<ContainerCpuUsage>
The ContainerCpuUsage model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerCpuUsage
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerCpuUsage from the JsonReader.Get the kernelModeUsage property: The kernelModeUsage property.Get the perCpuUsage property: The perCpuUsage property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the totalUsage property: The totalUsage property.Get the userModeUsage property: The userModeUsage property.void
validate()
Validates the instance.withKernelModeUsage
(Long kernelModeUsage) Set the kernelModeUsage property: The kernelModeUsage property.withPerCpuUsage
(List<Long> perCpuUsage) Set the perCpuUsage property: The perCpuUsage property.withTotalUsage
(Long totalUsage) Set the totalUsage property: The totalUsage property.withUserModeUsage
(Long userModeUsage) Set the userModeUsage property: The userModeUsage 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
-
ContainerCpuUsage
public ContainerCpuUsage()Creates an instance of ContainerCpuUsage class.
-
-
Method Details
-
totalUsage
Get the totalUsage property: The totalUsage property.- Returns:
- the totalUsage value.
-
withTotalUsage
Set the totalUsage property: The totalUsage property.- Parameters:
totalUsage
- the totalUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
perCpuUsage
Get the perCpuUsage property: The perCpuUsage property.- Returns:
- the perCpuUsage value.
-
withPerCpuUsage
Set the perCpuUsage property: The perCpuUsage property.- Parameters:
perCpuUsage
- the perCpuUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
kernelModeUsage
Get the kernelModeUsage property: The kernelModeUsage property.- Returns:
- the kernelModeUsage value.
-
withKernelModeUsage
Set the kernelModeUsage property: The kernelModeUsage property.- Parameters:
kernelModeUsage
- the kernelModeUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
userModeUsage
Get the userModeUsage property: The userModeUsage property.- Returns:
- the userModeUsage value.
-
withUserModeUsage
Set the userModeUsage property: The userModeUsage property.- Parameters:
userModeUsage
- the userModeUsage value to set.- Returns:
- the ContainerCpuUsage 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<ContainerCpuUsage>
- Throws:
IOException
-
fromJson
Reads an instance of ContainerCpuUsage from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ContainerCpuUsage 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 ContainerCpuUsage.
-