public class DeleteHostedZoneRequest extends AmazonWebServiceRequest implements Serializable
DeleteHostedZone operation.
This action deletes a hosted zone. To delete a hosted zone, send a
DELETE request to the 2013-04-01/hostedzone/hosted
zone ID resource.
For more information about deleting a hosted zone, see Deleting a Hosted Zone in the Amazon Route 53 Developer Guide .
IMPORTANT: You can delete a hosted zone only if there are no resource record sets other than the default SOA record and NS resource record sets. If your hosted zone contains other resource record sets, you must delete them before you can delete your hosted zone. If you try to delete a hosted zone that contains other resource record sets, Route 53 will deny your request with a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.
NOOP| Constructor and Description |
|---|
DeleteHostedZoneRequest()
Default constructor for a new DeleteHostedZoneRequest object.
|
DeleteHostedZoneRequest(String id)
Constructs a new DeleteHostedZoneRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId()
The ID of the hosted zone you want to delete.
|
int |
hashCode() |
void |
setId(String id)
The ID of the hosted zone you want to delete.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteHostedZoneRequest |
withId(String id)
The ID of the hosted zone you want to delete.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic DeleteHostedZoneRequest()
public DeleteHostedZoneRequest(String id)
id - The ID of the hosted zone you want to delete.public String getId()
Constraints:
Length: 0 - 32
public void setId(String id)
Constraints:
Length: 0 - 32
id - The ID of the hosted zone you want to delete.public DeleteHostedZoneRequest withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32
id - The ID of the hosted zone you want to delete.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.