io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecBuilder 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 PriorityLevelConfigurationSpecBuilder extends io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluentImpl implements io.fabric8.kubernetes.api.builder.VisitableBuilder{
public PriorityLevelConfigurationSpecBuilder() {
this(false);
}
public PriorityLevelConfigurationSpecBuilder(java.lang.Boolean validationEnabled) {
this(new PriorityLevelConfigurationSpec(), validationEnabled);
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluent> fluent) {
this(fluent, false);
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluent> fluent,java.lang.Boolean validationEnabled) {
this(fluent, new PriorityLevelConfigurationSpec(), validationEnabled);
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpec instance) {
this(fluent, instance, false);
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluent> fluent,io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = fluent;
fluent.withLimited(instance.getLimited());
fluent.withType(instance.getType());
fluent.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpec instance) {
this(instance,false);
}
public PriorityLevelConfigurationSpecBuilder(io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpec instance,java.lang.Boolean validationEnabled) {
this.fluent = this;
this.withLimited(instance.getLimited());
this.withType(instance.getType());
this.withAdditionalProperties(instance.getAdditionalProperties());
this.validationEnabled = validationEnabled;
}
io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpecFluent> fluent;
java.lang.Boolean validationEnabled;
public io.fabric8.kubernetes.api.model.flowcontrol.v1beta1.PriorityLevelConfigurationSpec build() {
PriorityLevelConfigurationSpec buildable = new PriorityLevelConfigurationSpec(fluent.getLimited(),fluent.getType());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
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;
PriorityLevelConfigurationSpecBuilder that = (PriorityLevelConfigurationSpecBuilder) 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