Add resources to Intent.Builder

Change-Id: I9b1cfd48aebae8de82a1419ab38a3f09488a43a7
diff --git a/core/api/src/main/java/org/onosproject/net/intent/Intent.java b/core/api/src/main/java/org/onosproject/net/intent/Intent.java
index 387b01b..f4293ce 100644
--- a/core/api/src/main/java/org/onosproject/net/intent/Intent.java
+++ b/core/api/src/main/java/org/onosproject/net/intent/Intent.java
@@ -89,6 +89,7 @@
         protected ApplicationId appId;
         protected Key key;
         protected int priority = Intent.DEFAULT_INTENT_PRIORITY;
+        protected Collection<NetworkResource> resources;
 
         /**
          * Creates a new empty builder.
@@ -141,6 +142,16 @@
             return this;
         }
 
+        /**
+         * Sets the collection of resources required for this intent.
+         *
+         * @param resources collection of resources
+         * @return this builder
+         */
+        public Builder resources(Collection<NetworkResource> resources) {
+            this.resources = resources;
+            return this;
+        }
     }
 
     /**