@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeHostsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
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.
|
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.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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()