io.debezium.operator.api.model.PredicateFluent Maven / Gradle / Ivy
The newest version!
package io.debezium.operator.api.model;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class PredicateFluent> extends BaseFluent{
public PredicateFluent() {
}
public PredicateFluent(Predicate instance) {
this.copyInstance(instance);
}
private String type;
private ConfigProperties config;
protected void copyInstance(Predicate instance) {
instance = (instance != null ? instance : new Predicate());
if (instance != null) {
this.withType(instance.getType());
this.withConfig(instance.getConfig());
}
}
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 ConfigProperties getConfig() {
return this.config;
}
public A withConfig(ConfigProperties config) {
this.config = config;
return (A) this;
}
public boolean hasConfig() {
return this.config != null;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
PredicateFluent that = (PredicateFluent) o;
if (!java.util.Objects.equals(type, that.type)) return false;
if (!java.util.Objects.equals(config, that.config)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(type, config, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (type != null) { sb.append("type:"); sb.append(type + ","); }
if (config != null) { sb.append("config:"); sb.append(config); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy