aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/healthcheck-rest/healthcheck-rest-types/src/main/java/org/openecomp/sdcrests/health/types/HealthInfoDtos.java
blob: e1385d6b800108f7aaf98d7851d30a24ac540fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package org.openecomp.sdcrests.health.types;


import java.util.List;
import java.util.stream.Collectors;

public class HealthInfoDtos {
    private List<HealthInfoDto> healthInfos;

    public HealthInfoDtos() {
    }

    public HealthInfoDtos(List<HealthInfoDto> healthInfos) {
        this.healthInfos = healthInfos;
    }

    public List<HealthInfoDto> getHealthInfos() {
        return healthInfos;
    }

    public void setHealthInfos(List<HealthInfoDto> healthInfos) {
        this.healthInfos = healthInfos;
    }

    @Override
    public String toString() {
       return  healthInfos.stream().map(healthInfoDto -> healthInfoDto.toString())
               .collect(Collectors.joining(", "));

    }
}