Replaced all tabs with spaces in java and pom.xml
[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 import org.onap.so.openstack.beans.RouteTarget;
27 import com.fasterxml.jackson.annotation.JsonRootName;
28
29 @JsonRootName("contrailNetwork")
30 public class ContrailNetwork implements Serializable {
31
32
33     /**
34      * 
35      */
36     private static final long serialVersionUID = 6879356795950005963L;
37     private String shared = "false";
38     private String external = "false";
39     private List<RouteTarget> routeTargets;
40     private List<String> policyFqdns;
41     private List<String> routeTableFqdns;
42
43     public ContrailNetwork() {
44         super();
45     }
46
47     public ContrailNetwork(String shared, String external, List<RouteTarget> routeTargets, List<String> policyFqdns,
48             List<String> routeTableFqdns) {
49         super();
50         this.shared = shared;
51         this.external = external;
52         this.routeTargets = routeTargets;
53         this.policyFqdns = policyFqdns;
54         this.routeTableFqdns = routeTableFqdns;
55     }
56
57     public String getShared() {
58         return shared;
59     }
60
61     public void setShared(String shared) {
62         this.shared = shared;
63     }
64
65     public String getExternal() {
66         return external;
67     }
68
69     public void setExternal(String external) {
70         this.external = external;
71     }
72
73     public List<RouteTarget> getRouteTargets() {
74         return routeTargets;
75     }
76
77     public void setRouteTargets(List<RouteTarget> routeTargets) {
78         this.routeTargets = routeTargets;
79     }
80
81     public List<String> getPolicyFqdns() {
82         return policyFqdns;
83     }
84
85     public void setPolicyFqdns(List<String> policyFqdns) {
86         this.policyFqdns = policyFqdns;
87     }
88
89     public List<String> getRouteTableFqdns() {
90         return routeTableFqdns;
91     }
92
93     public void setRouteTableFqdns(List<String> routeTableFqdns) {
94         this.routeTableFqdns = routeTableFqdns;
95     }
96
97 }