@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListHostsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListHostsResult() |
Modifier and Type | Method and Description |
---|---|
ListHostsResult |
clone() |
boolean |
equals(Object obj) |
List<Host> |
getHosts()
A list of hosts and the details for each host, such as status, endpoint, and provider type.
|
String |
getNextToken()
A token that can be used in the next
ListHosts call. |
int |
hashCode() |
void |
setHosts(Collection<Host> hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
|
void |
setNextToken(String nextToken)
A token that can be used in the next
ListHosts call. |
String |
toString()
Returns a string representation of this object.
|
ListHostsResult |
withHosts(Collection<Host> hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
|
ListHostsResult |
withHosts(Host... hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
|
ListHostsResult |
withNextToken(String nextToken)
A token that can be used in the next
ListHosts call. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Host> getHosts()
A list of hosts and the details for each host, such as status, endpoint, and provider type.
public void setHosts(Collection<Host> hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
hosts
- A list of hosts and the details for each host, such as status, endpoint, and provider type.public ListHostsResult withHosts(Host... hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
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
- A list of hosts and the details for each host, such as status, endpoint, and provider type.public ListHostsResult withHosts(Collection<Host> hosts)
A list of hosts and the details for each host, such as status, endpoint, and provider type.
hosts
- A list of hosts and the details for each host, such as status, endpoint, and provider type.public void setNextToken(String nextToken)
A token that can be used in the next ListHosts
call. To view all items in the list, continue to call
this operation with each subsequent token until no more nextToken
values are returned.
nextToken
- A token that can be used in the next ListHosts
call. To view all items in the list, continue
to call this operation with each subsequent token until no more nextToken
values are
returned.public String getNextToken()
A token that can be used in the next ListHosts
call. To view all items in the list, continue to call
this operation with each subsequent token until no more nextToken
values are returned.
ListHosts
call. To view all items in the list, continue
to call this operation with each subsequent token until no more nextToken
values are
returned.public ListHostsResult withNextToken(String nextToken)
A token that can be used in the next ListHosts
call. To view all items in the list, continue to call
this operation with each subsequent token until no more nextToken
values are returned.
nextToken
- A token that can be used in the next ListHosts
call. To view all items in the list, continue
to call this operation with each subsequent token until no more nextToken
values are
returned.public String toString()
toString
in class Object
Object.toString()
public ListHostsResult clone()