use of org.ovirt.engine.api.v3.types.V3BrickProfileDetails in project ovirt-engine by oVirt.
the class V3GlusterVolumeProfileDetailsOutAdapter method adapt.
@Override
public V3GlusterVolumeProfileDetails adapt(GlusterVolumeProfileDetails from) {
V3GlusterVolumeProfileDetails to = new V3GlusterVolumeProfileDetails();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetBrickProfileDetails()) {
to.setBrickProfileDetails(new V3BrickProfileDetails());
to.getBrickProfileDetails().getBrickProfileDetail().addAll(adaptOut(from.getBrickProfileDetails().getBrickProfileDetails()));
}
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.isSetName()) {
to.setName(from.getName());
}
if (from.isSetNfsProfileDetails()) {
to.setNfsProfileDetails(new V3NfsProfileDetails());
to.getNfsProfileDetails().getNfsProfileDetail().addAll(adaptOut(from.getNfsProfileDetails().getNfsProfileDetails()));
}
return to;
}
Aggregations