Class ModifyInstancePlacementRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ModifyInstancePlacementRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<ModifyInstancePlacementRequest>,Serializable,Cloneable
public class ModifyInstancePlacementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstancePlacementRequest>
Contains the parameters for ModifyInstancePlacement.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ModifyInstancePlacementRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyInstancePlacementRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAffinity()The new affinity setting for the instance.Request<ModifyInstancePlacementRequest>getDryRunRequest()This method is intended for internal use only.StringgetHostId()The ID of the Dedicated host that the instance will have affinity with.StringgetInstanceId()The ID of the instance that you are modifying.StringgetTenancy()The tenancy of the instance that you are modifying.inthashCode()voidsetAffinity(Affinity affinity)The new affinity setting for the instance.voidsetAffinity(String affinity)The new affinity setting for the instance.voidsetHostId(String hostId)The ID of the Dedicated host that the instance will have affinity with.voidsetInstanceId(String instanceId)The ID of the instance that you are modifying.voidsetTenancy(HostTenancy tenancy)The tenancy of the instance that you are modifying.voidsetTenancy(String tenancy)The tenancy of the instance that you are modifying.StringtoString()Returns a string representation of this object; useful for testing and debugging.ModifyInstancePlacementRequestwithAffinity(Affinity affinity)The new affinity setting for the instance.ModifyInstancePlacementRequestwithAffinity(String affinity)The new affinity setting for the instance.ModifyInstancePlacementRequestwithHostId(String hostId)The ID of the Dedicated host that the instance will have affinity with.ModifyInstancePlacementRequestwithInstanceId(String instanceId)The ID of the instance that you are modifying.ModifyInstancePlacementRequestwithTenancy(HostTenancy tenancy)The tenancy of the instance that you are modifying.ModifyInstancePlacementRequestwithTenancy(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
-
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance that you are modifying.
- Parameters:
instanceId- The ID of the instance that you are modifying.
-
getInstanceId
public String getInstanceId()
The ID of the instance that you are modifying.
- Returns:
- The ID of the instance that you are modifying.
-
withInstanceId
public ModifyInstancePlacementRequest withInstanceId(String instanceId)
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
public void setTenancy(String tenancy)
The tenancy of the instance that you are modifying.
- Parameters:
tenancy- The tenancy of the instance that you are modifying.- See Also:
HostTenancy
-
getTenancy
public String getTenancy()
The tenancy of the instance that you are modifying.
- Returns:
- The tenancy of the instance that you are modifying.
- See Also:
HostTenancy
-
withTenancy
public ModifyInstancePlacementRequest withTenancy(String tenancy)
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:
HostTenancy
-
setTenancy
public void setTenancy(HostTenancy tenancy)
The tenancy of the instance that you are modifying.
- Parameters:
tenancy- The tenancy of the instance that you are modifying.- See Also:
HostTenancy
-
withTenancy
public ModifyInstancePlacementRequest withTenancy(HostTenancy tenancy)
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:
HostTenancy
-
setAffinity
public void setAffinity(String affinity)
The new affinity setting for the instance.
- Parameters:
affinity- The new affinity setting for the instance.- See Also:
Affinity
-
getAffinity
public String getAffinity()
The new affinity setting for the instance.
- Returns:
- The new affinity setting for the instance.
- See Also:
Affinity
-
withAffinity
public ModifyInstancePlacementRequest withAffinity(String affinity)
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:
Affinity
-
setAffinity
public void setAffinity(Affinity affinity)
The new affinity setting for the instance.
- Parameters:
affinity- The new affinity setting for the instance.- See Also:
Affinity
-
withAffinity
public ModifyInstancePlacementRequest withAffinity(Affinity affinity)
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:
Affinity
-
setHostId
public void setHostId(String hostId)
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
public String 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
public ModifyInstancePlacementRequest withHostId(String hostId)
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
public Request<ModifyInstancePlacementRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<ModifyInstancePlacementRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyInstancePlacementRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-