AT&T 1712 and 1802 release code
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / adapters / sdncrest / RequestInformation.java
index 70d4110..3dc81fb 100644 (file)
@@ -19,7 +19,7 @@
  */
 package org.openecomp.mso.adapters.sdncrest;
 
-import org.codehaus.jackson.annotate.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonProperty;
 
 import javax.xml.bind.annotation.XmlElement;
 import java.io.Serializable;
@@ -43,6 +43,12 @@ public class RequestInformation implements Serializable {
        //     request-action
        //     request-sub-action
 
+       // Identifies the request action
+       private String requestAction;
+
+       // Identifies the request sub action
+       private String requestSubAction;
+
        public RequestInformation(String requestId, String source, String notificationUrl) {
                this.requestId = requestId;
                this.source = source;
@@ -84,4 +90,26 @@ public class RequestInformation implements Serializable {
        public void setNotificationUrl(String notificationUrl) {
                this.notificationUrl = notificationUrl;
        }
+
+       @JsonProperty("requestAction")
+       @XmlElement(name = "requestAction")
+       public String getRequestAction() {
+               return requestAction;
+       }
+
+       @JsonProperty("requestAction")
+       public void setRequestAction(String requestAction) {
+               this.requestAction = requestAction;
+       }
+
+       @JsonProperty("requestSubAction")
+       @XmlElement(name = "requestSubAction")
+       public String getRequestSubAction() {
+               return requestSubAction;
+       }
+
+       @JsonProperty("requestSubAction")
+       public void setRequestSubAction(String requestSubAction) {
+               this.requestSubAction = requestSubAction;
+       }
 }
\ No newline at end of file