public class DetachClassicLinkVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, 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.
NOOP
Constructor and Description |
---|
DetachClassicLinkVpcRequest() |
Modifier and Type | Method and Description |
---|---|
DetachClassicLinkVpcRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<DetachClassicLinkVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstanceId()
The ID of the instance to unlink from the VPC.
|
String |
getVpcId()
The ID of the VPC to which the instance is linked.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The ID of the instance to unlink from the VPC.
|
void |
setVpcId(String vpcId)
The ID of the VPC to which the instance is linked.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachClassicLinkVpcRequest |
withInstanceId(String instanceId)
The ID of the instance to unlink from the VPC.
|
DetachClassicLinkVpcRequest |
withVpcId(String vpcId)
The ID of the VPC to which the instance is linked.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance to unlink from the VPC.public DetachClassicLinkVpcRequest withInstanceId(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 String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC to which the instance is linked.public DetachClassicLinkVpcRequest withVpcId(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 String toString()
toString
in class Object
Object.toString()
public DetachClassicLinkVpcRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.