Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class DeleteSubnetRequest

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

public class DeleteSubnetRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the DeleteSubnet operation.

Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, otherwise Amazon VPC returns an error.

See Also:
AmazonEC2.deleteSubnet(DeleteSubnetRequest), Serialized Form

Constructor Summary
DeleteSubnetRequest()
          Default constructor for a new DeleteSubnetRequest object.
DeleteSubnetRequest(String subnetId)
          Constructs a new DeleteSubnetRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getSubnetId()
          The ID of the subnet you want to delete.
 int hashCode()
           
 void setSubnetId(String subnetId)
          The ID of the subnet you want to delete.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteSubnetRequest withSubnetId(String subnetId)
          The ID of the subnet 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

DeleteSubnetRequest

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


DeleteSubnetRequest

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

Parameters:
subnetId - The ID of the subnet you want to delete.
Method Detail

getSubnetId

public String getSubnetId()
The ID of the subnet you want to delete.

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

setSubnetId

public void setSubnetId(String subnetId)
The ID of the subnet you want to delete.

Parameters:
subnetId - The ID of the subnet you want to delete.

withSubnetId

public DeleteSubnetRequest withSubnetId(String subnetId)
The ID of the subnet you want to delete.

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

Parameters:
subnetId - The ID of the subnet 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.