
io.kubernetes.client.models.V2beta1PodsMetricSource 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;
/**
* PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.
*/
@ApiModel(description = "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.")
public class V2beta1PodsMetricSource {
@SerializedName("metricName")
private String metricName = null;
@SerializedName("targetAverageValue")
private String targetAverageValue = null;
public V2beta1PodsMetricSource metricName(String metricName) {
this.metricName = metricName;
return this;
}
/**
* metricName is the name of the metric in question
* @return metricName
**/
@ApiModelProperty(required = true, value = "metricName is the name of the metric in question")
public String getMetricName() {
return metricName;
}
public void setMetricName(String metricName) {
this.metricName = metricName;
}
public V2beta1PodsMetricSource targetAverageValue(String targetAverageValue) {
this.targetAverageValue = targetAverageValue;
return this;
}
/**
* targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
* @return targetAverageValue
**/
@ApiModelProperty(required = true, value = "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)")
public String getTargetAverageValue() {
return targetAverageValue;
}
public void setTargetAverageValue(String targetAverageValue) {
this.targetAverageValue = targetAverageValue;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V2beta1PodsMetricSource v2beta1PodsMetricSource = (V2beta1PodsMetricSource) o;
return Objects.equals(this.metricName, v2beta1PodsMetricSource.metricName) &&
Objects.equals(this.targetAverageValue, v2beta1PodsMetricSource.targetAverageValue);
}
@Override
public int hashCode() {
return Objects.hash(metricName, targetAverageValue);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V2beta1PodsMetricSource {\n");
sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n");
sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).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