io.debezium.operator.api.model.runtime.RuntimeApiFluent Maven / Gradle / Ivy
package io.debezium.operator.api.model.runtime;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class RuntimeApiFluent> extends BaseFluent{
public RuntimeApiFluent() {
}
public RuntimeApiFluent(RuntimeApi instance) {
this.copyInstance(instance);
}
private boolean enabled;
private int port;
protected void copyInstance(RuntimeApi instance) {
instance = (instance != null ? instance : new RuntimeApi());
if (instance != null) {
this.withEnabled(instance.isEnabled());
this.withPort(instance.getPort());
}
}
public boolean isEnabled() {
return this.enabled;
}
public A withEnabled(boolean enabled) {
this.enabled = enabled;
return (A) this;
}
public boolean hasEnabled() {
return true;
}
public int getPort() {
return this.port;
}
public A withPort(int port) {
this.port = port;
return (A) this;
}
public boolean hasPort() {
return true;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
RuntimeApiFluent that = (RuntimeApiFluent) o;
if (enabled != that.enabled) return false;
if (port != that.port) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(enabled, port, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
sb.append("enabled:"); sb.append(enabled + ",");
sb.append("port:"); sb.append(port);
sb.append("}");
return sb.toString();
}
public A withEnabled() {
return withEnabled(true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy