@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServerGroup extends Object implements Serializable, Cloneable, StructuredPojo
A logical grouping of servers.
| Constructor and Description |
|---|
ServerGroup() |
| Modifier and Type | Method and Description |
|---|---|
ServerGroup |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Name of a server group.
|
String |
getServerGroupId()
Identifier of a server group.
|
List<Server> |
getServerList()
List of servers belonging to a server group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
Name of a server group.
|
void |
setServerGroupId(String serverGroupId)
Identifier of a server group.
|
void |
setServerList(Collection<Server> serverList)
List of servers belonging to a server group.
|
String |
toString()
Returns a string representation of this object.
|
ServerGroup |
withName(String name)
Name of a server group.
|
ServerGroup |
withServerGroupId(String serverGroupId)
Identifier of a server group.
|
ServerGroup |
withServerList(Collection<Server> serverList)
List of servers belonging to a server group.
|
ServerGroup |
withServerList(Server... serverList)
List of servers belonging to a server group.
|
public void setServerGroupId(String serverGroupId)
Identifier of a server group.
serverGroupId - Identifier of a server group.public String getServerGroupId()
Identifier of a server group.
public ServerGroup withServerGroupId(String serverGroupId)
Identifier of a server group.
serverGroupId - Identifier of a server group.public void setName(String name)
Name of a server group.
name - Name of a server group.public String getName()
Name of a server group.
public ServerGroup withName(String name)
Name of a server group.
name - Name of a server group.public List<Server> getServerList()
List of servers belonging to a server group.
public void setServerList(Collection<Server> serverList)
List of servers belonging to a server group.
serverList - List of servers belonging to a server group.public ServerGroup withServerList(Server... serverList)
List of servers belonging 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 - List of servers belonging to a server group.public ServerGroup withServerList(Collection<Server> serverList)
List of servers belonging to a server group.
serverList - List of servers belonging to a server group.public String toString()
toString in class ObjectObject.toString()public ServerGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.