package org.openecomp.policy.api;
+import com.fasterxml.jackson.annotation.JsonCreator;
+
/**
* Enumeration of the Policy Return Types that can be returned as part of a
* {@link org.openecomp.policy.api.PolicyConfig}.
public String toString() {
return this.name;
}
+ @JsonCreator
+ public static PolicyType create (String value) {
+ for(PolicyType type: values()){
+ if(type.toString().equalsIgnoreCase(value)){
+ return type;
+ }
+ }
+ throw new IllegalArgumentException();
+ }
}