Statistics
| Branch: | Revision:

root / src / com / rackspace / cloud / loadbalancer / api / client / LoadBalancer.java @ aeff0a62

History | View | Annotate | Download (2.9 kB)

1
/**
2
 * 
3
 */
4
package com.rackspace.cloud.loadbalancer.api.client;
5

    
6
import java.util.ArrayList;
7

    
8

    
9
public class LoadBalancer extends Entity {
10

    
11
        private static final long serialVersionUID = 5994739895998309675L;
12
        private String id;
13
        private String name;
14
        private String protocol;
15
        private String port;
16
        private String algorithm;
17
        private String status;
18
        private String isConnectionLoggingEnabled;
19
        private String created;
20
        private String updated;
21
        private String sessionPersistence;
22
        private String clusterName;
23
        private ConnectionThrottle connectionThrottle;
24
        private ArrayList<VirtualIp> virtualIps;
25
        private ArrayList<Node> nodes;
26
        
27

    
28
        public String getId() {
29
                return id;
30
        }
31

    
32
        public void setId(String id) {
33
                this.id = id;
34
        }
35

    
36
        public String getName() {
37
                return name;
38
        }
39

    
40
        public void setName(String name) {
41
                this.name = name;
42
        }
43

    
44
        public String getProtocol() {
45
                return protocol;
46
        }
47

    
48
        public void setProtocol(String protocol) {
49
                this.protocol = protocol;
50
        }
51

    
52
        public String getPort() {
53
                return port;
54
        }
55

    
56
        public void setPort(String port) {
57
                this.port = port;
58
        }
59

    
60
        public String getAlgorithm() {
61
                return algorithm;
62
        }
63

    
64
        public void setAlgorithm(String algorithm) {
65
                this.algorithm = algorithm;
66
        }
67

    
68
        public String getStatus() {
69
                return status;
70
        }
71

    
72
        public void setStatus(String status) {
73
                this.status = status;
74
        }
75

    
76
        public String getIsConnectionLoggingEnabled() {
77
                return isConnectionLoggingEnabled;
78
        }
79

    
80
        public void setIsConnectionLoggingEnabled(String isConnectionLoggingEnabled) {
81
                this.isConnectionLoggingEnabled = isConnectionLoggingEnabled;
82
        }
83
        
84
        public String getCreated() {
85
                return created;
86
        }
87

    
88
        public void setCreated(String created) {
89
                this.created = created;
90
        }
91

    
92
        public String getUpdated() {
93
                return updated;
94
        }
95

    
96
        public void setUpdated(String updated) {
97
                this.updated = updated;
98
        }
99

    
100
        public String getSessionPersistence() {
101
                return sessionPersistence;
102
        }
103

    
104
        public void setSessionPersistence(String sessionPersistence) {
105
                this.sessionPersistence = sessionPersistence;
106
        }
107

    
108
        public String getClusterName() {
109
                return clusterName;
110
        }
111

    
112
        public void setClusterName(String clusterName) {
113
                this.clusterName = clusterName;
114
        }
115

    
116
        public ConnectionThrottle getConnectionThrottle() {
117
                return connectionThrottle;
118
        }
119

    
120
        public void setConnectionThrottle(ConnectionThrottle connectionThrottle) {
121
                this.connectionThrottle = connectionThrottle;
122
        }
123

    
124
        public ArrayList<VirtualIp> getVirtualIps() {
125
                return virtualIps;
126
        }
127

    
128
        public void setVirtualIps(ArrayList<VirtualIp> virtualIps) {
129
                this.virtualIps = virtualIps;
130
        }
131

    
132
        public ArrayList<Node> getNodes() {
133
                return nodes;
134
        }
135

    
136
        public void setNodes(ArrayList<Node> nodes) {
137
                this.nodes = nodes;
138
        }
139

    
140
        public static long getSerialversionuid() {
141
                return serialVersionUID;
142
        }
143
        
144
        public String toXML() {
145
                String xml = "";
146
                xml = "<loadBalancer xmlns=\"http://docs.rackspacecloud.com/loadbalancers/api/v1.0\" name=\""
147
                                + getName() + "\" id=\"" + getId() + "</loadBalancer>";
148
                return xml;
149
        }
150
}