use of com.sequenceiq.cloudbreak.api.model.AccessConfigJson in project cloudbreak by hortonworks.
the class CloudAccessConfigsToPlatformAccessConfigsResponseConverter method convert.
@Override
public PlatformAccessConfigsResponse convert(CloudAccessConfigs source) {
PlatformAccessConfigsResponse platformAccessConfigsResponse = new PlatformAccessConfigsResponse();
Set<AccessConfigJson> result = new HashSet<>();
for (CloudAccessConfig entry : source.getCloudAccessConfigs()) {
AccessConfigJson actual = new AccessConfigJson(entry.getName(), entry.getId(), entry.getProperties());
result.add(actual);
}
platformAccessConfigsResponse.setAccessConfigs(result);
return platformAccessConfigsResponse;
}
Aggregations