@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyInstancePlacementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstancePlacementRequest>
NOOP
Constructor and Description |
---|
ModifyInstancePlacementRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyInstancePlacementRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAffinity()
The affinity setting for the instance.
|
Request<ModifyInstancePlacementRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getGroupName()
The name of the placement group in which to place the instance.
|
String |
getHostId()
The ID of the Dedicated Host with which to associate the instance.
|
String |
getInstanceId()
The ID of the instance that you are modifying.
|
String |
getTenancy()
The tenancy for the instance.
|
int |
hashCode() |
void |
setAffinity(Affinity affinity)
The affinity setting for the instance.
|
void |
setAffinity(String affinity)
The affinity setting for the instance.
|
void |
setGroupName(String groupName)
The name of the placement group in which to place the instance.
|
void |
setHostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance that you are modifying.
|
void |
setTenancy(HostTenancy tenancy)
The tenancy for the instance.
|
void |
setTenancy(String tenancy)
The tenancy for the instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ModifyInstancePlacementRequest |
withAffinity(Affinity affinity)
The affinity setting for the instance.
|
ModifyInstancePlacementRequest |
withAffinity(String affinity)
The affinity setting for the instance.
|
ModifyInstancePlacementRequest |
withGroupName(String groupName)
The name of the placement group in which to place the instance.
|
ModifyInstancePlacementRequest |
withHostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
|
ModifyInstancePlacementRequest |
withInstanceId(String instanceId)
The ID of the instance that you are modifying.
|
ModifyInstancePlacementRequest |
withTenancy(HostTenancy tenancy)
The tenancy for the instance.
|
ModifyInstancePlacementRequest |
withTenancy(String tenancy)
The tenancy for the instance.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAffinity(String affinity)
The affinity setting for the instance.
affinity
- The affinity setting for the instance.Affinity
public String getAffinity()
The affinity setting for the instance.
Affinity
public ModifyInstancePlacementRequest withAffinity(String affinity)
The affinity setting for the instance.
affinity
- The affinity setting for the instance.Affinity
public void setAffinity(Affinity affinity)
The affinity setting for the instance.
affinity
- The affinity setting for the instance.Affinity
public ModifyInstancePlacementRequest withAffinity(Affinity affinity)
The affinity setting for the instance.
affinity
- The affinity setting for the instance.Affinity
public void setGroupName(String groupName)
The name of the placement group in which to place the instance. For spread placement groups, the instance must
have a tenancy of default
. For cluster placement groups, the instance must have a tenancy of
default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
groupName
- The name of the placement group in which to place the instance. For spread placement groups, the instance
must have a tenancy of default
. For cluster placement groups, the instance must have a
tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
public String getGroupName()
The name of the placement group in which to place the instance. For spread placement groups, the instance must
have a tenancy of default
. For cluster placement groups, the instance must have a tenancy of
default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
default
. For cluster placement groups, the instance must have a
tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
public ModifyInstancePlacementRequest withGroupName(String groupName)
The name of the placement group in which to place the instance. For spread placement groups, the instance must
have a tenancy of default
. For cluster placement groups, the instance must have a tenancy of
default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
groupName
- The name of the placement group in which to place the instance. For spread placement groups, the instance
must have a tenancy of default
. For cluster placement groups, the instance must have a
tenancy of default
or dedicated
.
To remove an instance from a placement group, specify an empty string ("").
public void setHostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
hostId
- The ID of the Dedicated Host with which to associate the instance.public String getHostId()
The ID of the Dedicated Host with which to associate the instance.
public ModifyInstancePlacementRequest withHostId(String hostId)
The ID of the Dedicated Host with which to associate the instance.
hostId
- The ID of the Dedicated Host with which to associate the instance.public void setInstanceId(String instanceId)
The ID of the instance that you are modifying.
instanceId
- The ID of the instance that you are modifying.public String getInstanceId()
The ID of the instance that you are modifying.
public ModifyInstancePlacementRequest withInstanceId(String instanceId)
The ID of the instance that you are modifying.
instanceId
- The ID of the instance that you are modifying.public void setTenancy(String tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
public String getTenancy()
The tenancy for the instance.
HostTenancy
public ModifyInstancePlacementRequest withTenancy(String tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
public void setTenancy(HostTenancy tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
public ModifyInstancePlacementRequest withTenancy(HostTenancy tenancy)
The tenancy for the instance.
tenancy
- The tenancy for the instance.HostTenancy
public Request<ModifyInstancePlacementRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyInstancePlacementRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyInstancePlacementRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.