Class AllocateHostsResult

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

public class AllocateHostsResult extends Object implements Serializable, Cloneable

Contains the output of AllocateHosts.

See Also:
  • Constructor Details

    • AllocateHostsResult

      public AllocateHostsResult()
  • Method Details

    • getHostIds

      public List<String> getHostIds()

      The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.

      Returns:
      The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
    • setHostIds

      public void setHostIds(Collection<String> hostIds)

      The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.

      Parameters:
      hostIds - The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
    • withHostIds

      public AllocateHostsResult withHostIds(String... hostIds)

      The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.

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

      Parameters:
      hostIds - The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withHostIds

      public AllocateHostsResult withHostIds(Collection<String> hostIds)

      The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.

      Parameters:
      hostIds - The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
      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 AllocateHostsResult clone()
      Overrides:
      clone in class Object