d01d494c584b3f0601bbdd1e98b7a71d93e3df50
[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 import org.onap.vnfmadapter.v1.model.ExternalVirtualLink;
28
29 /**
30  * Wrapper class for instance parameters which are based on SOL003
31  * 
32  * @author waqas.ikram@est.tech
33  */
34 public class InputParameter implements Serializable {
35
36     private static final long serialVersionUID = 42034634585595304L;
37
38     private Map<String, String> additionalParams = new HashMap<>();
39
40     private List<ExternalVirtualLink> extVirtualLinks = new ArrayList<>();
41
42     public InputParameter(final Map<String, String> additionalParams, final List<ExternalVirtualLink> extVirtualLinks) {
43         this.additionalParams = additionalParams;
44         this.extVirtualLinks = extVirtualLinks;
45     }
46
47     /**
48      * @return the additionalParams
49      */
50     public Map<String, String> getAdditionalParams() {
51         return additionalParams;
52     }
53
54     /**
55      * @return the extVirtualLinks
56      */
57     public List<ExternalVirtualLink> getExtVirtualLinks() {
58         return extVirtualLinks;
59     }
60
61     /**
62      * @param additionalParams the additionalParams to set
63      */
64     public void setAdditionalParams(final Map<String, String> additionalParams) {
65         this.additionalParams = additionalParams;
66     }
67
68     /**
69      * @param extVirtualLinks the extVirtualLinks to set
70      */
71     public void setExtVirtualLinks(final List<ExternalVirtualLink> extVirtualLinks) {
72         this.extVirtualLinks = extVirtualLinks;
73     }
74
75     @Override
76     public String toString() {
77         return "InputParameter [additionalParams=" + additionalParams + ", extVirtualLinks=" + extVirtualLinks + "]";
78     }
79
80 }