public class ModifyHostsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ModifyHostsRequest>
Contains the parameters for ModifyHosts.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoPlacement
Specify whether to enable or disable auto-placement.
|
private SdkInternalList<java.lang.String> |
hostIds
The host IDs of the Dedicated hosts you want to modify.
|
NOOP
Constructor and Description |
---|
ModifyHostsRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyHostsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoPlacement()
Specify whether to enable or disable auto-placement.
|
Request<ModifyHostsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getHostIds()
The host IDs of the Dedicated hosts you want to modify.
|
int |
hashCode() |
void |
setAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
|
void |
setAutoPlacement(java.lang.String autoPlacement)
Specify whether to enable or disable auto-placement.
|
void |
setHostIds(java.util.Collection<java.lang.String> hostIds)
The host IDs of the Dedicated hosts you want to modify.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyHostsRequest |
withAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
|
ModifyHostsRequest |
withAutoPlacement(java.lang.String autoPlacement)
Specify whether to enable or disable auto-placement.
|
ModifyHostsRequest |
withHostIds(java.util.Collection<java.lang.String> hostIds)
The host IDs of the Dedicated hosts you want to modify.
|
ModifyHostsRequest |
withHostIds(java.lang.String... hostIds)
The host IDs of the Dedicated hosts you want to modify.
|
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 host IDs of the Dedicated hosts you want to modify.
private java.lang.String autoPlacement
Specify whether to enable or disable auto-placement.
public java.util.List<java.lang.String> getHostIds()
The host IDs of the Dedicated hosts you want to modify.
public void setHostIds(java.util.Collection<java.lang.String> hostIds)
The host IDs of the Dedicated hosts you want to modify.
hostIds
- The host IDs of the Dedicated hosts you want to modify.public ModifyHostsRequest withHostIds(java.lang.String... hostIds)
The host IDs of the Dedicated hosts you want to modify.
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 host IDs of the Dedicated hosts you want to modify.public ModifyHostsRequest withHostIds(java.util.Collection<java.lang.String> hostIds)
The host IDs of the Dedicated hosts you want to modify.
hostIds
- The host IDs of the Dedicated hosts you want to modify.public void setAutoPlacement(java.lang.String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public java.lang.String getAutoPlacement()
Specify whether to enable or disable auto-placement.
AutoPlacement
public ModifyHostsRequest withAutoPlacement(java.lang.String autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public ModifyHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Specify whether to enable or disable auto-placement.
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public Request<ModifyHostsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyHostsRequest>
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 ModifyHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()