Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DeleteVpcRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteVpcRequest
All Implemented Interfaces:
Serializable

public class DeleteVpcRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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.

See Also:
AmazonEC2.deleteVpc(DeleteVpcRequest), Serialized Form

Constructor Summary
DeleteVpcRequest()
          Default constructor for a new DeleteVpcRequest object.
DeleteVpcRequest(String vpcId)
          Constructs a new DeleteVpcRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeleteVpcRequest

public DeleteVpcRequest()
Default constructor for a new DeleteVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


DeleteVpcRequest

public DeleteVpcRequest(String vpcId)
Constructs a new DeleteVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
vpcId - The ID of the VPC you want to delete.
Method Detail

getVpcId

public String getVpcId()
The ID of the VPC you want to delete.

Returns:
The ID of the VPC you want to delete.

setVpcId

public void setVpcId(String vpcId)
The ID of the VPC you want to delete.

Parameters:
vpcId - The ID of the VPC you want to delete.

withVpcId

public DeleteVpcRequest withVpcId(String vpcId)
The ID of the VPC you want to delete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the VPC you want to delete.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.