diff options
Diffstat (limited to 'bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java')
-rw-r--r-- | bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java index 876c7e002f..1718de9fe0 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sdnc/beans/SDNCSvcAction.java @@ -23,33 +23,38 @@ package org.onap.so.client.sdnc.beans; import org.onap.sdnc.northbound.client.model.GenericResourceApiSvcActionEnumeration; public enum SDNCSvcAction { - ACTIVATE("activate",GenericResourceApiSvcActionEnumeration.ACTIVATE), - DELETE("delete",GenericResourceApiSvcActionEnumeration.DELETE), - ASSIGN("assign",GenericResourceApiSvcActionEnumeration.ASSIGN), - ROLLBACK("rollback",GenericResourceApiSvcActionEnumeration.ROLLBACK), - UNASSIGN("unassign",GenericResourceApiSvcActionEnumeration.UNASSIGN), - DEACTIVATE("deactivate",GenericResourceApiSvcActionEnumeration.DEACTIVATE), - CHANGE_DELETE("changedelete",GenericResourceApiSvcActionEnumeration.CHANGEDELETE), - CHANGE_ASSIGN("changeassign",GenericResourceApiSvcActionEnumeration.CHANGEASSIGN), - CREATE("create",GenericResourceApiSvcActionEnumeration.CREATE), - ENABLE("enable",GenericResourceApiSvcActionEnumeration.ENABLE), - DISABLE("disable",GenericResourceApiSvcActionEnumeration.DISABLE); - - private final String name; - - private GenericResourceApiSvcActionEnumeration sdncApiAction ; - - private SDNCSvcAction(String name , GenericResourceApiSvcActionEnumeration sdncApiAction) { - this.name = name; - this.sdncApiAction = sdncApiAction; - } - - public GenericResourceApiSvcActionEnumeration getSdncApiAction(){ - return this.sdncApiAction; - } - - @Override - public String toString() { - return name; - } + ACTIVATE("activate", GenericResourceApiSvcActionEnumeration.ACTIVATE), DELETE("delete", + GenericResourceApiSvcActionEnumeration.DELETE), ASSIGN("assign", + GenericResourceApiSvcActionEnumeration.ASSIGN), ROLLBACK("rollback", + GenericResourceApiSvcActionEnumeration.ROLLBACK), UNASSIGN("unassign", + GenericResourceApiSvcActionEnumeration.UNASSIGN), DEACTIVATE("deactivate", + GenericResourceApiSvcActionEnumeration.DEACTIVATE), CHANGE_DELETE( + "changedelete", + GenericResourceApiSvcActionEnumeration.CHANGEDELETE), CHANGE_ASSIGN( + "changeassign", + GenericResourceApiSvcActionEnumeration.CHANGEASSIGN), CREATE( + "create", + GenericResourceApiSvcActionEnumeration.CREATE), ENABLE( + "enable", + GenericResourceApiSvcActionEnumeration.ENABLE), DISABLE( + "disable", + GenericResourceApiSvcActionEnumeration.DISABLE); + + private final String name; + + private GenericResourceApiSvcActionEnumeration sdncApiAction; + + private SDNCSvcAction(String name, GenericResourceApiSvcActionEnumeration sdncApiAction) { + this.name = name; + this.sdncApiAction = sdncApiAction; + } + + public GenericResourceApiSvcActionEnumeration getSdncApiAction() { + return this.sdncApiAction; + } + + @Override + public String toString() { + return name; + } } |