use of com.sequenceiq.cloudbreak.api.model.PlatformRegionsJson in project cloudbreak by hortonworks.
the class PlatformRegionsToPlatformRegionsJsonConverter method convert.
@Override
public PlatformRegionsJson convert(PlatformRegions source) {
PlatformRegionsJson json = new PlatformRegionsJson();
json.setAvailabilityZones(convertAvailibilityZones(source.getAvailabiltyZones()));
json.setDefaultRegions(PlatformConverterUtil.convertDefaults(source.getDefaultRegions()));
json.setRegions(PlatformConverterUtil.convertPlatformMap(source.getRegions()));
json.setDisplayNames(PlatformConverterUtil.convertDisplayNameMap(source.getRegionDisplayNames()));
return json;
}
Aggregations