io.fabric8.openshift.api.model.machine.v1beta1.MachineSpecBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.machine.v1beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MachineSpecBuilder extends MachineSpecFluent implements VisitableBuilder{
public MachineSpecBuilder() {
this(new MachineSpec());
}
public MachineSpecBuilder(MachineSpecFluent> fluent) {
this(fluent, new MachineSpec());
}
public MachineSpecBuilder(MachineSpecFluent> fluent,MachineSpec instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public MachineSpecBuilder(MachineSpec instance) {
this.fluent = this;
this.copyInstance(instance);
}
MachineSpecFluent> fluent;
public MachineSpec build() {
MachineSpec buildable = new MachineSpec(fluent.buildLifecycleHooks(),fluent.buildMetadata(),fluent.getProviderID(),fluent.buildProviderSpec(),fluent.getTaints());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy