root / main / java / net / elasticgrid / rackspace / cloudservers / SharedIPGroup.java @ af63e739
History | View | Annotate | Download (2.1 kB)
1 |
/**
|
---|---|
2 |
* Licensed to the Apache Software Foundation (ASF) under one
|
3 |
* or more contributor license agreements. See the NOTICE file
|
4 |
* distributed with this work for additional information
|
5 |
* regarding copyright ownership. The ASF licenses this file
|
6 |
* to you under the Apache License, Version 2.0 (the
|
7 |
* "License"); you may not use this file except in compliance
|
8 |
* with the License. You may obtain a copy of the License at
|
9 |
*
|
10 |
* http://www.apache.org/licenses/LICENSE-2.0
|
11 |
*
|
12 |
* Unless required by applicable law or agreed to in writing,
|
13 |
* software distributed under the License is distributed on an
|
14 |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
15 |
* KIND, either express or implied. See the License for the
|
16 |
* specific language governing permissions and limitations
|
17 |
* under the License.
|
18 |
*/
|
19 |
package net.elasticgrid.rackspace.cloudservers; |
20 |
|
21 |
import net.elasticgrid.rackspace.cloudservers.internal.SharedIpGroup; |
22 |
import java.io.Serializable; |
23 |
import java.util.List; |
24 |
|
25 |
/**
|
26 |
* Shared IP group information.
|
27 |
* @author Jerome Bernard
|
28 |
*/
|
29 |
public class SharedIPGroup implements Serializable { |
30 |
private final Integer id; |
31 |
private final String name; |
32 |
// private final Integer serverID;
|
33 |
private final List<Integer> serverIDs; |
34 |
// private int choiceSelect = -1;
|
35 |
// private final static int SERVER_CHOICE = 0;
|
36 |
// private final static int SERVERS_CHOICE = 1;
|
37 |
|
38 |
public SharedIPGroup(Integer id, String name, List<Integer> serverIDs) { |
39 |
this.id = id;
|
40 |
this.name = name;
|
41 |
this.serverIDs = serverIDs;
|
42 |
} |
43 |
|
44 |
public Integer getId() { |
45 |
return id;
|
46 |
} |
47 |
|
48 |
public String getName() { |
49 |
return name;
|
50 |
} |
51 |
|
52 |
public List<Integer> getServerIDs() { |
53 |
return serverIDs;
|
54 |
} |
55 |
|
56 |
/*
|
57 |
public Integer getServerID() {
|
58 |
return serverID;
|
59 |
}
|
60 |
|
61 |
public int getChoiceSelect() {
|
62 |
return choiceSelect;
|
63 |
}
|
64 |
|
65 |
public static int getServerChoice() {
|
66 |
return SERVER_CHOICE;
|
67 |
}
|
68 |
|
69 |
public static int getServersChoice() {
|
70 |
return SERVERS_CHOICE;
|
71 |
}
|
72 |
*/
|
73 |
} |