io.fabric8.kubernetes.api.model.scheduling.v1.PriorityClassBuilder Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.scheduling.v1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class PriorityClassBuilder extends PriorityClassFluent implements VisitableBuilder{
public PriorityClassBuilder() {
this(new PriorityClass());
}
public PriorityClassBuilder(PriorityClassFluent> fluent) {
this(fluent, new PriorityClass());
}
public PriorityClassBuilder(PriorityClassFluent> fluent,PriorityClass instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public PriorityClassBuilder(PriorityClass instance) {
this.fluent = this;
this.copyInstance(instance);
}
PriorityClassFluent> fluent;
public PriorityClass build() {
PriorityClass buildable = new PriorityClass(fluent.getApiVersion(),fluent.getDescription(),fluent.getGlobalDefault(),fluent.getKind(),fluent.buildMetadata(),fluent.getPreemptionPolicy(),fluent.getValue());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}