io.fabric8.openshift.api.model.machine.v1beta1.MachineStatusBuilder Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.machine.v1beta1;
import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class MachineStatusBuilder extends MachineStatusFluent implements VisitableBuilder{
public MachineStatusBuilder() {
this(new MachineStatus());
}
public MachineStatusBuilder(MachineStatusFluent> fluent) {
this(fluent, new MachineStatus());
}
public MachineStatusBuilder(MachineStatusFluent> fluent,MachineStatus instance) {
this.fluent = fluent;
fluent.copyInstance(instance);
}
public MachineStatusBuilder(MachineStatus instance) {
this.fluent = this;
this.copyInstance(instance);
}
MachineStatusFluent> fluent;
public MachineStatus build() {
MachineStatus buildable = new MachineStatus(fluent.getAddresses(),fluent.buildConditions(),fluent.getErrorMessage(),fluent.getErrorReason(),fluent.buildLastOperation(),fluent.getLastUpdated(),fluent.buildNodeRef(),fluent.getPhase(),fluent.getProviderStatus());
buildable.setAdditionalProperties(fluent.getAdditionalProperties());
return buildable;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy