/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticbeanstalk.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* CPU utilization and load average metrics for an Amazon EC2 instance. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SystemStatus implements Serializable, Cloneable { /** ** CPU utilization metrics for the instance. *
*/ private CPUUtilization cPUUtilization; /** ** Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. *
*/ private com.amazonaws.internal.SdkInternalList* CPU utilization metrics for the instance. *
* * @param cPUUtilization * CPU utilization metrics for the instance. */ public void setCPUUtilization(CPUUtilization cPUUtilization) { this.cPUUtilization = cPUUtilization; } /** ** CPU utilization metrics for the instance. *
* * @return CPU utilization metrics for the instance. */ public CPUUtilization getCPUUtilization() { return this.cPUUtilization; } /** ** CPU utilization metrics for the instance. *
* * @param cPUUtilization * CPU utilization metrics for the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public SystemStatus withCPUUtilization(CPUUtilization cPUUtilization) { setCPUUtilization(cPUUtilization); return this; } /** ** Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. *
* * @return Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. */ public java.util.List* Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. *
* * @param loadAverage * Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. */ public void setLoadAverage(java.util.Collection* Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLoadAverage(java.util.Collection)} or {@link #withLoadAverage(java.util.Collection)} if you want to * override the existing values. *
* * @param loadAverage * Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public SystemStatus withLoadAverage(Double... loadAverage) { if (this.loadAverage == null) { setLoadAverage(new com.amazonaws.internal.SdkInternalList* Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. *
* * @param loadAverage * Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics. * @return Returns a reference to this object so that method calls can be chained together. */ public SystemStatus withLoadAverage(java.util.Collection