Class ModifyHostsResult

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

public class ModifyHostsResult extends Object implements Serializable, Cloneable

Contains the output of ModifyHosts.

See Also:
  • Constructor Details

    • ModifyHostsResult

      public ModifyHostsResult()
  • Method Details

    • getSuccessful

      public List<String> getSuccessful()

      The IDs of the Dedicated hosts that were successfully modified.

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

      public void setSuccessful(Collection<String> successful)

      The IDs of the Dedicated hosts that were successfully modified.

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

      public ModifyHostsResult withSuccessful(String... successful)

      The IDs of the Dedicated hosts that were successfully modified.

      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 modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSuccessful

      public ModifyHostsResult withSuccessful(Collection<String> successful)

      The IDs of the Dedicated hosts that were successfully modified.

      Parameters:
      successful - The IDs of the Dedicated hosts that were successfully modified.
      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 modified. Check whether the setting you requested can be used.

      Returns:
      The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
    • setUnsuccessful

      public void setUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)

      The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.

      Parameters:
      unsuccessful - The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
    • withUnsuccessful

      public ModifyHostsResult withUnsuccessful(UnsuccessfulItem... unsuccessful)

      The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.

      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 modified. Check whether the setting you requested can be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUnsuccessful

      public ModifyHostsResult withUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)

      The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.

      Parameters:
      unsuccessful - The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
      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 ModifyHostsResult clone()
      Overrides:
      clone in class Object