Search in sources :

Example 1 with V3SPM

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;
}
Also used : V3SPM(org.ovirt.engine.api.v3.types.V3SPM) V3Status(org.ovirt.engine.api.v3.types.V3Status)

Aggregations

V3SPM (org.ovirt.engine.api.v3.types.V3SPM)1 V3Status (org.ovirt.engine.api.v3.types.V3Status)1