use of org.ovirt.engine.api.v3.types.V3GlusterServerHook in project ovirt-engine by oVirt.
the class V3GlusterServerHookOutAdapter method adapt.
@Override
public V3GlusterServerHook adapt(GlusterServerHook from) {
V3GlusterServerHook to = new V3GlusterServerHook();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetChecksum()) {
to.setChecksum(from.getChecksum());
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetContentType()) {
to.setContentType(from.getContentType().value());
}
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.isSetName()) {
to.setName(from.getName());
}
if (from.isSetStatus()) {
V3Status status = new V3Status();
status.setState(from.getStatus().value());
to.setStatus(status);
}
return to;
}
Aggregations