Merge "Enable long-running processes in ControllerExecutionBB"
[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  * Modifications Copyright (c) 2019 Nokia
9  * ================================================================================
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  * 
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  * 
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.so.serviceinstancebeans;
25
26 import java.io.Serializable;
27 import java.util.ArrayList;
28 import java.util.List;
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("pnfs")
42     private List<Pnfs> pnfs = new ArrayList<>();
43     @JsonProperty("networks")
44     private List<Networks> networks = new ArrayList<>();
45     @JsonProperty("services")
46     private List<Service> services = new ArrayList<>();
47
48     public List<Vnfs> getVnfs() {
49         return vnfs;
50     }
51
52     public void setVnfs(List<Vnfs> vnfs) {
53         this.vnfs = vnfs;
54     }
55
56     public List<Pnfs> getPnfs() {
57         return pnfs;
58     }
59
60     public void setPnfs(List<Pnfs> pnfs) {
61         this.pnfs = pnfs;
62     }
63
64     public List<Networks> getNetworks() {
65         return networks;
66     }
67
68     public void setNetworks(List<Networks> networks) {
69         this.networks = networks;
70     }
71
72     public List<Service> getServices() {
73         return services;
74     }
75
76     public void setServices(List<Service> services) {
77         this.services = services;
78     }
79
80     @Override
81     public String toString() {
82         return "Resources [vnfs=" + vnfs + ", networks=" + networks + ", services=" + services + "]";
83     }
84 }