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.openecomp.mso.adapters.nwrest;
24 import java.util.List;
25 import org.openecomp.mso.openstack.beans.RouteTarget;
27 import com.fasterxml.jackson.annotation.JsonRootName;
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;
37 public ContrailNetwork() {
41 public ContrailNetwork(String shared, String external, List<RouteTarget> routeTargets, List<String> policyFqdns, List<String> routeTableFqdns) {
44 this.external = external;
45 this.routeTargets = routeTargets;
46 this.policyFqdns = policyFqdns;
47 this.routeTableFqdns = routeTableFqdns;
50 public String getShared() {
54 public void setShared(String shared) {
58 public String getExternal() {
62 public void setExternal(String external) {
63 this.external = external;
66 public List<RouteTarget> getRouteTargets() {
70 public void setRouteTargets(List<RouteTarget> routeTargets) {
71 this.routeTargets = routeTargets;
74 public List<String> getPolicyFqdns() {
78 public void setPolicyFqdns(List<String> policyFqdns) {
79 this.policyFqdns = policyFqdns;
82 public List<String> getRouteTableFqdns() {
83 return routeTableFqdns;
86 public void setRouteTableFqdns(List<String> routeTableFqdns) {
87 this.routeTableFqdns = routeTableFqdns;