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:
DryRunSupportedRequest<DeleteSubnetRequest>, java.io.Serializable

public class DeleteSubnetRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DeleteSubnetRequest>

Container for the parameters to the DeleteSubnet operation.

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

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

Constructor Summary
DeleteSubnetRequest()
          Default constructor for a new DeleteSubnetRequest object.
DeleteSubnetRequest(java.lang.String subnetId)
          Constructs a new DeleteSubnetRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DeleteSubnetRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getSubnetId()
          The ID of the subnet.
 int hashCode()
           
 void setSubnetId(java.lang.String subnetId)
          The ID of the subnet.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DeleteSubnetRequest withSubnetId(java.lang.String subnetId)
          The ID of the subnet.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
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(java.lang.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.
Method Detail

getSubnetId

public java.lang.String getSubnetId()
The ID of the subnet.

Returns:
The ID of the subnet.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
The ID of the subnet.

Parameters:
subnetId - The ID of the subnet.

withSubnetId

public DeleteSubnetRequest withSubnetId(java.lang.String subnetId)
The ID of the subnet.

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

Parameters:
subnetId - The ID of the subnet.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DeleteSubnetRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DeleteSubnetRequest>

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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