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