Class ChangeRequest (2.41.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
Name Description
zoneName String
options ChangeRequestOption[]
Returns
Type Description
ChangeRequest

equals(Object obj)

public final boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDns()

public Dns getDns()

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

Returns
Type Description
Dns

getZone()

public String getZone()

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

Returns
Type Description
String

hashCode()

public final int hashCode()
Returns
Type Description
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
Type Description
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
Name Description
options ChangeRequestOption[]
Returns
Type Description
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
Type Description
ChangeRequest.Builder
Overrides