use of org.ovirt.engine.api.v3.types.V3NumaNodePins in project ovirt-engine by oVirt.
the class V3VirtualNumaNodeOutAdapter method adapt.
@Override
public V3VirtualNumaNode adapt(VirtualNumaNode from) {
V3VirtualNumaNode to = new V3VirtualNumaNode();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetCpu()) {
to.setCpu(adaptOut(from.getCpu()));
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetHost()) {
to.setHost(adaptOut(from.getHost()));
}
if (from.isSetId()) {
to.setId(from.getId());
}
if (from.isSetHref()) {
to.setHref(from.getHref());
}
if (from.isSetIndex()) {
to.setIndex(from.getIndex());
}
if (from.isSetMemory()) {
to.setMemory(from.getMemory());
}
if (from.isSetName()) {
to.setName(from.getName());
}
if (from.isSetNodeDistance()) {
to.setNodeDistance(from.getNodeDistance());
}
if (from.isSetNumaNodePins()) {
to.setNumaNodePins(new V3NumaNodePins());
to.getNumaNodePins().getNumaNodePin().addAll(adaptOut(from.getNumaNodePins().getNumaNodePins()));
}
if (from.isSetStatistics()) {
to.setStatistics(new V3Statistics());
to.getStatistics().getStatistics().addAll(adaptOut(from.getStatistics().getStatistics()));
}
if (from.isSetVm()) {
to.setVm(adaptOut(from.getVm()));
}
return to;
}
Aggregations