Simple Load Balancer Application - Recommitting the source codewith the whole source...
[controller.git] / opendaylight / samples / northbound / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / northbound / VIPs.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.VIP;
18
19 /**
20  * JAX-RS resource for handling details of all the available VIPs
21  * in response to respective REST API requests.
22  */
23
24 @XmlRootElement
25 @XmlAccessorType(XmlAccessType.NONE)
26
27 public class VIPs {
28     
29     @XmlElement (name="vip")
30     Set<VIP> loadBalancerVIPs;
31     
32     public VIPs() {}
33     
34     
35     public VIPs (Set<VIP> loadBalancerVIPs) {
36         this.loadBalancerVIPs = loadBalancerVIPs;
37     }
38     
39     /**
40      * @return the loadBalancerVIPs
41      */
42     public Set<VIP> getLoadBalancerVIPs() {
43         return loadBalancerVIPs;
44     }
45     
46     /**
47      * @param loadBalancerVIPs the loadBalancerVIPs to set
48      */
49     
50     public void setLoadBalancerVIPs(Set<VIP> loadBalancerVIPs) {
51         this.loadBalancerVIPs = loadBalancerVIPs;
52     }
53 }