@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyInstancePlacementRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyInstancePlacementRequest>
Contains the parameters for ModifyInstancePlacement.
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 new affinity setting for the instance.
|
Request<ModifyInstancePlacementRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getHostId()
The ID of the Dedicated Host that the instance will have affinity with.
|
String |
getInstanceId()
The ID of the instance that you are modifying.
|
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(String affinity)
The new affinity setting for the instance.
|
void |
setHostId(String hostId)
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.
|
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(String affinity)
The new affinity setting for the instance.
|
ModifyInstancePlacementRequest |
withHostId(String hostId)
The ID of the Dedicated Host that the instance will have affinity with.
|
ModifyInstancePlacementRequest |
withInstanceId(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(String tenancy)
The tenancy of the instance that you are modifying.
|
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 new affinity setting for the instance.
affinity
- The new affinity setting for the instance.Affinity
public String getAffinity()
The new affinity setting for the instance.
Affinity
public ModifyInstancePlacementRequest withAffinity(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(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 String getHostId()
The ID of the Dedicated Host that the instance will have affinity with.
public ModifyInstancePlacementRequest withHostId(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 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 of the instance that you are modifying.
tenancy
- The tenancy of the instance that you are modifying.HostTenancy
public String getTenancy()
The tenancy of the instance that you are modifying.
HostTenancy
public ModifyInstancePlacementRequest withTenancy(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 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.