public class ReleaseHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
ReleaseHosts operation.
When you no longer want to use a Dedicated host it can be released.
On-Demand billing is stopped and the host goes into
released state. The host ID of Dedicated hosts that have
been released can no longer be specified in another request, e.g.,
ModifyHosts. You must stop or terminate all instances on a host before
it can be released.
When Dedicated hosts are released, it make take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated hosts. Try waiting a few minutes, and then try again.
Released hosts will still appear in a DescribeHosts response.
NOOP| Constructor and Description |
|---|
ReleaseHostsRequest() |
| Modifier and Type | Method and Description |
|---|---|
ReleaseHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<String> |
getHostIds()
The IDs of the Dedicated hosts you want to release.
|
int |
hashCode() |
void |
setHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts you want to release.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReleaseHostsRequest |
withHostIds(Collection<String> hostIds)
The IDs of the Dedicated hosts you want to release.
|
ReleaseHostsRequest |
withHostIds(String... hostIds)
The IDs of the Dedicated hosts you want to release.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic List<String> getHostIds()
public void setHostIds(Collection<String> hostIds)
hostIds - The IDs of the Dedicated hosts you want to release.public ReleaseHostsRequest withHostIds(String... hostIds)
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.
Returns a reference to this object so that method calls can be chained together.
hostIds - The IDs of the Dedicated hosts you want to release.public ReleaseHostsRequest withHostIds(Collection<String> hostIds)
Returns a reference to this object so that method calls can be chained together.
hostIds - The IDs of the Dedicated hosts you want to release.public String toString()
toString in class ObjectObject.toString()public ReleaseHostsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.