@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() |
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 |
getHostResourceGroupArn()
The ARN of the host resource group in which to place the instance.
|
String |
getInstanceId()
The ID of the instance that you are modifying.
|
Integer |
getPartitionNumber()
Reserved for future use.
|
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 |
setHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to place the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance that you are modifying.
|
void |
setPartitionNumber(Integer partitionNumber)
Reserved for future use.
|
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.
|
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 |
withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to place the instance.
|
ModifyInstancePlacementRequest |
withInstanceId(String instanceId)
The ID of the instance that you are modifying.
|
ModifyInstancePlacementRequest |
withPartitionNumber(Integer partitionNumber)
Reserved for future use.
|
ModifyInstancePlacementRequest |
withTenancy(HostTenancy tenancy)
The tenancy for the instance.
|
ModifyInstancePlacementRequest |
withTenancy(String tenancy)
The tenancy for the instance.
|
addHandlerContext, copyBaseTo, 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 and partition 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 and partition 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 and partition 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 and partition 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 and partition 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 and partition 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 void setPartitionNumber(Integer partitionNumber)
Reserved for future use.
partitionNumber
- Reserved for future use.public Integer getPartitionNumber()
Reserved for future use.
public ModifyInstancePlacementRequest withPartitionNumber(Integer partitionNumber)
Reserved for future use.
partitionNumber
- Reserved for future use.public void setHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to place the instance.
hostResourceGroupArn
- The ARN of the host resource group in which to place the instance.public String getHostResourceGroupArn()
The ARN of the host resource group in which to place the instance.
public ModifyInstancePlacementRequest withHostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to place the instance.
hostResourceGroupArn
- The ARN of the host resource group in which to place the instance.public Request<ModifyInstancePlacementRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyInstancePlacementRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyInstancePlacementRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2020. All rights reserved.