aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/nbi/apis/hub/model/EventType.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/onap/nbi/apis/hub/model/EventType.java')
-rw-r--r--src/main/java/org/onap/nbi/apis/hub/model/EventType.java55
1 files changed, 28 insertions, 27 deletions
diff --git a/src/main/java/org/onap/nbi/apis/hub/model/EventType.java b/src/main/java/org/onap/nbi/apis/hub/model/EventType.java
index 5db21f3..5e4adbb 100644
--- a/src/main/java/org/onap/nbi/apis/hub/model/EventType.java
+++ b/src/main/java/org/onap/nbi/apis/hub/model/EventType.java
@@ -11,6 +11,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
+
package org.onap.nbi.apis.hub.model;
import com.fasterxml.jackson.annotation.JsonCreator;
@@ -18,44 +19,44 @@ import com.fasterxml.jackson.annotation.JsonValue;
public enum EventType {
- SERVICE_ORDER_CREATION("ServiceOrderCreationNotification"),
+ SERVICE_ORDER_CREATION("ServiceOrderCreationNotification"),
- SERVICE_ORDER_STATE_CHANGE("ServiceOrderStateChangeNotification"),
+ SERVICE_ORDER_STATE_CHANGE("ServiceOrderStateChangeNotification"),
- SERVICE_ORDER_ITEM_STATE_CHANGE("ServiceOrderItemStateChangeNotification"),
+ SERVICE_ORDER_ITEM_STATE_CHANGE("ServiceOrderItemStateChangeNotification"),
- SERVICE_CREATION("ServiceCreationNotification"),
+ SERVICE_CREATION("ServiceCreationNotification"),
- SERVICE_ATTRIBUTE_VALUE_CHANGE("ServiceAttributeValueChangeNotification"),
+ SERVICE_ATTRIBUTE_VALUE_CHANGE("ServiceAttributeValueChangeNotification"),
- SERVICE_REMOVE("ServiceRemoveNotification"),
+ SERVICE_REMOVE("ServiceRemoveNotification"),
- SDC_DISTRIBUTION("SdcDistributionNotification");
+ SDC_DISTRIBUTION("SdcDistributionNotification");
- private String value;
+ private String value;
- EventType(String value) {
- this.value = value;
- }
+ EventType(String value) {
+ this.value = value;
+ }
- @Override
- public String toString() {
- return String.valueOf(value);
- }
+ @Override
+ public String toString() {
+ return String.valueOf(value);
+ }
- @JsonCreator
- public static EventType fromValue(String text) {
- for (EventType b : EventType.values()) {
- if (String.valueOf(b.value).equals(text)) {
- return b;
- }
+ @JsonCreator
+ public static EventType fromValue(String text) {
+ for (EventType b : EventType.values()) {
+ if (String.valueOf(b.value).equals(text)) {
+ return b;
+ }
+ }
+ return null;
}
- return null;
- }
- @JsonValue
- public String value() {
- return this.value;
- }
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
}