public class ModifyInstancePlacementRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<ModifyInstancePlacementRequest>
Contains the parameters for ModifyInstancePlacement.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
affinity
The new affinity setting for the instance.
|
private java.lang.String |
hostId
The ID of the Dedicated host that the instance will have affinity with.
|
private java.lang.String |
instanceId
The ID of the instance that you are modifying.
|
private java.lang.String |
tenancy
The tenancy of the instance that you are modifying.
|
NOOP
Constructor and Description |
---|
ModifyInstancePlacementRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyInstancePlacementRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAffinity()
The new affinity setting for the instance.
|
Request<ModifyInstancePlacementRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getHostId()
The ID of the Dedicated host that the instance will have affinity with.
|
java.lang.String |
getInstanceId()
The ID of the instance that you are modifying.
|
java.lang.String |
getTenancy()
The tenancy of the instance that you are modifying.
|
int |
hashCode() |
void |
setAffinity(Affinity affinity)
The new affinity setting for the instance.
|
void |
setAffinity(java.lang.String affinity)
The new affinity setting for the instance.
|
void |
setHostId(java.lang.String hostId)
The ID of the Dedicated host that the instance will have affinity with.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance that you are modifying.
|
void |
setTenancy(HostTenancy tenancy)
The tenancy of the instance that you are modifying.
|
void |
setTenancy(java.lang.String tenancy)
The tenancy of the instance that you are modifying.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ModifyInstancePlacementRequest |
withAffinity(Affinity affinity)
The new affinity setting for the instance.
|
ModifyInstancePlacementRequest |
withAffinity(java.lang.String affinity)
The new affinity setting for the instance.
|
ModifyInstancePlacementRequest |
withHostId(java.lang.String hostId)
The ID of the Dedicated host that the instance will have affinity with.
|
ModifyInstancePlacementRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance that you are modifying.
|
ModifyInstancePlacementRequest |
withTenancy(HostTenancy tenancy)
The tenancy of the instance that you are modifying.
|
ModifyInstancePlacementRequest |
withTenancy(java.lang.String tenancy)
The tenancy of the instance that you are modifying.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String instanceId
The ID of the instance that you are modifying.
private java.lang.String tenancy
The tenancy of the instance that you are modifying.
private java.lang.String affinity
The new affinity setting for the instance.
private java.lang.String hostId
The ID of the Dedicated host that the instance will have affinity with.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance that you are modifying.
instanceId
- The ID of the instance that you are modifying.public java.lang.String getInstanceId()
The ID of the instance that you are modifying.
public ModifyInstancePlacementRequest withInstanceId(java.lang.String instanceId)
The ID of the instance that you are modifying.
instanceId
- The ID of the instance that you are modifying.public void setTenancy(java.lang.String tenancy)
The tenancy of the instance that you are modifying.
tenancy
- The tenancy of the instance that you are modifying.HostTenancy
public java.lang.String getTenancy()
The tenancy of the instance that you are modifying.
HostTenancy
public ModifyInstancePlacementRequest withTenancy(java.lang.String tenancy)
The tenancy of the instance that you are modifying.
tenancy
- The tenancy of the instance that you are modifying.HostTenancy
public void setTenancy(HostTenancy tenancy)
The tenancy of the instance that you are modifying.
tenancy
- The tenancy of the instance that you are modifying.HostTenancy
public ModifyInstancePlacementRequest withTenancy(HostTenancy tenancy)
The tenancy of the instance that you are modifying.
tenancy
- The tenancy of the instance that you are modifying.HostTenancy
public void setAffinity(java.lang.String affinity)
The new affinity setting for the instance.
affinity
- The new affinity setting for the instance.Affinity
public java.lang.String getAffinity()
The new affinity setting for the instance.
Affinity
public ModifyInstancePlacementRequest withAffinity(java.lang.String affinity)
The new affinity setting for the instance.
affinity
- The new affinity setting for the instance.Affinity
public void setAffinity(Affinity affinity)
The new affinity setting for the instance.
affinity
- The new affinity setting for the instance.Affinity
public ModifyInstancePlacementRequest withAffinity(Affinity affinity)
The new affinity setting for the instance.
affinity
- The new affinity setting for the instance.Affinity
public void setHostId(java.lang.String hostId)
The ID of the Dedicated host that the instance will have affinity with.
hostId
- The ID of the Dedicated host that the instance will have affinity
with.public java.lang.String getHostId()
The ID of the Dedicated host that the instance will have affinity with.
public ModifyInstancePlacementRequest withHostId(java.lang.String hostId)
The ID of the Dedicated host that the instance will have affinity with.
hostId
- The ID of the Dedicated host that the instance will have affinity
with.public Request<ModifyInstancePlacementRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyInstancePlacementRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ModifyInstancePlacementRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()