public class Zone extends ZoneInfo
A zone is the container for all of your record sets that share the same DNS name prefix, for example, example.com. Zones are automatically assigned a set of name servers when they are created to handle responding to DNS queries for that zone. A zone has quotas for the number of record sets that it can include.
Modifier and Type | Class and Description |
---|---|
static class |
Zone.Builder
Builder for
Zone . |
Modifier and Type | Method and Description |
---|---|
ChangeRequest |
applyChangeRequest(ChangeRequestInfo changeRequest,
Dns.ChangeRequestOption... options)
Submits
ChangeRequestInfo to the service for it to applied to this zone. |
boolean |
delete()
Deletes the zone.
|
boolean |
equals(Object obj) |
ChangeRequest |
getChangeRequest(String changeRequestId,
Dns.ChangeRequestOption... options)
Retrieves an updated information about a change request previously submitted to be applied to
this zone.
|
Dns |
getDns()
Returns the
Dns service object associated with this zone. |
int |
hashCode() |
Page<ChangeRequest> |
listChangeRequests(Dns.ChangeRequestListOption... options)
Retrieves all change requests for this zone.
|
Page<RecordSet> |
listRecordSets(Dns.RecordSetListOption... options)
Lists all
RecordSet s associated with this zone. |
Zone |
reload(Dns.ZoneOption... options)
Retrieves the latest information about the zone.
|
Zone.Builder |
toBuilder()
Returns a builder for
ZoneInfo prepopulated with the metadata of this zone. |
getCreationTimeMillis, getDescription, getDnsName, getGeneratedId, getName, getNameServers, getNameServerSet, of, toString
public Zone.Builder toBuilder()
ZoneInfo
ZoneInfo
prepopulated with the metadata of this zone.public Zone reload(Dns.ZoneOption... options)
options
- optional restriction on what fields should be fetchednull
if not not foundDnsException
- upon failurepublic boolean delete()
true
is zone was found and deleted and false
otherwiseDnsException
- upon failurepublic Page<RecordSet> listRecordSets(Dns.RecordSetListOption... options)
RecordSet
s associated with this zone. The method searches for zone by name.options
- optional restriction on listing and fields of RecordSet
s returnedDnsException
- upon failure or if the zone is not foundpublic ChangeRequest applyChangeRequest(ChangeRequestInfo changeRequest, Dns.ChangeRequestOption... options)
ChangeRequestInfo
to the service for it to applied to this zone. The method
searches for zone by name.options
- optional restriction on what fields of ChangeRequest
should be returnedDnsException
- upon failure or if the zone is not foundpublic ChangeRequest getChangeRequest(String changeRequestId, Dns.ChangeRequestOption... options)
ChangeRequest
or null
if the change request was not found.
Throws DnsException
if the zone is not found.options
- optional restriction on what fields of ChangeRequest
should be returnedDnsException
- upon failure or if the zone is not foundNullPointerException
- if changeRequestId
is nullpublic Page<ChangeRequest> listChangeRequests(Dns.ChangeRequestListOption... options)
ChangeRequest
s.options
- optional restriction on listing and fields to be returnedDnsException
- upon failure or if the zone is not foundCopyright © 2019 Google LLC. All rights reserved.