Merge "Introducing Protocol Buffers Encoding Required for Distributed Datastore Messa...
[controller.git] / opendaylight / northbound / networkconfiguration / neutron / src / main / java / org / opendaylight / controller / networkconfig / neutron / northbound / PaginatedNeutronNetworkRequest.java
1 /*
2  * Copyright (C) 2014 Hewlett-Packard Development Company L.P
3  *
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
7  *
8  * Authors : Dave Tucker
9  */
10
11 package org.opendaylight.controller.networkconfig.neutron.northbound;
12
13 import org.opendaylight.controller.networkconfig.neutron.NeutronNetwork;
14
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlRootElement;
19 import java.util.List;
20
21 @XmlRootElement
22 @XmlAccessorType(XmlAccessType.NONE)
23
24 public class PaginatedNeutronNetworkRequest {
25
26     @XmlElement (name="networks")
27     List<NeutronNetwork> networks;
28
29     @XmlElement (name="network_links")
30     List<NeutronPageLink> networkLinks;
31
32     public PaginatedNeutronNetworkRequest() {
33     }
34
35     public PaginatedNeutronNetworkRequest(List<NeutronNetwork> networks, List<NeutronPageLink> networkLinks) {
36         this.networks = networks;
37         this.networkLinks = networkLinks;
38     }
39
40     public List<NeutronNetwork> getNetworks() {
41         return networks;
42     }
43
44     public void setNetworks(List<NeutronNetwork> networks) {
45         this.networks = networks;
46     }
47
48     public List<NeutronPageLink> getNetworkLinks() {
49         return networkLinks;
50     }
51
52     public void setNetworkLinks(List<NeutronPageLink> networkLinks) {
53         this.networkLinks = networkLinks;
54     }
55 }