2 * Copyright (c) 2020 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.neutron.spi;
11 import java.io.Serializable;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
17 @XmlRootElement(name = "bgpvpn_router_association")
18 @XmlAccessorType(XmlAccessType.NONE)
19 public final class NeutronBgpvpnRouterAssociation extends NeutronAdminAttributes<NeutronBgpvpnRouterAssociation>
20 implements Serializable {
22 private static final long serialVersionUID = 1L;
24 @XmlElement(name = "bgpvpn_id")
27 @XmlElement(name = "router_id")
31 public void initDefaults() {
34 public String getBgpvpnId() {
38 public void setBgpvpnId(String bgpvpnId) {
39 this.bgpvpnId = bgpvpnId;
42 public String getRouterId() {
46 public void setRouterId(String routerId) {
47 this.routerId = routerId;
51 protected boolean extractField(String field, NeutronBgpvpnRouterAssociation ans) {
54 ans.setBgpvpnId(this.getBgpvpnId());
57 ans.setRouterId(this.getRouterId());
60 return super.extractField(field, ans);
66 public String toString() {
67 return "NeutronBgpvpnRouterAssociation [bgpvpnRouterAssociationUUID=" + uuid + ", bgpvpnId=" + bgpvpnId
68 + ", routerId=" + routerId + "]";