Interface IBuilderForOptional
Represents a builder for configuring optional parameters when retrieving users.
public interface IBuilderForOptional : IVonageRequestBuilder<GetUsersRequest>
- Inherited Members
Methods
WithName(string)
Filters results to users matching the specified unique name.
IBuilderForOptional WithName(string value)
Parameters
valuestringThe exact user name to filter by.
Returns
- IBuilderForOptional
The builder instance for method chaining.
Examples
.WithName("my-user")
WithOrder(FetchOrder)
Sets the sort order for the results.
IBuilderForOptional WithOrder(FetchOrder value)
Parameters
valueFetchOrderThe sort order. Use Ascending for oldest first or Descending for newest first.
Returns
- IBuilderForOptional
The builder instance for method chaining.
Examples
.WithOrder(FetchOrder.Descending)
WithPageSize(int)
Sets the maximum number of user records to return per page.
IBuilderForOptional WithPageSize(int value)
Parameters
valueintThe page size. Defaults to 10 if not specified.
Returns
- IBuilderForOptional
The builder instance for method chaining.
Examples
.WithPageSize(25)