io.github.microcks.operator.api.base.v1alpha1.GenericBrokerConnectionSpecFluent Maven / Gradle / Ivy
package io.github.microcks.operator.api.base.v1alpha1;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class GenericBrokerConnectionSpecFluent> extends BaseFluent{
public GenericBrokerConnectionSpecFluent() {
}
public GenericBrokerConnectionSpecFluent(GenericBrokerConnectionSpec instance) {
this.copyInstance(instance);
}
private String url;
private String username;
private String password;
protected void copyInstance(GenericBrokerConnectionSpec instance) {
instance = (instance != null ? instance : new GenericBrokerConnectionSpec());
if (instance != null) {
this.withUrl(instance.getUrl());
this.withUsername(instance.getUsername());
this.withPassword(instance.getPassword());
}
}
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 String getUsername() {
return this.username;
}
public A withUsername(String username) {
this.username = username;
return (A) this;
}
public boolean hasUsername() {
return this.username != null;
}
public String getPassword() {
return this.password;
}
public A withPassword(String password) {
this.password = password;
return (A) this;
}
public boolean hasPassword() {
return this.password != 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;
GenericBrokerConnectionSpecFluent that = (GenericBrokerConnectionSpecFluent) o;
if (!java.util.Objects.equals(url, that.url)) return false;
if (!java.util.Objects.equals(username, that.username)) return false;
if (!java.util.Objects.equals(password, that.password)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(url, username, password, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (url != null) { sb.append("url:"); sb.append(url + ","); }
if (username != null) { sb.append("username:"); sb.append(username + ","); }
if (password != null) { sb.append("password:"); sb.append(password); }
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy