public class ReleaseHostsRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
ReleaseHostsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getHostIds()
The IDs of the Dedicated hosts you want to release.
|
int |
hashCode() |
void |
setHostIds(java.util.Collection<java.lang.String> hostIds)
The IDs of the Dedicated hosts you want to release.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReleaseHostsRequest |
withHostIds(java.util.Collection<java.lang.String> hostIds)
The IDs of the Dedicated hosts you want to release.
|
ReleaseHostsRequest |
withHostIds(java.lang.String... hostIds)
The IDs of the Dedicated hosts you want to release.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getHostIds()
public void setHostIds(java.util.Collection<java.lang.String> hostIds)
hostIds
- The IDs of the Dedicated hosts you want to release.public ReleaseHostsRequest withHostIds(java.lang.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 ReleaseHostsRequest withHostIds(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.