public class ChangeRequest extends ChangeRequestInfo
RecordSet
s within a
Zone
.Modifier and Type | Class and Description |
---|---|
static class |
ChangeRequest.Builder
A builder for
ChangeRequest s. |
ChangeRequestInfo.Status
Modifier and Type | Method and Description |
---|---|
ChangeRequest |
applyTo(String zoneName,
Dns.ChangeRequestOption... options)
Applies this change request to the zone identified by
zoneName . |
boolean |
equals(Object obj) |
Dns |
getDns()
Returns the change request's
Dns object used to issue requests. |
String |
getZone()
Returns the name of the
Zone associated with this change request. |
int |
hashCode() |
boolean |
isDone()
Returns
true if the change request has been completed. |
ChangeRequest |
reload(Dns.ChangeRequestOption... options)
Retrieves the up-to-date information about the change request from Google Cloud DNS.
|
ChangeRequest.Builder |
toBuilder()
Creates a builder populated with values of this
ChangeRequestInfo . |
getAdditions, getDeletions, getGeneratedId, getStartTimeMillis, getStatus, newBuilder, status, toString
public Dns getDns()
Dns
object used to issue requests.public ChangeRequest applyTo(String zoneName, Dns.ChangeRequestOption... options)
zoneName
.DnsException
- upon failure or if zone is not foundpublic ChangeRequest reload(Dns.ChangeRequestOption... options)
options
can be used to restrict the fields to be included in the updated object the
same way as in Dns.getChangeRequest(String, String, Dns.ChangeRequestOption...)
. If
options
are provided, any field other than generatedId which is not included in the
options
will be null
regardless of whether they are initialized or not in
this
instance.null
if it does not existDnsException
- upon failure of the API call or if the associated zone was not foundpublic boolean isDone()
true
if the change request has been completed. If the status is not ChangeRequestInfo.Status.DONE
already, the method makes an API call to Google Cloud DNS to
update the change request first.DnsException
- upon failure of the API call or if the associated zone was not foundpublic ChangeRequest.Builder toBuilder()
ChangeRequestInfo
ChangeRequestInfo
.toBuilder
in class ChangeRequestInfo
public final boolean equals(Object obj)
equals
in class ChangeRequestInfo
public final int hashCode()
hashCode
in class ChangeRequestInfo
Copyright © 2019 Google LLC. All rights reserved.