Class ReleaseHostsResult

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

public class ReleaseHostsResult extends Object implements Serializable, Cloneable

Contains the output of ReleaseHosts.

See Also:
  • Constructor Details

    • ReleaseHostsResult

      public ReleaseHostsResult()
  • Method Details

    • getSuccessful

      public List<String> getSuccessful()

      The IDs of the Dedicated hosts that were successfully released.

      Returns:
      The IDs of the Dedicated hosts that were successfully released.
    • setSuccessful

      public void setSuccessful(Collection<String> successful)

      The IDs of the Dedicated hosts that were successfully released.

      Parameters:
      successful - The IDs of the Dedicated hosts that were successfully released.
    • withSuccessful

      public ReleaseHostsResult withSuccessful(String... successful)

      The IDs of the Dedicated hosts that were successfully released.

      NOTE: This method appends the values to the existing list (if any). Use setSuccessful(java.util.Collection) or withSuccessful(java.util.Collection) if you want to override the existing values.

      Parameters:
      successful - The IDs of the Dedicated hosts that were successfully released.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSuccessful

      public ReleaseHostsResult withSuccessful(Collection<String> successful)

      The IDs of the Dedicated hosts that were successfully released.

      Parameters:
      successful - The IDs of the Dedicated hosts that were successfully released.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getUnsuccessful

      public List<UnsuccessfulItem> getUnsuccessful()

      The IDs of the Dedicated hosts that could not be released, including an error message.

      Returns:
      The IDs of the Dedicated hosts that could not be released, including an error message.
    • setUnsuccessful

      public void setUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)

      The IDs of the Dedicated hosts that could not be released, including an error message.

      Parameters:
      unsuccessful - The IDs of the Dedicated hosts that could not be released, including an error message.
    • withUnsuccessful

      public ReleaseHostsResult withUnsuccessful(UnsuccessfulItem... unsuccessful)

      The IDs of the Dedicated hosts that could not be released, including an error message.

      NOTE: This method appends the values to the existing list (if any). Use setUnsuccessful(java.util.Collection) or withUnsuccessful(java.util.Collection) if you want to override the existing values.

      Parameters:
      unsuccessful - The IDs of the Dedicated hosts that could not be released, including an error message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUnsuccessful

      public ReleaseHostsResult withUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)

      The IDs of the Dedicated hosts that could not be released, including an error message.

      Parameters:
      unsuccessful - The IDs of the Dedicated hosts that could not be released, including an error message.
      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 ReleaseHostsResult clone()
      Overrides:
      clone in class Object