Search in sources :

Example 1 with PlatformRegionsJson

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;
}
Also used : PlatformRegionsJson(com.sequenceiq.cloudbreak.api.model.PlatformRegionsJson)

Aggregations

PlatformRegionsJson (com.sequenceiq.cloudbreak.api.model.PlatformRegionsJson)1