Class AllocateHostsResult

    • Constructor Detail

      • AllocateHostsResult

        public AllocateHostsResult()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object