Class ChangeRequest (2.7.0)

public class ChangeRequest extends ChangeRequestInfo

An immutable class representing an atomic update to a collection of RecordSets within a Zone. See Also: Google Cloud DNS documentation

Inheritance

Object > ChangeRequestInfo > ChangeRequest

Methods

applyTo(String zoneName, Dns.ChangeRequestOption[] options)

public ChangeRequest applyTo(String zoneName, Dns.ChangeRequestOption[] options)

Applies this change request to the zone identified by zoneName.

Parameters
NameDescription
zoneNameString
optionsChangeRequestOption[]
Returns
TypeDescription
ChangeRequest

equals(Object obj)

public final boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDns()

public Dns getDns()

Returns the change request's Dns object used to issue requests.

Returns
TypeDescription
Dns

getZone()

public String getZone()

Returns the name of the Zone associated with this change request.

Returns
TypeDescription
String

hashCode()

public final int hashCode()
Returns
TypeDescription
int
Overrides

isDone()

public boolean isDone()

Returns 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.

Returns
TypeDescription
boolean

reload(Dns.ChangeRequestOption[] options)

public ChangeRequest reload(Dns.ChangeRequestOption[] options)

Retrieves the up-to-date information about the change request from Google Cloud DNS. Parameter 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.

Parameter
NameDescription
optionsChangeRequestOption[]
Returns
TypeDescription
ChangeRequest

an object with the updated information or null if it does not exist

toBuilder()

public ChangeRequest.Builder toBuilder()

Creates a builder populated with values of this ChangeRequestInfo.

Returns
TypeDescription
ChangeRequest.Builder
Overrides