class MarathonConfigProcessor {

    public static void updateApiList(List<EnvironmentVO> environmentVOs) throws JsonProcessingException, SQLException, IOException{
        for(EnvironmentVO eVo : environmentVOs){
            if(eVo.getMarathonJson() != null && !eVo.getMarathonJson().equals("")){
                updateComponentFromMarathonConfig(eVo.getMarathonJson(), eVo.getEnvironmentId(), Region.WEST_REGION.getRegionId());
            }
            if(eVo.getEastMarathonJson() != null && !eVo.getEastMarathonJson().equals("")){
                updateComponentFromMarathonConfig(eVo.getEastMarathonJson(), eVo.getEnvironmentId(), Region.EAST_REGION.getRegionId());
            }
        }
    }

    private  MarathonConfigProcessor();

}