use of org.ovirt.engine.api.v3.types.V3VnicProfiles in project ovirt-engine by oVirt.
the class V3VnicProfilesInAdapter method adapt.
@Override
public VnicProfiles adapt(V3VnicProfiles from) {
VnicProfiles to = new VnicProfiles();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getVnicProfiles().addAll(adaptIn(from.getVnicProfiles()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3VnicProfiles in project ovirt-engine by oVirt.
the class V3VnicProfilesOutAdapter method adapt.
@Override
public V3VnicProfiles adapt(VnicProfiles from) {
V3VnicProfiles to = new V3VnicProfiles();
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getVnicProfiles().addAll(adaptOut(from.getVnicProfiles()));
return to;
}
Aggregations