@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerGroup extends Object implements Serializable, Cloneable, StructuredPojo
Logical grouping of servers.
Constructor and Description |
---|
ServerGroup() |
Modifier and Type | Method and Description |
---|---|
ServerGroup |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of a server group.
|
String |
getServerGroupId()
The ID of a server group.
|
List<Server> |
getServerList()
The servers that belong to a server group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of a server group.
|
void |
setServerGroupId(String serverGroupId)
The ID of a server group.
|
void |
setServerList(Collection<Server> serverList)
The servers that belong to a server group.
|
String |
toString()
Returns a string representation of this object.
|
ServerGroup |
withName(String name)
The name of a server group.
|
ServerGroup |
withServerGroupId(String serverGroupId)
The ID of a server group.
|
ServerGroup |
withServerList(Collection<Server> serverList)
The servers that belong to a server group.
|
ServerGroup |
withServerList(Server... serverList)
The servers that belong to a server group.
|
public void setServerGroupId(String serverGroupId)
The ID of a server group.
serverGroupId
- The ID of a server group.public String getServerGroupId()
The ID of a server group.
public ServerGroup withServerGroupId(String serverGroupId)
The ID of a server group.
serverGroupId
- The ID of a server group.public void setName(String name)
The name of a server group.
name
- The name of a server group.public String getName()
The name of a server group.
public ServerGroup withName(String name)
The name of a server group.
name
- The name of a server group.public List<Server> getServerList()
The servers that belong to a server group.
public void setServerList(Collection<Server> serverList)
The servers that belong to a server group.
serverList
- The servers that belong to a server group.public ServerGroup withServerList(Server... serverList)
The servers that belong to a server group.
NOTE: This method appends the values to the existing list (if any). Use
setServerList(java.util.Collection)
or withServerList(java.util.Collection)
if you want to
override the existing values.
serverList
- The servers that belong to a server group.public ServerGroup withServerList(Collection<Server> serverList)
The servers that belong to a server group.
serverList
- The servers that belong to a server group.public String toString()
toString
in class Object
Object.toString()
public ServerGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.