io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.flowcontrol.v1beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class FlowSchemaSpecBuilder extends io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder {
io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluent> fluent;
java.lang.Boolean validationEnabled;
public FlowSchemaSpecBuilder() {
this(true);
}
public FlowSchemaSpecBuilder(java.lang.Boolean validationEnabled) {
this(new FlowSchemaSpec(), validationEnabled);
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluent> fluent) {
this(fluent, true);
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new FlowSchemaSpec(), validationEnabled);
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpec instance) {
this(fluent, instance, true);
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpecFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withDistinguisherMethod(instance.getDistinguisherMethod());
fluent.withMatchingPrecedence(instance.getMatchingPrecedence());
fluent.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration());
fluent.withRules(instance.getRules());
this.validationEnabled = validationEnabled;
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpec instance) {
this(instance,true);
}
public FlowSchemaSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withDistinguisherMethod(instance.getDistinguisherMethod());
this.withMatchingPrecedence(instance.getMatchingPrecedence());
this.withPriorityLevelConfiguration(instance.getPriorityLevelConfiguration());
this.withRules(instance.getRules());
this.validationEnabled = validationEnabled;
}
public io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.FlowSchemaSpec build() {
FlowSchemaSpec buildable = new FlowSchemaSpec(fluent.getDistinguisherMethod(),fluent.getMatchingPrecedence(),fluent.getPriorityLevelConfiguration(),fluent.getRules());
return buildable;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
FlowSchemaSpecBuilder that = (FlowSchemaSpecBuilder) 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());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy