public class ModifyHostsRequest extends AmazonWebServiceRequest implements 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(Object obj) | 
| String | getAutoPlacement()Specify whether to enable or disable auto-placement. | 
| List<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(String autoPlacement)Specify whether to enable or disable auto-placement. | 
| void | setHostIds(Collection<String> hostIds)The host IDs of the Dedicated hosts you want to modify. | 
| 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(String autoPlacement)Specify whether to enable or disable auto-placement. | 
| ModifyHostsRequest | withHostIds(Collection<String> hostIds)The host IDs of the Dedicated hosts you want to modify. | 
| ModifyHostsRequest | withHostIds(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 List<String> getHostIds()
public void setHostIds(Collection<String> hostIds)
hostIds - The host IDs of the Dedicated hosts you want to modify.public ModifyHostsRequest withHostIds(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(Collection<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 String getAutoPlacement()
 Constraints:
 Allowed Values: on, off
AutoPlacementpublic void setAutoPlacement(String autoPlacement)
 Constraints:
 Allowed Values: on, off
autoPlacement - Specify whether to enable or disable auto-placement.AutoPlacementpublic ModifyHostsRequest withAutoPlacement(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 String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.