io.kubernetes.client.openapi.models.AdmissionregistrationV1beta1WebhookClientConfigBuilder 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 AdmissionregistrationV1beta1WebhookClientConfigBuilder extends AdmissionregistrationV1beta1WebhookClientConfigFluentImpl implements VisitableBuilder {
AdmissionregistrationV1beta1WebhookClientConfigFluent> fluent;
Boolean validationEnabled;
public AdmissionregistrationV1beta1WebhookClientConfigBuilder() {
this(true);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(Boolean validationEnabled) {
this(new AdmissionregistrationV1beta1WebhookClientConfig(), validationEnabled);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfigFluent> fluent) {
this(fluent, true);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfigFluent> fluent,Boolean validationEnabled) {
this(fluent, new AdmissionregistrationV1beta1WebhookClientConfig(), validationEnabled);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfigFluent> fluent,AdmissionregistrationV1beta1WebhookClientConfig instance) {
this(fluent, instance, true);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfigFluent> fluent,AdmissionregistrationV1beta1WebhookClientConfig instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withCaBundle(instance.getCaBundle());
fluent.withService(instance.getService());
fluent.withUrl(instance.getUrl());
this.validationEnabled = validationEnabled;
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfig instance) {
this(instance,true);
}
public AdmissionregistrationV1beta1WebhookClientConfigBuilder(AdmissionregistrationV1beta1WebhookClientConfig instance,Boolean validationEnabled) {
this.fluent = this;
this.withCaBundle(instance.getCaBundle());
this.withService(instance.getService());
this.withUrl(instance.getUrl());
this.validationEnabled = validationEnabled;
}
public AdmissionregistrationV1beta1WebhookClientConfig build() {
AdmissionregistrationV1beta1WebhookClientConfig buildable = new AdmissionregistrationV1beta1WebhookClientConfig();
buildable.setCaBundle(fluent.getCaBundle());
buildable.setService(fluent.getService());
buildable.setUrl(fluent.getUrl());
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;
AdmissionregistrationV1beta1WebhookClientConfigBuilder that = (AdmissionregistrationV1beta1WebhookClientConfigBuilder) 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());
}
}