use of org.ovirt.engine.api.v3.types.V3SPM in project ovirt-engine by oVirt.
the class V3SpmOutAdapter method adapt.
@Override
public V3SPM adapt(Spm from) {
V3SPM to = new V3SPM();
if (from.isSetPriority()) {
to.setPriority(from.getPriority());
}
if (from.isSetStatus()) {
V3Status status = new V3Status();
status.setState(from.getStatus().value());
to.setStatus(status);
}
return to;
}