Containerization feature of SO
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / nwrest / ContrailNetwork.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.adapters.nwrest;
22
23
24 import java.io.Serializable;
25 import java.util.List;
26
27 import org.onap.so.openstack.beans.RouteTarget;
28
29 import com.fasterxml.jackson.annotation.JsonRootName;
30
31 @JsonRootName("contrailNetwork")
32 public class ContrailNetwork implements Serializable{
33         
34         
35         /**
36          * 
37          */
38         private static final long serialVersionUID = 6879356795950005963L;
39         private String shared   = "false";
40         private String external = "false";
41         private List<RouteTarget> routeTargets;
42         private List<String> policyFqdns;
43         private List<String> routeTableFqdns;
44         
45         public ContrailNetwork() {
46                 super();
47         }
48
49         public ContrailNetwork(String shared, String external, List<RouteTarget> routeTargets, List<String> policyFqdns, List<String> routeTableFqdns) {
50                 super();
51                 this.shared = shared;
52                 this.external = external;
53                 this.routeTargets = routeTargets;
54                 this.policyFqdns = policyFqdns;
55                 this.routeTableFqdns = routeTableFqdns;
56         }
57
58         public String getShared() {
59                 return shared;
60         }
61
62         public void setShared(String shared) {
63                 this.shared = shared;
64         }
65
66         public String getExternal() {
67                 return external;
68         }
69
70         public void setExternal(String external) {
71                 this.external = external;
72         }
73
74         public List<RouteTarget> getRouteTargets() {
75                 return routeTargets;
76         }
77
78         public void setRouteTargets(List<RouteTarget> routeTargets) {
79                 this.routeTargets = routeTargets;
80         }
81
82         public List<String> getPolicyFqdns() {
83                 return policyFqdns;
84         }
85
86         public void setPolicyFqdns(List<String> policyFqdns) {
87                 this.policyFqdns = policyFqdns;
88         }
89         
90         public List<String> getRouteTableFqdns() {
91                 return routeTableFqdns;
92         }
93
94         public void setRouteTableFqdns(List<String> routeTableFqdns) {
95                 this.routeTableFqdns = routeTableFqdns;
96         }
97         
98 }