Name | Type | Description | Notes |
---|---|---|---|
Before | string | An object ID used to retrieve records before the specified object, indicating earlier or smaller records relative to the current dataset. You can use it to paginate backwards. If empty, it means you have reached the start of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint. | |
After | string | An object ID used to retrieve records after the specified object, indicating newer or larger records relative to the current dataset. You can use it to paginate forwards. If empty, it means you have reached the end of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint. | |
TotalCount | int32 | The total number of records that match the query criteria, unaffected by the pagination parameters (`before` , `after`, and `limit`). |
func NewPagination(before string, after string, totalCount int32, ) *Pagination
NewPagination instantiates a new Pagination object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewPaginationWithDefaults() *Pagination
NewPaginationWithDefaults instantiates a new Pagination object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Pagination) GetBefore() string
GetBefore returns the Before field if non-nil, zero value otherwise.
func (o *Pagination) GetBeforeOk() (*string, bool)
GetBeforeOk returns a tuple with the Before field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetBefore(v string)
SetBefore sets Before field to given value.
func (o *Pagination) GetAfter() string
GetAfter returns the After field if non-nil, zero value otherwise.
func (o *Pagination) GetAfterOk() (*string, bool)
GetAfterOk returns a tuple with the After field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetAfter(v string)
SetAfter sets After field to given value.
func (o *Pagination) GetTotalCount() int32
GetTotalCount returns the TotalCount field if non-nil, zero value otherwise.
func (o *Pagination) GetTotalCountOk() (*int32, bool)
GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetTotalCount(v int32)
SetTotalCount sets TotalCount field to given value.