Package com.amazonaws.services.ec2.model
Class AllocateHostsResult
java.lang.Object
com.amazonaws.services.ec2.model.AllocateHostsResult
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the output of AllocateHosts.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the allocated Dedicated host.int
hashCode()
void
setHostIds
(Collection<String> hostIds) The ID of the allocated Dedicated host.toString()
Returns a string representation of this object; useful for testing and debugging.withHostIds
(String... hostIds) The ID of the allocated Dedicated host.withHostIds
(Collection<String> hostIds) The ID of the allocated Dedicated host.
-
Constructor Details
-
AllocateHostsResult
public AllocateHostsResult()
-
-
Method Details
-
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
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
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)
orwithHostIds(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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-