Support additional metadata in external assets api
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / elements / OperationOutputDefinition.java
index af046ea..2579bca 100644 (file)
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.openecomp.sdc.be.datatypes.elements;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
@@ -30,11 +29,14 @@ public class OperationOutputDefinition extends InputDataDefinition {
         super(definition);
         setName(name);
     }
-    public OperationOutputDefinition(String paramName, String paramId) {
+
+    public OperationOutputDefinition(String name, Boolean mandatory, String type) {
         super();
-        setName(paramName);
-        setInputId(paramId);
+        setName(name);
+        setRequired(mandatory);
+        setType(type);
     }
+
     public String getLabel() {
         return (String) getToscaPresentationValue(JsonPresentationFields.ARTIFACT_LABEL);
     }
@@ -42,5 +44,4 @@ public class OperationOutputDefinition extends InputDataDefinition {
     public void setLabel(String name) {
         setToscaPresentationValue(JsonPresentationFields.ARTIFACT_LABEL, name);
     }
-
 }