Class ContainerCpuUsage
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.ContainerCpuUsage
-
public final class ContainerCpuUsage extends Object
The ContainerCpuUsage model.
-
-
Constructor Summary
Constructors Constructor Description ContainerCpuUsage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongkernelModeUsage()Get the kernelModeUsage property: The kernelModeUsage property.List<Long>perCpuUsage()Get the perCpuUsage property: The perCpuUsage property.LongtotalUsage()Get the totalUsage property: The totalUsage property.LonguserModeUsage()Get the userModeUsage property: The userModeUsage property.voidvalidate()Validates the instance.ContainerCpuUsagewithKernelModeUsage(Long kernelModeUsage)Set the kernelModeUsage property: The kernelModeUsage property.ContainerCpuUsagewithPerCpuUsage(List<Long> perCpuUsage)Set the perCpuUsage property: The perCpuUsage property.ContainerCpuUsagewithTotalUsage(Long totalUsage)Set the totalUsage property: The totalUsage property.ContainerCpuUsagewithUserModeUsage(Long userModeUsage)Set the userModeUsage property: The userModeUsage property.
-
-
-
Method Detail
-
totalUsage
public Long totalUsage()
Get the totalUsage property: The totalUsage property.- Returns:
- the totalUsage value.
-
withTotalUsage
public ContainerCpuUsage withTotalUsage(Long totalUsage)
Set the totalUsage property: The totalUsage property.- Parameters:
totalUsage- the totalUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
perCpuUsage
public List<Long> perCpuUsage()
Get the perCpuUsage property: The perCpuUsage property.- Returns:
- the perCpuUsage value.
-
withPerCpuUsage
public ContainerCpuUsage withPerCpuUsage(List<Long> perCpuUsage)
Set the perCpuUsage property: The perCpuUsage property.- Parameters:
perCpuUsage- the perCpuUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
kernelModeUsage
public Long kernelModeUsage()
Get the kernelModeUsage property: The kernelModeUsage property.- Returns:
- the kernelModeUsage value.
-
withKernelModeUsage
public ContainerCpuUsage withKernelModeUsage(Long kernelModeUsage)
Set the kernelModeUsage property: The kernelModeUsage property.- Parameters:
kernelModeUsage- the kernelModeUsage value to set.- Returns:
- the ContainerCpuUsage object itself.
-
userModeUsage
public Long userModeUsage()
Get the userModeUsage property: The userModeUsage property.- Returns:
- the userModeUsage value.
-
withUserModeUsage
public ContainerCpuUsage withUserModeUsage(Long userModeUsage)
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.
-
-