io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.CPUBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class CPUBuilder extends CPUFluent implements VisitableBuilder{
public CPUBuilder() {
this(new CPU());
}
public CPUBuilder(CPUFluent> fluent) {
this(fluent, new CPU());
}
public CPUBuilder(CPUFluent> fluent,CPU instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public CPUBuilder(CPU instance) {
this.fluent = this;
this.copyInstance(instance);
}
CPUFluent> fluent;
public CPU build() {
CPU buildable = new CPU(fluent.getArch(),fluent.getClockMegahertz(),fluent.getCount(),fluent.getFlags(),fluent.getModel());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}