io.kubernetes.client.openapi.models.ExtensionsV1beta1IngressTLSBuilder Maven / Gradle / Ivy
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class ExtensionsV1beta1IngressTLSBuilder extends ExtensionsV1beta1IngressTLSFluentImpl implements VisitableBuilder {
ExtensionsV1beta1IngressTLSFluent> fluent;
Boolean validationEnabled;
public ExtensionsV1beta1IngressTLSBuilder() {
this(true);
}
public ExtensionsV1beta1IngressTLSBuilder(Boolean validationEnabled) {
this(new ExtensionsV1beta1IngressTLS(), validationEnabled);
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLSFluent> fluent) {
this(fluent, true);
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLSFluent> fluent,Boolean validationEnabled) {
this(fluent, new ExtensionsV1beta1IngressTLS(), validationEnabled);
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLSFluent> fluent,ExtensionsV1beta1IngressTLS instance) {
this(fluent, instance, true);
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLSFluent> fluent,ExtensionsV1beta1IngressTLS instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withHosts(instance.getHosts());
fluent.withSecretName(instance.getSecretName());
this.validationEnabled = validationEnabled;
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLS instance) {
this(instance,true);
}
public ExtensionsV1beta1IngressTLSBuilder(ExtensionsV1beta1IngressTLS instance,Boolean validationEnabled) {
this.fluent = this;
this.withHosts(instance.getHosts());
this.withSecretName(instance.getSecretName());
this.validationEnabled = validationEnabled;
}
public ExtensionsV1beta1IngressTLS build() {
ExtensionsV1beta1IngressTLS buildable = new ExtensionsV1beta1IngressTLS();
buildable.setHosts(fluent.getHosts());
buildable.setSecretName(fluent.getSecretName());
return buildable;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
ExtensionsV1beta1IngressTLSBuilder that = (ExtensionsV1beta1IngressTLSBuilder) o;
if (fluent != null &&fluent != this ? !fluent.equals(that.fluent) :that.fluent != null &&fluent != this ) return false;
if (validationEnabled != null ? !validationEnabled.equals(that.validationEnabled) :that.validationEnabled != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(fluent, validationEnabled, super.hashCode());
}
}