ContainerCpuUsage Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ContainerCpuUsage

Implements

public final class ContainerCpuUsage
implements JsonSerializable<ContainerCpuUsage>

The ContainerCpuUsage model.

Constructor Summary

Constructor Description
ContainerCpuUsage()

Creates an instance of ContainerCpuUsage class.

Method Summary

Modifier and Type Method and Description
static ContainerCpuUsage fromJson(JsonReader jsonReader)

Reads an instance of ContainerCpuUsage from the JsonReader.

Long kernelModeUsage()

Get the kernelModeUsage property: The kernelModeUsage property.

List<Long> perCpuUsage()

Get the perCpuUsage property: The perCpuUsage property.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalUsage()

Get the totalUsage property: The totalUsage property.

Long userModeUsage()

Get the userModeUsage property: The userModeUsage property.

void validate()

Validates the instance.

ContainerCpuUsage withKernelModeUsage(Long kernelModeUsage)

Set the kernelModeUsage property: The kernelModeUsage property.

ContainerCpuUsage withPerCpuUsage(List<Long> perCpuUsage)

Set the perCpuUsage property: The perCpuUsage property.

ContainerCpuUsage withTotalUsage(Long totalUsage)

Set the totalUsage property: The totalUsage property.

ContainerCpuUsage withUserModeUsage(Long userModeUsage)

Set the userModeUsage property: The userModeUsage property.

Methods inherited from java.lang.Object

Constructor Details

ContainerCpuUsage

public ContainerCpuUsage()

Creates an instance of ContainerCpuUsage class.

Method Details

fromJson

public static ContainerCpuUsage fromJson(JsonReader jsonReader)

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.

kernelModeUsage

public Long kernelModeUsage()

Get the kernelModeUsage property: The kernelModeUsage property.

Returns:

the kernelModeUsage value.

perCpuUsage

public List perCpuUsage()

Get the perCpuUsage property: The perCpuUsage property.

Returns:

the perCpuUsage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalUsage

public Long totalUsage()

Get the totalUsage property: The totalUsage property.

Returns:

the totalUsage value.

userModeUsage

public Long userModeUsage()

Get the userModeUsage property: The userModeUsage property.

Returns:

the userModeUsage value.

validate

public void validate()

Validates the instance.

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.

withPerCpuUsage

public ContainerCpuUsage withPerCpuUsage(List perCpuUsage)

Set the perCpuUsage property: The perCpuUsage property.

Parameters:

perCpuUsage - the perCpuUsage value to set.

Returns:

the ContainerCpuUsage object itself.

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.

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.

Applies to