
io.kubernetes.client.models.V1HorizontalPodAutoscalerStatus Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.kubernetes.client.models;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.joda.time.DateTime;
/**
* current status of a horizontal pod autoscaler
*/
@ApiModel(description = "current status of a horizontal pod autoscaler")
public class V1HorizontalPodAutoscalerStatus {
@SerializedName("currentCPUUtilizationPercentage")
private Integer currentCPUUtilizationPercentage = null;
@SerializedName("currentReplicas")
private Integer currentReplicas = null;
@SerializedName("desiredReplicas")
private Integer desiredReplicas = null;
@SerializedName("lastScaleTime")
private DateTime lastScaleTime = null;
@SerializedName("observedGeneration")
private Long observedGeneration = null;
public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) {
this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage;
return this;
}
/**
* current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.
* @return currentCPUUtilizationPercentage
**/
@ApiModelProperty(value = "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.")
public Integer getCurrentCPUUtilizationPercentage() {
return currentCPUUtilizationPercentage;
}
public void setCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) {
this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage;
}
public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) {
this.currentReplicas = currentReplicas;
return this;
}
/**
* current number of replicas of pods managed by this autoscaler.
* @return currentReplicas
**/
@ApiModelProperty(required = true, value = "current number of replicas of pods managed by this autoscaler.")
public Integer getCurrentReplicas() {
return currentReplicas;
}
public void setCurrentReplicas(Integer currentReplicas) {
this.currentReplicas = currentReplicas;
}
public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) {
this.desiredReplicas = desiredReplicas;
return this;
}
/**
* desired number of replicas of pods managed by this autoscaler.
* @return desiredReplicas
**/
@ApiModelProperty(required = true, value = "desired number of replicas of pods managed by this autoscaler.")
public Integer getDesiredReplicas() {
return desiredReplicas;
}
public void setDesiredReplicas(Integer desiredReplicas) {
this.desiredReplicas = desiredReplicas;
}
public V1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) {
this.lastScaleTime = lastScaleTime;
return this;
}
/**
* last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.
* @return lastScaleTime
**/
@ApiModelProperty(value = "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.")
public DateTime getLastScaleTime() {
return lastScaleTime;
}
public void setLastScaleTime(DateTime lastScaleTime) {
this.lastScaleTime = lastScaleTime;
}
public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) {
this.observedGeneration = observedGeneration;
return this;
}
/**
* most recent generation observed by this autoscaler.
* @return observedGeneration
**/
@ApiModelProperty(value = "most recent generation observed by this autoscaler.")
public Long getObservedGeneration() {
return observedGeneration;
}
public void setObservedGeneration(Long observedGeneration) {
this.observedGeneration = observedGeneration;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1HorizontalPodAutoscalerStatus v1HorizontalPodAutoscalerStatus = (V1HorizontalPodAutoscalerStatus) o;
return Objects.equals(this.currentCPUUtilizationPercentage, v1HorizontalPodAutoscalerStatus.currentCPUUtilizationPercentage) &&
Objects.equals(this.currentReplicas, v1HorizontalPodAutoscalerStatus.currentReplicas) &&
Objects.equals(this.desiredReplicas, v1HorizontalPodAutoscalerStatus.desiredReplicas) &&
Objects.equals(this.lastScaleTime, v1HorizontalPodAutoscalerStatus.lastScaleTime) &&
Objects.equals(this.observedGeneration, v1HorizontalPodAutoscalerStatus.observedGeneration);
}
@Override
public int hashCode() {
return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1HorizontalPodAutoscalerStatus {\n");
sb.append(" currentCPUUtilizationPercentage: ").append(toIndentedString(currentCPUUtilizationPercentage)).append("\n");
sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n");
sb.append(" desiredReplicas: ").append(toIndentedString(desiredReplicas)).append("\n");
sb.append(" lastScaleTime: ").append(toIndentedString(lastScaleTime)).append("\n");
sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy