added missing licence to CapabilityModel.java
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / java / org / onap / appc / seqgen / objects / CapabilityModel.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.appc.seqgen.objects;
23
24 import java.util.List;
25 import java.util.Map;
26
27 public class CapabilityModel {
28
29     private List<String> vnfCapabilities;
30     private List<String> vfModuleCapabilities;
31     private Map<String, List<String>> vmCapabilities;
32     private List<String> vnfcCapabilities;
33
34     public CapabilityModel() {
35     }
36     
37     public CapabilityModel( List<String> vnfCapabilities,
38                             List<String> vfModuleCapabilities,
39                             Map<String, List<String>> vmCapabilities,
40                             List<String> vnfcCapabilities) {
41
42         this.vnfCapabilities = vnfCapabilities;
43         this.vfModuleCapabilities = vfModuleCapabilities;
44         this.vmCapabilities = vmCapabilities;
45         this.vnfcCapabilities = vnfcCapabilities;
46     }
47     public List<String> getVnfCapabilities() {
48         return vnfCapabilities;
49     }
50     public List<String> getVfModuleCapabilities() {
51         return vfModuleCapabilities;
52     }
53     public Map<String,List<String>> getVmCapabilities() {
54         return vmCapabilities;
55     }
56     public List<String> getVnfcCapabilities() {
57         return vnfcCapabilities;
58     }
59     @Override
60     public String toString() {
61         return "CapabilitiesModel = " + "vnf=" + getVnfCapabilities() +
62                 "vfModule=" + getVfModuleCapabilities() +
63                 "vm=" + getVmCapabilities() +
64                 "vnfc=" + getVnfcCapabilities();
65     }
66 }