use of org.ovirt.engine.api.v3.types.V3Agent in project ovirt-engine by oVirt.
the class V3AgentInAdapter method adapt.
@Override
public Agent adapt(V3Agent from) {
Agent to = new Agent();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptIn(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetAddress()) {
to.setAddress(from.getAddress());
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetConcurrent()) {
to.setConcurrent(from.isConcurrent());
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetEncryptOptions()) {
to.setEncryptOptions(from.isEncryptOptions());
}
if (from.isSetHost()) {
to.setHost(adaptIn(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.isSetOptions()) {
to.setOptions(new Options());
to.getOptions().getOptions().addAll(adaptIn(from.getOptions().getOptions()));
}
if (from.isSetOrder()) {
to.setOrder(from.getOrder());
}
if (from.isSetPassword()) {
to.setPassword(from.getPassword());
}
if (from.isSetPort()) {
to.setPort(from.getPort());
}
if (from.isSetType()) {
to.setType(from.getType());
}
if (from.isSetUsername()) {
to.setUsername(from.getUsername());
}
return to;
}
use of org.ovirt.engine.api.v3.types.V3Agent in project ovirt-engine by oVirt.
the class V3AgentOutAdapter method adapt.
@Override
public V3Agent adapt(Agent from) {
V3Agent to = new V3Agent();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetAddress()) {
to.setAddress(from.getAddress());
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetConcurrent()) {
to.setConcurrent(from.isConcurrent());
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetEncryptOptions()) {
to.setEncryptOptions(from.isEncryptOptions());
}
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.isSetOptions()) {
to.setOptions(new V3Options());
to.getOptions().getOptions().addAll(adaptOut(from.getOptions().getOptions()));
}
if (from.isSetOrder()) {
to.setOrder(from.getOrder());
}
if (from.isSetPassword()) {
to.setPassword(from.getPassword());
}
if (from.isSetPort()) {
to.setPort(from.getPort());
}
if (from.isSetType()) {
to.setType(from.getType());
}
if (from.isSetUsername()) {
to.setUsername(from.getUsername());
}
return to;
}