io.kubernetes.client.openapi.models.V1WebhookConversionBuilder 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 V1WebhookConversionBuilder extends V1WebhookConversionFluentImpl implements VisitableBuilder {
V1WebhookConversionFluent> fluent;
Boolean validationEnabled;
public V1WebhookConversionBuilder() {
this(true);
}
public V1WebhookConversionBuilder(Boolean validationEnabled) {
this(new V1WebhookConversion(), validationEnabled);
}
public V1WebhookConversionBuilder(V1WebhookConversionFluent> fluent) {
this(fluent, true);
}
public V1WebhookConversionBuilder(V1WebhookConversionFluent> fluent,Boolean validationEnabled) {
this(fluent, new V1WebhookConversion(), validationEnabled);
}
public V1WebhookConversionBuilder(V1WebhookConversionFluent> fluent,V1WebhookConversion instance) {
this(fluent, instance, true);
}
public V1WebhookConversionBuilder(V1WebhookConversionFluent> fluent,V1WebhookConversion instance,Boolean validationEnabled) {
this.fluent = fluent;
fluent.withClientConfig(instance.getClientConfig());
fluent.withConversionReviewVersions(instance.getConversionReviewVersions());
this.validationEnabled = validationEnabled;
}
public V1WebhookConversionBuilder(V1WebhookConversion instance) {
this(instance,true);
}
public V1WebhookConversionBuilder(V1WebhookConversion instance,Boolean validationEnabled) {
this.fluent = this;
this.withClientConfig(instance.getClientConfig());
this.withConversionReviewVersions(instance.getConversionReviewVersions());
this.validationEnabled = validationEnabled;
}
public V1WebhookConversion build() {
V1WebhookConversion buildable = new V1WebhookConversion();
buildable.setClientConfig(fluent.getClientConfig());
buildable.setConversionReviewVersions(fluent.getConversionReviewVersions());
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;
V1WebhookConversionBuilder that = (V1WebhookConversionBuilder) 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());
}
}