public class DetachClassicLinkVpcRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DetachClassicLinkVpcRequest>
DetachClassicLinkVpc operation.
Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.
| Constructor and Description |
|---|
DetachClassicLinkVpcRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Request<DetachClassicLinkVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInstanceId()
The ID of the instance to unlink from the VPC.
|
java.lang.String |
getVpcId()
The ID of the VPC to which the instance is linked.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance to unlink from the VPC.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC to which the instance is linked.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachClassicLinkVpcRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance to unlink from the VPC.
|
DetachClassicLinkVpcRequest |
withVpcId(java.lang.String vpcId)
The ID of the VPC to which the instance is linked.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance to unlink from the VPC.public DetachClassicLinkVpcRequest withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - The ID of the instance to unlink from the VPC.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - The ID of the VPC to which the instance is linked.public DetachClassicLinkVpcRequest withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - The ID of the VPC to which the instance is linked.public Request<DetachClassicLinkVpcRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<DetachClassicLinkVpcRequest>public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.