Upversion artifacts to 1.8.0-SNAPSHOT
[aai/data-router.git] / src / main / java / org / onap / aai / datarouter / entity / SpikeEventVertex.java
index ab114ab..2350f93 100644 (file)
@@ -2,8 +2,8 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * Copyright © 2017 Amdocs
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 Amdocs
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 package org.onap.aai.datarouter.entity;
 
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-
 /**
  * A convenience POJO for mapping the Vertex from a Spike Event.
  * 
- * @author salmaA
  */
 
-@JsonIgnoreProperties(ignoreUnknown = true)
 public class SpikeEventVertex {
 
-  private String key;
+  private final String key;
 
   private String schemaVersion;
 
-  private String type;  
+  private final String type;
 
+  private final String entityLink;
 
-  public String getKey() {
-    return key;
+  public SpikeEventVertex(String type, String key) {
+    this.type = type;
+    this.key = key;
+    this.entityLink = type + "/" + key;
   }
 
-  public void setKey(String key) {
-    this.key = key;
+  public String getKey() {
+    return key;
   }
 
   public String getSchemaVersion() {
@@ -61,12 +57,8 @@ public class SpikeEventVertex {
     return type;
   }
 
-  public void setType(String type) {
-    this.type = type;
-  }
-  
   public String getEntityLink() {
-    return this.type + "/" + this.key; 
+    return entityLink;
   }
+
 }