
io.kubernetes.client.openapi.models.V2MetricTargetFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import java.lang.Integer;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import io.kubernetes.client.custom.Quantity;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class V2MetricTargetFluentImpl> extends BaseFluent implements V2MetricTargetFluent{
public V2MetricTargetFluentImpl() {
}
public V2MetricTargetFluentImpl(V2MetricTarget instance) {
if (instance != null) {
this.withAverageUtilization(instance.getAverageUtilization());
this.withAverageValue(instance.getAverageValue());
this.withType(instance.getType());
this.withValue(instance.getValue());
}
}
private Integer averageUtilization;
private Quantity averageValue;
private String type;
private Quantity value;
public Integer getAverageUtilization() {
return this.averageUtilization;
}
public A withAverageUtilization(Integer averageUtilization) {
this.averageUtilization=averageUtilization; return (A) this;
}
public Boolean hasAverageUtilization() {
return this.averageUtilization != null;
}
public Quantity getAverageValue() {
return this.averageValue;
}
public A withAverageValue(Quantity averageValue) {
this.averageValue=averageValue; return (A) this;
}
public Boolean hasAverageValue() {
return this.averageValue != null;
}
public A withNewAverageValue(String value) {
return (A)withAverageValue(new Quantity(value));
}
public String getType() {
return this.type;
}
public A withType(String type) {
this.type=type; return (A) this;
}
public Boolean hasType() {
return this.type != null;
}
public Quantity getValue() {
return this.value;
}
public A withValue(Quantity value) {
this.value=value; return (A) this;
}
public Boolean hasValue() {
return this.value != null;
}
public A withNewValue(String value) {
return (A)withValue(new Quantity(value));
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V2MetricTargetFluentImpl that = (V2MetricTargetFluentImpl) o;
if (!java.util.Objects.equals(averageUtilization, that.averageUtilization)) return false;
if (!java.util.Objects.equals(averageValue, that.averageValue)) return false;
if (!java.util.Objects.equals(type, that.type)) return false;
if (!java.util.Objects.equals(value, that.value)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); }
if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); }
if (type != null) { sb.append("type:"); sb.append(type + ","); }
if (value != null) { sb.append("value:"); sb.append(value); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy