io.kroxylicious.proxy.config.secret.InlinePasswordFluent Maven / Gradle / Ivy
package io.kroxylicious.proxy.config.secret;
import java.lang.SuppressWarnings;
import io.kroxylicious.proxy.config.model.BaseFluent;
import java.lang.Object;
import java.lang.String;
/**
* Generated
*/
@SuppressWarnings("unchecked")
public class InlinePasswordFluent> extends BaseFluent{
public InlinePasswordFluent() {
}
public InlinePasswordFluent(InlinePassword instance) {
this.copyInstance(instance);
}
private String password;
protected void copyInstance(InlinePassword instance) {
if (instance != null) {
this.withPassword(instance.password());
}
}
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;
InlinePasswordFluent that = (InlinePasswordFluent) o;
if (!java.util.Objects.equals(password, that.password)) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(password, super.hashCode());
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (password != null) { sb.append("password:"); sb.append(password); }
sb.append("}");
return sb.toString();
}
}