root / src / com / rackspace / cloud / loadbalancer / api / client / Protocol.java @ 6ecf99bb
History | View | Annotate | Download (924 Bytes)
1 |
package com.rackspace.cloud.loadbalancer.api.client; |
---|---|
2 |
|
3 |
import java.util.ArrayList; |
4 |
|
5 |
public class Protocol extends Entity{ |
6 |
|
7 |
/**
|
8 |
*
|
9 |
*/
|
10 |
private static final long serialVersionUID = 9174031376597839482L; |
11 |
private static ArrayList<Protocol> protocols; |
12 |
private String name; |
13 |
private String port; |
14 |
|
15 |
/**
|
16 |
* @param name the name to set
|
17 |
*/
|
18 |
public void setName(String name) { |
19 |
this.name = name;
|
20 |
} |
21 |
/**
|
22 |
* @return the name
|
23 |
*/
|
24 |
public String getName() { |
25 |
return name;
|
26 |
} |
27 |
|
28 |
/**
|
29 |
* @param port the port to set
|
30 |
*/
|
31 |
public void setPort(String port) { |
32 |
this.port = port;
|
33 |
} |
34 |
/**
|
35 |
* @return the port
|
36 |
*/
|
37 |
public String getPort() { |
38 |
return port;
|
39 |
} |
40 |
|
41 |
/**
|
42 |
* @return the protocols
|
43 |
*/
|
44 |
public static ArrayList<Protocol> getProtocols() { |
45 |
return protocols;
|
46 |
} |
47 |
/**
|
48 |
* @param protocols the protocols to set
|
49 |
*/
|
50 |
public static void setProtocols(ArrayList<Protocol> protocols) { |
51 |
Protocol.protocols = protocols; |
52 |
} |
53 |
} |