use of com.sequenceiq.cloudbreak.api.model.PlatformVirtualMachinesJson in project cloudbreak by hortonworks.
the class PlatformVirtualMachineTypesToPlatformVirtualMachinesJsonConverter method convert.
@Override
public PlatformVirtualMachinesJson convert(PlatformVirtualMachines source) {
PlatformVirtualMachinesJson json = new PlatformVirtualMachinesJson();
json.setDefaultVirtualMachines(PlatformConverterUtil.convertDefaults(source.getDefaultVirtualMachines()));
json.setVirtualMachines(convertVmMap(source.getVirtualMachines()));
json.setVmTypesPerZones(convertVmsPerZoneMap(source.getVmTypesPerZones()));
json.setDefaultVmTypePerZones(convertDefaultVmsPerZoneMap(source.getDefaultVmTypePerZones()));
return json;
}
Aggregations