public class AllocateHostsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of AllocateHosts.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
hostIds
The ID of the allocated Dedicated host.
|
Constructor and Description |
---|
AllocateHostsResult() |
Modifier and Type | Method and Description |
---|---|
AllocateHostsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getHostIds()
The ID of the allocated Dedicated host.
|
int |
hashCode() |
void |
setHostIds(java.util.Collection<java.lang.String> hostIds)
The ID of the allocated Dedicated host.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AllocateHostsResult |
withHostIds(java.util.Collection<java.lang.String> hostIds)
The ID of the allocated Dedicated host.
|
AllocateHostsResult |
withHostIds(java.lang.String... hostIds)
The ID of the allocated Dedicated host.
|
private SdkInternalList<java.lang.String> hostIds
The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
public java.util.List<java.lang.String> getHostIds()
The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
public void setHostIds(java.util.Collection<java.lang.String> hostIds)
The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
hostIds
- The ID of the allocated Dedicated host. This is used when you want
to launch an instance onto a specific host.public AllocateHostsResult withHostIds(java.lang.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.
hostIds
- The ID of the allocated Dedicated host. This is used when you want
to launch an instance onto a specific host.public AllocateHostsResult withHostIds(java.util.Collection<java.lang.String> hostIds)
The ID of the allocated Dedicated host. This is used when you want to launch an instance onto a specific host.
hostIds
- The ID of the allocated Dedicated host. This is used when you want
to launch an instance onto a specific host.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AllocateHostsResult clone()
clone
in class java.lang.Object