Class ModifyInstancePlacementRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ModifyInstancePlacementRequest>
,Serializable
,Cloneable
Contains the parameters for ModifyInstancePlacement.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The new affinity setting for the instance.This method is intended for internal use only.The ID of the Dedicated host that the instance will have affinity with.The ID of the instance that you are modifying.The tenancy of the instance that you are modifying.int
hashCode()
void
setAffinity
(Affinity affinity) The new affinity setting for the instance.void
setAffinity
(String affinity) The new affinity setting for the instance.void
The ID of the Dedicated host that the instance will have affinity with.void
setInstanceId
(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
(String tenancy) The tenancy of the instance that you are modifying.toString()
Returns a string representation of this object; useful for testing and debugging.withAffinity
(Affinity affinity) The new affinity setting for the instance.withAffinity
(String affinity) The new affinity setting for the instance.withHostId
(String hostId) The ID of the Dedicated host that the instance will have affinity with.withInstanceId
(String instanceId) The ID of the instance that you are modifying.withTenancy
(HostTenancy tenancy) The tenancy of the instance that you are modifying.withTenancy
(String tenancy) The tenancy of the instance that you are modifying.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
ModifyInstancePlacementRequest
public ModifyInstancePlacementRequest()
-
-
Method Details
-
setInstanceId
The ID of the instance that you are modifying.
- Parameters:
instanceId
- The ID of the instance that you are modifying.
-
getInstanceId
The ID of the instance that you are modifying.
- Returns:
- The ID of the instance that you are modifying.
-
withInstanceId
The ID of the instance that you are modifying.
- Parameters:
instanceId
- The ID of the instance that you are modifying.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTenancy
The tenancy of the instance that you are modifying.
- Parameters:
tenancy
- The tenancy of the instance that you are modifying.- See Also:
-
getTenancy
The tenancy of the instance that you are modifying.
- Returns:
- The tenancy of the instance that you are modifying.
- See Also:
-
withTenancy
The tenancy of the instance that you are modifying.
- Parameters:
tenancy
- The tenancy of the instance that you are modifying.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setTenancy
The tenancy of the instance that you are modifying.
- Parameters:
tenancy
- The tenancy of the instance that you are modifying.- See Also:
-
withTenancy
The tenancy of the instance that you are modifying.
- Parameters:
tenancy
- The tenancy of the instance that you are modifying.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAffinity
The new affinity setting for the instance.
- Parameters:
affinity
- The new affinity setting for the instance.- See Also:
-
getAffinity
The new affinity setting for the instance.
- Returns:
- The new affinity setting for the instance.
- See Also:
-
withAffinity
The new affinity setting for the instance.
- Parameters:
affinity
- The new affinity setting for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setAffinity
The new affinity setting for the instance.
- Parameters:
affinity
- The new affinity setting for the instance.- See Also:
-
withAffinity
The new affinity setting for the instance.
- Parameters:
affinity
- The new affinity setting for the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setHostId
The ID of the Dedicated host that the instance will have affinity with.
- Parameters:
hostId
- The ID of the Dedicated host that the instance will have affinity with.
-
getHostId
The ID of the Dedicated host that the instance will have affinity with.
- Returns:
- The ID of the Dedicated host that the instance will have affinity with.
-
withHostId
The ID of the Dedicated host that the instance will have affinity with.
- Parameters:
hostId
- The ID of the Dedicated host that the instance will have affinity with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ModifyInstancePlacementRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-