}
private static final LoadBalancing toDataModel(com.alu.e3.prov.restapi.model.LoadBalancing loadBalancing) {
if (loadBalancing==null) throw new IllegalArgumentException("loadBalancing must not be null");
LoadBalancing lb = new LoadBalancing();
lb.setLoadBalancingType(toDataModel(loadBalancing.getLoadBalancingType()));
if(loadBalancing.getTargetHealthCheck() != null)
lb.setTargetHealthCheck(toDataModel(loadBalancing.getTargetHealthCheck()));
if(loadBalancing.getFailOver() != null)
lb.setFailOver(toDataModel(loadBalancing.getFailOver()));
return lb;
}