public class ModifyHostsRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
ModifyHosts operation.
 
 Modify the auto-placement setting of a Dedicated host. When
 auto-placement is enabled, AWS will place instances that you launch
 with a tenancy of host , but without targeting a specific
 host ID, onto any available Dedicated host in your account which has
 auto-placement enabled. When auto-placement is disabled, you need to
 provide a host ID if you want the instance to launch onto a specific
 host. If no host ID is provided, the instance will be launched onto a
 suitable host which has auto-placement enabled.
 
| Constructor and Description | 
|---|
| ModifyHostsRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object obj) | 
| java.lang.String | getAutoPlacement()Specify whether to enable or disable auto-placement. | 
| 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. | 
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.util.List<java.lang.String> getHostIds()
public void setHostIds(java.util.Collection<java.lang.String> hostIds)
hostIds - The host IDs of the Dedicated hosts you want to modify.public ModifyHostsRequest withHostIds(java.lang.String... hostIds)
Returns a reference to this object so that method calls can be chained together.
hostIds - The host IDs of the Dedicated hosts you want to modify.public ModifyHostsRequest withHostIds(java.util.Collection<java.lang.String> hostIds)
Returns a reference to this object so that method calls can be chained together.
hostIds - The host IDs of the Dedicated hosts you want to modify.public java.lang.String getAutoPlacement()
 Constraints:
 Allowed Values: on, off
AutoPlacementpublic void setAutoPlacement(java.lang.String autoPlacement)
 Constraints:
 Allowed Values: on, off
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic ModifyHostsRequest withAutoPlacement(java.lang.String autoPlacement)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: on, off
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic void setAutoPlacement(AutoPlacement autoPlacement)
 Constraints:
 Allowed Values: on, off
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic ModifyHostsRequest withAutoPlacement(AutoPlacement autoPlacement)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: on, off
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object