public class DescribeHostsResult extends Object 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; 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()
public void setHosts(Collection<Host> hosts)
hosts
- Information about the Dedicated hosts.public DescribeHostsResult withHosts(Host... 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.
Returns a reference to this object so that method calls can be chained together.
hosts
- Information about the Dedicated hosts.public DescribeHostsResult withHosts(Collection<Host> hosts)
Returns a reference to this object so that method calls can be chained together.
hosts
- Information about the Dedicated hosts.public String getNextToken()
null
when there are no more results to return.null
when there are no more results to return.public void setNextToken(String nextToken)
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 DescribeHostsResult withNextToken(String nextToken)
null
when there are no more results to return.
Returns a reference to this object so that method calls can be chained together.
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.