@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; useful for testing and debugging.
|
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, setSdkResponseMetadatapublic List<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(Collection<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(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(Collection<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 String toString()
toString in class ObjectObject.toString()public AllocateHostsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.