Class DescribeHostsResult

java.lang.Object
com.amazonaws.services.ec2.model.DescribeHostsResult
All Implemented Interfaces:
Serializable, Cloneable

public class DescribeHostsResult extends Object implements Serializable, Cloneable

Contains the output of DescribeHosts.

See Also:
  • Constructor Details

    • DescribeHostsResult

      public DescribeHostsResult()
  • Method Details

    • getHosts

      public List<Host> getHosts()

      Information about the Dedicated hosts.

      Returns:
      Information about the Dedicated hosts.
    • setHosts

      public void setHosts(Collection<Host> hosts)

      Information about the Dedicated hosts.

      Parameters:
      hosts - Information about the Dedicated hosts.
    • withHosts

      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.

      Parameters:
      hosts - Information about the Dedicated hosts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withHosts

      public DescribeHostsResult withHosts(Collection<Host> hosts)

      Information about the Dedicated hosts.

      Parameters:
      hosts - Information about the Dedicated hosts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setNextToken

      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.

      Parameters:
      nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.
    • getNextToken

      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.

      Returns:
      The token to use to retrieve the next page of results. This value is null when there are no more results to return.
    • withNextToken

      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.

      Parameters:
      nextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DescribeHostsResult clone()
      Overrides:
      clone in class Object