[ONOS-7296] Add ResourceId to RpcInput

Change-Id: I4859e2396ffbab938140cb3354b3eaf6b78a51ba
diff --git a/model/src/main/java/org/onosproject/yang/model/RpcInput.java b/model/src/main/java/org/onosproject/yang/model/RpcInput.java
index 21123b9..af86cb1 100644
--- a/model/src/main/java/org/onosproject/yang/model/RpcInput.java
+++ b/model/src/main/java/org/onosproject/yang/model/RpcInput.java
@@ -20,6 +20,14 @@
  * Abstraction for RPC input.
  */
 public class RpcInput {
+
+    /**
+     * Resource identifier pointing to an RPC. Its an absolute resource
+     * identifier starting with logical root node "/" and can be used by
+     * application as is for model conversion of RPC input.
+     */
+    private ResourceId id;
+
     /**
      * Input data to the RPC execution.
      */
@@ -43,11 +51,31 @@
     }
 
     /**
+     * Creates an instance of RpcInput.
+     *
+     * @param id   rpc identifier
+     * @param data input for thr Rpc execution
+     */
+    public RpcInput(ResourceId id, DataNode data) {
+        this.id = id;
+        this.data = data;
+    }
+
+    /**
+     * Returns the rpc identifier to which input belongs.
+     *
+     * @return id rpc identifier
+     */
+    public ResourceId id() {
+        return id;
+    }
+
+    /**
      * Returns the data specified in this input.
      *
      * @return data specified in this input
      */
     public DataNode data() {
-        return this.data;
+        return data;
     }
 }
\ No newline at end of file