Merge "Reorder modifiers"
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / openecomp / mso / 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.openecomp.mso.adapters.nwrest;
22
23
24 import java.util.List;
25 import org.openecomp.mso.openstack.beans.RouteTarget;
26
27 import com.fasterxml.jackson.annotation.JsonRootName;
28
29 @JsonRootName("contrailNetwork")
30 public class ContrailNetwork {
31         private String shared   = "false";
32         private String external = "false";
33         private List<RouteTarget> routeTargets;
34         private List<String> policyFqdns;
35         private List<String> routeTableFqdns;
36         
37         public ContrailNetwork() {
38                 super();
39         }
40
41         public ContrailNetwork(String shared, String external, List<RouteTarget> routeTargets, List<String> policyFqdns, List<String> routeTableFqdns) {
42                 super();
43                 this.shared = shared;
44                 this.external = external;
45                 this.routeTargets = routeTargets;
46                 this.policyFqdns = policyFqdns;
47                 this.routeTableFqdns = routeTableFqdns;
48         }
49
50         public String getShared() {
51                 return shared;
52         }
53
54         public void setShared(String shared) {
55                 this.shared = shared;
56         }
57
58         public String getExternal() {
59                 return external;
60         }
61
62         public void setExternal(String external) {
63                 this.external = external;
64         }
65
66         public List<RouteTarget> getRouteTargets() {
67                 return routeTargets;
68         }
69
70         public void setRouteTargets(List<RouteTarget> routeTargets) {
71                 this.routeTargets = routeTargets;
72         }
73
74         public List<String> getPolicyFqdns() {
75                 return policyFqdns;
76         }
77
78         public void setPolicyFqdns(List<String> policyFqdns) {
79                 this.policyFqdns = policyFqdns;
80         }
81         
82         public List<String> getRouteTableFqdns() {
83                 return routeTableFqdns;
84         }
85
86         public void setRouteTableFqdns(List<String> routeTableFqdns) {
87                 this.routeTableFqdns = routeTableFqdns;
88         }
89         
90 }