@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllocateHostsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of AllocateHosts.
Constructor and Description |
---|
AllocateHostsResult() |
Modifier and Type | Method and Description |
---|---|
AllocateHostsResult |
clone() |
boolean |
equals(Object obj) |
List<String> |
getHostIds()
The ID of the allocated Dedicated Host.
|
int |
hashCode() |
void |
setHostIds(Collection<String> hostIds)
The ID of the allocated Dedicated Host.
|
String |
toString()
Returns a string representation of this object.
|
AllocateHostsResult |
withHostIds(Collection<String> hostIds)
The ID of the allocated Dedicated Host.
|
AllocateHostsResult |
withHostIds(String... hostIds)
The ID of the allocated Dedicated Host.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<String> getHostIds()
The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
public void setHostIds(Collection<String> hostIds)
The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
hostIds
- The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.public AllocateHostsResult withHostIds(String... hostIds)
The ID of the allocated Dedicated Host. This is used 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 to launch an instance onto a specific host.public AllocateHostsResult withHostIds(Collection<String> hostIds)
The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
hostIds
- The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.public String toString()
toString
in class Object
Object.toString()
public AllocateHostsResult clone()