- 2.71.0 (latest)
- 2.70.0
- 2.68.0
- 2.66.0
- 2.65.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.8
- 2.0.9
public
class
Zone
extends
ZoneInfo
A Google Cloud DNS Zone object.
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. See Also: Google Cloud DNS managed zone documentation
Methods
applyChangeRequest(ChangeRequestInfo changeRequest, Dns.ChangeRequestOption[] options)
public
ChangeRequest
applyChangeRequest
(
ChangeRequestInfo
changeRequest
,
Dns
.
ChangeRequestOption
[]
options
)
Submits ChangeRequestInfo to the service for it to applied to this zone. The method searches for zone by name.
changeRequest
options
delete()
public
boolean
delete
()
Deletes the zone. The method deletes the zone by name.
equals(Object obj)
public
final
boolean
equals
(
Object
obj
)
getChangeRequest(String changeRequestId, Dns.ChangeRequestOption[] options)
public
ChangeRequest
getChangeRequest
(
String
changeRequestId
,
Dns
.
ChangeRequestOption
[]
options
)
Retrieves an updated information about a change request previously submitted to be applied to
this zone. Returns a ChangeRequest
or null
if the change request was not found.
Throws DnsException
if the zone is not found.
changeRequestId
options
getDns()
public
Dns
getDns
()
Returns the Dns service object associated with this zone.
hashCode()
public
final
int
hashCode
()
listChangeRequests(Dns.ChangeRequestListOption[] options)
public
Page<ChangeRequest>
listChangeRequests
(
Dns
.
ChangeRequestListOption
[]
options
)
Retrieves all change requests for this zone. The method searches for zone by name. Returns a page of ChangeRequest s.
options
listRecordSets(Dns.RecordSetListOption[] options)
public
Page<RecordSet>
listRecordSets
(
Dns
.
RecordSetListOption
[]
options
)
Lists all RecordSet s associated with this zone. The method searches for zone by name.
options
reload(Dns.ZoneOption[] options)
public
Zone
reload
(
Dns
.
ZoneOption
[]
options
)
Retrieves the latest information about the zone. The method retrieves the zone by name.
options
toBuilder()
public
Zone
.
Builder
toBuilder
()
Returns a builder for ZoneInfo
prepopulated with the metadata of this zone.