Search in sources :

Example 1 with V3WatchDog

use of org.ovirt.engine.api.v3.types.V3WatchDog in project ovirt-engine by oVirt.

the class V3WatchdogOutAdapter method adapt.

@Override
public V3WatchDog adapt(Watchdog from) {
    V3WatchDog to = new V3WatchDog();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetAction()) {
        to.setAction(from.getAction().value());
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetInstanceType()) {
        to.setInstanceType(adaptOut(from.getInstanceType()));
    }
    if (from.isSetModel()) {
        to.setModel(from.getModel().value());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetTemplate()) {
        to.setTemplate(adaptOut(from.getTemplate()));
    }
    if (from.isSetVm()) {
        to.setVm(adaptOut(from.getVm()));
    }
    if (from.isSetVms()) {
        to.setVms(new V3VMs());
        to.getVms().getVMs().addAll(adaptOut(from.getVms().getVms()));
    }
    return to;
}
Also used : V3VMs(org.ovirt.engine.api.v3.types.V3VMs) V3WatchDog(org.ovirt.engine.api.v3.types.V3WatchDog)

Aggregations

V3VMs (org.ovirt.engine.api.v3.types.V3VMs)1 V3WatchDog (org.ovirt.engine.api.v3.types.V3WatchDog)1