com.amazonaws.services.ec2.model
Class DeleteVpcRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DeleteVpcRequest

public class DeleteVpcRequest
extends AmazonWebServiceRequest

Container for the parameters to the DeleteVpc operation.

Deletes a VPC. You must terminate all running instances and delete all subnets before deleting the VPC, otherwise Amazon VPC returns an error.

See Also:
AmazonEC2.deleteVpc(DeleteVpcRequest)

Constructor Summary
DeleteVpcRequest()
          Default constructor for a new DeleteVpcRequest object.
DeleteVpcRequest(String vpcId)
          Constructs a new DeleteVpcRequest object.
 
Method Summary
 String getVpcId()
           
 void setVpcId(String vpcId)
           
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteVpcRequest withVpcId(String vpcId)
           Returns a reference to this object so that method calls can be chained together.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, 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 -
Method Detail

getVpcId

public String getVpcId()
Returns:

setVpcId

public void setVpcId(String vpcId)
Parameters:
vpcId -

withVpcId

public DeleteVpcRequest withVpcId(String vpcId)

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

Parameters:
vpcId -
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()


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