io.strimzi.api.kafka.model.bridge.KafkaBridgeStatusFluent Maven / Gradle / Ivy
The newest version!
package io.strimzi.api.kafka.model.bridge;
import java.lang.SuppressWarnings;
import java.lang.Object;
import java.lang.String;
import io.strimzi.api.kafka.model.kafka.StatusFluent;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class KafkaBridgeStatusFluent> extends StatusFluent{
public KafkaBridgeStatusFluent() {
}
public KafkaBridgeStatusFluent(KafkaBridgeStatus instance) {
this.copyInstance(instance);
}
private String url;
private int replicas;
private String labelSelector;
protected void copyInstance(KafkaBridgeStatus instance) {
instance = (instance != null ? instance : new KafkaBridgeStatus());
if (instance != null) {
this.withUrl(instance.getUrl());
this.withReplicas(instance.getReplicas());
this.withLabelSelector(instance.getLabelSelector());
this.withConditions(instance.getConditions());
this.withObservedGeneration(instance.getObservedGeneration());
}
}
public String getUrl() {
return this.url;
}
public A withUrl(String url) {
this.url = url;
return (A) this;
}
public boolean hasUrl() {
return this.url != null;
}
public int getReplicas() {
return this.replicas;
}
public A withReplicas(int replicas) {
this.replicas = replicas;
return (A) this;
}
public boolean hasReplicas() {
return true;
}
public String getLabelSelector() {
return this.labelSelector;
}
public A withLabelSelector(String labelSelector) {
this.labelSelector = labelSelector;
return (A) this;
}
public boolean hasLabelSelector() {
return this.labelSelector != 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;
KafkaBridgeStatusFluent that = (KafkaBridgeStatusFluent) o;
if (!java.util.Objects.equals(url, that.url)) return false;
if (replicas != that.replicas) return false;
if (!java.util.Objects.equals(labelSelector, that.labelSelector)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(url, replicas, labelSelector, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (url != null) { sb.append("url:"); sb.append(url + ","); }
sb.append("replicas:"); sb.append(replicas + ",");
if (labelSelector != null) { sb.append("labelSelector:"); sb.append(labelSelector); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy