public class DeleteVpcRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteVpcRequest>
DeleteVpc operation
.
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.
NOOP
Constructor and Description |
---|
DeleteVpcRequest()
Default constructor for a new DeleteVpcRequest object.
|
DeleteVpcRequest(String vpcId)
Constructs a new DeleteVpcRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DeleteVpcRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteVpcRequest |
withVpcId(String vpcId)
The ID of the VPC.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteVpcRequest()
public DeleteVpcRequest(String vpcId)
vpcId
- The ID of the VPC.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.public DeleteVpcRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public Request<DeleteVpcRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteVpcRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.