Class Dns.ChangeRequestListOption (2.34.0)

public static class Dns.ChangeRequestListOption extends Option

Class for specifying change request listing options.

Inheritance

Object > com.google.cloud.dns.Option > Dns.ChangeRequestListOption

Static Methods

fields(Dns.ChangeRequestField[] fields)

public static Dns.ChangeRequestListOption fields(Dns.ChangeRequestField[] fields)

Returns an option to specify which fields ofChangeRequest should be returned by the service.

If this option is not provided all change request fields are returned. ChangeRequestOption.fields can be used to specify only the fields of interest. The ID of the change request is always returned, even if not specified. ChangeRequestField provides a list of fields that can be used.

Parameter
NameDescription
fieldsChangeRequestField[]
Returns
TypeDescription
Dns.ChangeRequestListOption

pageSize(int pageSize)

public static Dns.ChangeRequestListOption pageSize(int pageSize)

The maximum number of change requests to return per RPC.

The server can return fewer change requests than requested. When there are more results than the page size, the server will return a page token that can be used to fetch other results.

Parameter
NameDescription
pageSizeint
Returns
TypeDescription
Dns.ChangeRequestListOption

pageToken(String pageToken)

public static Dns.ChangeRequestListOption pageToken(String pageToken)

Returns an option to specify a page token.

The page token (returned from a previous call to list) indicates from where listing should continue.

Parameter
NameDescription
pageTokenString
Returns
TypeDescription
Dns.ChangeRequestListOption

sortOrder(Dns.SortingOrder order)

public static Dns.ChangeRequestListOption sortOrder(Dns.SortingOrder order)

Returns an option to specify whether the the change requests should be listed in ascending (most-recent last) or descending (most-recent first) order with respect to when the change request was accepted by the server. If this option is not provided, the listing order is undefined.

Parameter
NameDescription
orderDns.SortingOrder
Returns
TypeDescription
Dns.ChangeRequestListOption