summaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/data/HealthCheckStatus.java
blob: a876128bced4fc3757a3ac0132b688936f191882 (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
package org.openecomp.sdc.health.data;


public enum HealthCheckStatus {
    UP("UP"),
    DOWN("DOWN");

    private String name;

    HealthCheckStatus(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return name;
    }

    public static final HealthCheckStatus toValue(String inVal){
        for (HealthCheckStatus val : values()){
            if (val.toString().equals(inVal)){
                return val;
            }
        }
        return null;
    }
}