@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListServersResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ListServersResult() |
| Modifier and Type | Method and Description |
|---|---|
ListServersResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
When you can get additional results from the
ListServers operation, a NextToken
parameter is returned in the output. |
List<ListedServer> |
getServers()
An array of servers that were listed.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
When you can get additional results from the
ListServers operation, a NextToken
parameter is returned in the output. |
void |
setServers(Collection<ListedServer> servers)
An array of servers that were listed.
|
String |
toString()
Returns a string representation of this object.
|
ListServersResult |
withNextToken(String nextToken)
When you can get additional results from the
ListServers operation, a NextToken
parameter is returned in the output. |
ListServersResult |
withServers(Collection<ListedServer> servers)
An array of servers that were listed.
|
ListServersResult |
withServers(ListedServer... servers)
An array of servers that were listed.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setNextToken(String nextToken)
When you can get additional results from the ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken parameter
to continue listing additional servers.
nextToken - When you can get additional results from the ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken
parameter to continue listing additional servers.public String getNextToken()
When you can get additional results from the ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken parameter
to continue listing additional servers.
ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken
parameter to continue listing additional servers.public ListServersResult withNextToken(String nextToken)
When you can get additional results from the ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken parameter
to continue listing additional servers.
nextToken - When you can get additional results from the ListServers operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken
parameter to continue listing additional servers.public List<ListedServer> getServers()
An array of servers that were listed.
public void setServers(Collection<ListedServer> servers)
An array of servers that were listed.
servers - An array of servers that were listed.public ListServersResult withServers(ListedServer... servers)
An array of servers that were listed.
NOTE: This method appends the values to the existing list (if any). Use
setServers(java.util.Collection) or withServers(java.util.Collection) if you want to override
the existing values.
servers - An array of servers that were listed.public ListServersResult withServers(Collection<ListedServer> servers)
An array of servers that were listed.
servers - An array of servers that were listed.public String toString()
toString in class ObjectObject.toString()public ListServersResult clone()