68fd95c2934b0176b7fdc42e63b305ea60201e29
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / Resources.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.so.serviceinstancebeans;
23
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
27 import java.util.Map;
28
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import com.fasterxml.jackson.annotation.JsonInclude.Include;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonRootName;
33
34 @JsonRootName(value = "resources")
35 @JsonInclude(Include.NON_DEFAULT)
36 public class Resources implements Serializable{
37         
38         private static final long serialVersionUID = 2194797231782624520L;
39         @JsonProperty("vnfs")
40         private List<Vnfs> vnfs = new ArrayList<>();
41         @JsonProperty("networks")
42         private List<Networks> networks = new ArrayList<>();
43         
44         public List<Vnfs> getVnfs() {
45                 return vnfs;
46         }
47         public void setVnfs(List<Vnfs> vnfs) {
48                 this.vnfs = vnfs;
49         }
50         public List<Networks> getNetworks() {
51                 return networks;
52         }
53         public void setNetworks(List<Networks> networks) {
54                 this.networks = networks;
55         }
56         @Override
57         public String toString() {
58                 return "Resources [vnfs=" + vnfs + ", networks=" + networks + "]";
59         }
60 }