Added input parameter loading handling from SDNC
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / bpmn / infrastructure / adapter / vnfm / tasks / utils / InputParameter.java
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2019 Ericsson. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * 
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  * 
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  * 
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.bpmn.infrastructure.adapter.vnfm.tasks.utils;
21
22 import java.io.Serializable;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
26 import java.util.Map;
27
28 import org.onap.vnfmadapter.v1.model.ExternalVirtualLink;
29
30 /**
31  * Wrapper class for instance parameters which are based on SOL003
32  * 
33  * @author waqas.ikram@est.tech
34  */
35 public class InputParameter implements Serializable {
36
37     private static final long serialVersionUID = 42034634585595304L;
38
39     private Map<String, String> additionalParams = new HashMap<>();
40
41     private List<ExternalVirtualLink> extVirtualLinks = new ArrayList<>();
42
43     public InputParameter(final Map<String, String> additionalParams, final List<ExternalVirtualLink> extVirtualLinks) {
44         this.additionalParams = additionalParams;
45         this.extVirtualLinks = extVirtualLinks;
46     }
47
48     /**
49      * @return the additionalParams
50      */
51     public Map<String, String> getAdditionalParams() {
52         return additionalParams;
53     }
54
55     /**
56      * @return the extVirtualLinks
57      */
58     public List<ExternalVirtualLink> getExtVirtualLinks() {
59         return extVirtualLinks;
60     }
61
62     /**
63      * @param additionalParams the additionalParams to set
64      */
65     public void setAdditionalParams(final Map<String, String> additionalParams) {
66         this.additionalParams = additionalParams;
67     }
68
69     /**
70      * @param extVirtualLinks the extVirtualLinks to set
71      */
72     public void setExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
73         this.extVirtualLinks = extVirtualLinks;
74     }
75
76     @Override
77     public String toString() {
78         return "InputParameter [additionalParams=" + additionalParams + ", extVirtualLinks=" + extVirtualLinks + "]";
79     }
80
81 }