Package com.amazonaws.services.ec2.model
Class AllocateHostsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.AllocateHostsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AllocateHostsResult extends Object implements Serializable, Cloneable
Contains the output of AllocateHosts.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AllocateHostsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String... hostIds)
The ID of the allocated Dedicated host.AllocateHostsResult
withHostIds(Collection<String> hostIds)
The ID of the allocated Dedicated host.
-
-
-
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)
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
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AllocateHostsResult clone()
-
-