2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.adapters.nwrest;
24 import java.io.Serializable;
25 import java.util.List;
27 import org.onap.so.openstack.beans.RouteTarget;
29 import com.fasterxml.jackson.annotation.JsonRootName;
31 @JsonRootName("contrailNetwork")
32 public class ContrailNetwork implements Serializable{
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;
45 public ContrailNetwork() {
49 public ContrailNetwork(String shared, String external, List<RouteTarget> routeTargets, List<String> policyFqdns, List<String> routeTableFqdns) {
52 this.external = external;
53 this.routeTargets = routeTargets;
54 this.policyFqdns = policyFqdns;
55 this.routeTableFqdns = routeTableFqdns;
58 public String getShared() {
62 public void setShared(String shared) {
66 public String getExternal() {
70 public void setExternal(String external) {
71 this.external = external;
74 public List<RouteTarget> getRouteTargets() {
78 public void setRouteTargets(List<RouteTarget> routeTargets) {
79 this.routeTargets = routeTargets;
82 public List<String> getPolicyFqdns() {
86 public void setPolicyFqdns(List<String> policyFqdns) {
87 this.policyFqdns = policyFqdns;
90 public List<String> getRouteTableFqdns() {
91 return routeTableFqdns;
94 public void setRouteTableFqdns(List<String> routeTableFqdns) {
95 this.routeTableFqdns = routeTableFqdns;