public class DescribeHostsResult extends Object implements Serializable, Cloneable
Contains the output of DescribeHosts.
Constructor and Description |
---|
DescribeHostsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeHostsResult |
clone() |
boolean |
equals(Object obj) |
List<Host> |
getHosts()
Information about the Dedicated hosts.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setHosts(Collection<Host> hosts)
Information about the Dedicated hosts.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeHostsResult |
withHosts(Collection<Host> hosts)
Information about the Dedicated hosts.
|
DescribeHostsResult |
withHosts(Host... hosts)
Information about the Dedicated hosts.
|
DescribeHostsResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
public List<Host> getHosts()
Information about the Dedicated hosts.
public void setHosts(Collection<Host> hosts)
Information about the Dedicated hosts.
hosts
- Information about the Dedicated hosts.public DescribeHostsResult withHosts(Host... hosts)
Information about the Dedicated hosts.
NOTE: This method appends the values to the existing list (if
any). Use setHosts(java.util.Collection)
or
withHosts(java.util.Collection)
if you want to override the
existing values.
hosts
- Information about the Dedicated hosts.public DescribeHostsResult withHosts(Collection<Host> hosts)
Information about the Dedicated hosts.
hosts
- Information about the Dedicated hosts.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
nextToken
- The token to use to retrieve the next page of results. This value
is null
when there are no more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
null
when there are no more results to return.public DescribeHostsResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
nextToken
- The token to use to retrieve the next page of results. This value
is null
when there are no more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeHostsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.