[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-be / api / openecomp-sdc-rest-webapp / healthcheck-rest / healthcheck-rest-types / src / main / java / org / openecomp / sdcrests / health / types / HealthCheckStatus.java
1 package org.openecomp.sdcrests.health.types;
2
3
4 public enum HealthCheckStatus {
5     UP("UP"),
6     DOWN("DOWN");
7
8     private String name;
9
10     HealthCheckStatus(String name) {
11         this.name = name;
12     }
13
14
15     @Override
16     public String toString() {
17         return name;
18     }
19
20     public static final HealthCheckStatus toValue(String inVal){
21         for (HealthCheckStatus val : values()){
22             if (val.toString().equals(inVal)){
23                 return val;
24             }
25         }
26         return null;
27     }
28 }