public class ModifyHostsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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.
NOOP
Constructor and Description |
---|
ModifyHostsRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyHostsRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public 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)
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.
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
AutoPlacement
public void setAutoPlacement(String autoPlacement)
Constraints:
Allowed Values: on, off
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public 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.AutoPlacement
public void setAutoPlacement(AutoPlacement autoPlacement)
Constraints:
Allowed Values: on, off
autoPlacement
- Specify whether to enable or disable auto-placement.AutoPlacement
public 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.AutoPlacement
public String toString()
toString
in class Object
Object.toString()
public ModifyHostsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.