public class DeleteVpcRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteVpcRequest>
DeleteVpc operation
.
Deletes a VPC. You must detach or delete all gateways or other objects that are dependent on the VPC first. For example, you must terminate all running instances, delete all VPC security groups (except the default), delete all the route tables (except the default), etc.
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 you want to delete.
|
int |
hashCode() |
void |
setVpcId(String vpcId)
The ID of the VPC you want to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteVpcRequest |
withVpcId(String vpcId)
The ID of the VPC you want to delete.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeleteVpcRequest()
public DeleteVpcRequest(String vpcId)
vpcId
- The ID of the VPC you want to delete.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC you want to delete.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 you want to delete.public Request<DeleteVpcRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteVpcRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.