Make sure invokeOperation is set once
[controller.git] / opendaylight / adsal / samples / northbound / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / northbound / Pools.java
1 /*
2  * Copyright IBM Corporation, 2013.  All rights reserved.
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 package org.opendaylight.controller.samples.loadbalancer.northbound;
9
10 import java.util.Set;
11
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;
16
17 import org.opendaylight.controller.samples.loadbalancer.entities.Pool;
18
19 @XmlRootElement
20 @XmlAccessorType(XmlAccessType.NONE)
21 /**
22  * JAX-RS resource for handling details of all the available pools
23  * in response to respective REST API requests.
24  */
25
26 public class Pools {
27
28     @XmlElement (name="pool")
29     Set<Pool> loadBalancerPools;
30
31     public Pools() {
32     }
33
34     public Pools (Set<Pool> loadBalancerPools) {
35         this.loadBalancerPools = loadBalancerPools;
36     }
37
38     /**
39      * @return the loadBalancerPools
40      */
41     public Set<Pool> getLoadBalancerPools() {
42         return loadBalancerPools;
43     }
44
45     /**
46      * @param loadBalancerPools the loadBalancerPools to set
47      */
48     public void setLoadBalancerPools(Set<Pool> loadBalancerPools) {
49         this.loadBalancerPools = loadBalancerPools;
50     }
51 }