Merge of new rebased code
[appc.git] / appc-event-listener / appc-event-listener-bundle / src / main / java / org / openecomp / appc / listener / LCM / model / DmaapMessage.java
index 56099cb..95453ad 100644 (file)
@@ -31,6 +31,15 @@ import com.fasterxml.jackson.databind.JsonNode;
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class DmaapMessage{
 
+    @JsonProperty("version")
+    private String version;
+
+    @JsonProperty("type")
+    private String type;
+
+    @JsonProperty("correlation-id")
+    private String correlationID;
+
     @JsonProperty("cambria.partition")
     private String cambriaPartition;
 
@@ -43,6 +52,30 @@ public class DmaapMessage{
     public DmaapMessage() {
     }
 
+    public String getVersion() {
+        return version;
+    }
+
+    public void setVersion(String version) {
+        this.version = version;
+    }
+
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
+
+    public String getCorrelationID() {
+        return correlationID;
+    }
+
+    public void setCorrelationID(String correlationID) {
+        this.correlationID = correlationID;
+    }
+
     public String getCambriaPartition() {
         return cambriaPartition;
     }
@@ -70,10 +103,14 @@ public class DmaapMessage{
     @Override
     public String toString() {
         return "DmaapMessage{" +
-                "cambriaPartition='" + cambriaPartition + '\'' +
+                "version='" + version + '\'' +
+                ", type='" + type + '\'' +
+                ", correlationId='" + correlationID + '\'' +
+                ", cambriaPartition='" + cambriaPartition + '\'' +
                 ", rpcName='" + rpcName + '\'' +
                 ", body=" + body +
                 '}';
     }
+
 }