public class ReleaseHostsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ReleaseHostsRequest>
Contains the parameters for ReleaseHosts.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
hostIds
The IDs of the Dedicated hosts you want to release.
|
NOOP
Constructor and Description |
---|
ReleaseHostsRequest() |
Modifier and Type | Method and Description |
---|---|
ReleaseHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
Request<ReleaseHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<java.lang.String> hostIds
The IDs of the Dedicated hosts you want to release.
public java.util.List<java.lang.String> getHostIds()
The IDs of the Dedicated hosts you want to release.
public void setHostIds(java.util.Collection<java.lang.String> hostIds)
The IDs of the Dedicated hosts you want to release.
hostIds
- The IDs of the Dedicated hosts you want to release.public ReleaseHostsRequest withHostIds(java.lang.String... hostIds)
The IDs of the Dedicated hosts you want to release.
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 IDs of the Dedicated hosts you want to release.public ReleaseHostsRequest withHostIds(java.util.Collection<java.lang.String> hostIds)
The IDs of the Dedicated hosts you want to release.
hostIds
- The IDs of the Dedicated hosts you want to release.public Request<ReleaseHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReleaseHostsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReleaseHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()