summaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/healthcheck-rest/healthcheck-rest-types/src/main/java/org/openecomp/sdcrests/health/types/HealthCheckStatus.java
blob: b634a985322dd38ca41f811df8cbdd81d053b350 (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.sdcrests.health.types;


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;
    }
}