use of com.sequenceiq.cloudbreak.api.endpoint.v4.blueprint.responses.BlueprintServicesV4Response in project cloudbreak by hortonworks.
the class SupportedServicesToBlueprintServicesV4ResponseConverter method convert.
public BlueprintServicesV4Response convert(SupportedServices source) {
BlueprintServicesV4Response blueprintServicesV4Response = new BlueprintServicesV4Response();
Set<SupportedServiceV4Response> services = new TreeSet<>();
for (SupportedService service : source.getServices()) {
SupportedServiceV4Response supportedServiceV4Response = new SupportedServiceV4Response();
supportedServiceV4Response.setDisplayName(service.getDisplayName());
supportedServiceV4Response.setVersion(service.getVersion());
supportedServiceV4Response.setName(service.getName());
services.add(supportedServiceV4Response);
}
blueprintServicesV4Response.setServices(services);
return blueprintServicesV4Response;
}
Aggregations