/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.appservice;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * The ContainerCpuUsage model.
 */
public class ContainerCpuUsage {
    /**
     * The totalUsage property.
     */
    @JsonProperty(value = "totalUsage")
    private Long totalUsage;

    /**
     * The perCpuUsage property.
     */
    @JsonProperty(value = "perCpuUsage")
    private List<Long> perCpuUsage;

    /**
     * The kernelModeUsage property.
     */
    @JsonProperty(value = "kernelModeUsage")
    private Long kernelModeUsage;

    /**
     * The userModeUsage property.
     */
    @JsonProperty(value = "userModeUsage")
    private Long userModeUsage;

    /**
     * Get the totalUsage value.
     *
     * @return the totalUsage value
     */
    public Long totalUsage() {
        return this.totalUsage;
    }

    /**
     * Set the totalUsage value.
     *
     * @param totalUsage the totalUsage value to set
     * @return the ContainerCpuUsage object itself.
     */
    public ContainerCpuUsage withTotalUsage(Long totalUsage) {
        this.totalUsage = totalUsage;
        return this;
    }

    /**
     * Get the perCpuUsage value.
     *
     * @return the perCpuUsage value
     */
    public List<Long> perCpuUsage() {
        return this.perCpuUsage;
    }

    /**
     * Set the perCpuUsage value.
     *
     * @param perCpuUsage the perCpuUsage value to set
     * @return the ContainerCpuUsage object itself.
     */
    public ContainerCpuUsage withPerCpuUsage(List<Long> perCpuUsage) {
        this.perCpuUsage = perCpuUsage;
        return this;
    }

    /**
     * Get the kernelModeUsage value.
     *
     * @return the kernelModeUsage value
     */
    public Long kernelModeUsage() {
        return this.kernelModeUsage;
    }

    /**
     * Set the kernelModeUsage value.
     *
     * @param kernelModeUsage the kernelModeUsage value to set
     * @return the ContainerCpuUsage object itself.
     */
    public ContainerCpuUsage withKernelModeUsage(Long kernelModeUsage) {
        this.kernelModeUsage = kernelModeUsage;
        return this;
    }

    /**
     * Get the userModeUsage value.
     *
     * @return the userModeUsage value
     */
    public Long userModeUsage() {
        return this.userModeUsage;
    }

    /**
     * Set the userModeUsage value.
     *
     * @param userModeUsage the userModeUsage value to set
     * @return the ContainerCpuUsage object itself.
     */
    public ContainerCpuUsage withUserModeUsage(Long userModeUsage) {
        this.userModeUsage = userModeUsage;
        return this;
    }

}
