io.fabric8.openshift.api.model.machine.v1beta1.LifecycleHooksBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.machine.v1beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class LifecycleHooksBuilder extends LifecycleHooksFluent implements VisitableBuilder{
public LifecycleHooksBuilder() {
this(new LifecycleHooks());
}
public LifecycleHooksBuilder(LifecycleHooksFluent> fluent) {
this(fluent, new LifecycleHooks());
}
public LifecycleHooksBuilder(LifecycleHooksFluent> fluent,LifecycleHooks instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public LifecycleHooksBuilder(LifecycleHooks instance) {
this.fluent = this;
this.copyInstance(instance);
}
LifecycleHooksFluent> fluent;
public LifecycleHooks build() {
LifecycleHooks buildable = new LifecycleHooks(fluent.buildPreDrain(),fluent.buildPreTerminate());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy