public class DeleteSubnetRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DeleteSubnetRequest>
DeleteSubnet operation
.
Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.
Constructor and Description |
---|
DeleteSubnetRequest()
Default constructor for a new DeleteSubnetRequest object.
|
DeleteSubnetRequest(String subnetId)
Constructs a new DeleteSubnetRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DeleteSubnetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getSubnetId()
The ID of the subnet.
|
int |
hashCode() |
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteSubnetRequest |
withSubnetId(String subnetId)
The ID of the subnet.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DeleteSubnetRequest()
public DeleteSubnetRequest(String subnetId)
subnetId
- The ID of the subnet.public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet.public DeleteSubnetRequest withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet.public Request<DeleteSubnetRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteSubnetRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.