io.kubernetes.client.openapi.models.V1beta2CounterFluent Maven / Gradle / Ivy
The newest version!
package io.kubernetes.client.openapi.models;
import java.lang.SuppressWarnings;
import io.kubernetes.client.fluent.BaseFluent;
import io.kubernetes.client.custom.Quantity;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class V1beta2CounterFluent> extends BaseFluent{
public V1beta2CounterFluent() {
}
public V1beta2CounterFluent(V1beta2Counter instance) {
this.copyInstance(instance);
}
private Quantity value;
protected void copyInstance(V1beta2Counter instance) {
instance = (instance != null ? instance : new V1beta2Counter());
if (instance != null) {
this.withValue(instance.getValue());
}
}
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;
V1beta2CounterFluent that = (V1beta2CounterFluent) o;
if (!java.util.Objects.equals(value, that.value)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(value, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (value != null) { sb.append("value:"); sb.append(value); }
sb.append("}");
return sb.toString();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy