Name | Type | Description | Notes |
---|---|---|---|
Offset | Pointer to int32 | Index of the first item returned in the response. The default is 0. | [optional] [default to 0] |
Limit | int32 | Maximum number of search results returned per page. Number must be between 1 and 100, and the default is 20. | [default to 20] |
Total | int32 | Total number of elements returned. | |
Next | Pointer to string | URL relative to the next item in the response. | [optional] |
Previous | Pointer to string | URL relative to the previous item in the response. | [optional] |
func NewPagination(limit int32, total 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) GetOffset() int32
GetOffset returns the Offset field if non-nil, zero value otherwise.
func (o *Pagination) GetOffsetOk() (*int32, bool)
GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetOffset(v int32)
SetOffset sets Offset field to given value.
func (o *Pagination) HasOffset() bool
HasOffset returns a boolean if a field has been set.
func (o *Pagination) GetLimit() int32
GetLimit returns the Limit field if non-nil, zero value otherwise.
func (o *Pagination) GetLimitOk() (*int32, bool)
GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetLimit(v int32)
SetLimit sets Limit field to given value.
func (o *Pagination) GetTotal() int32
GetTotal returns the Total field if non-nil, zero value otherwise.
func (o *Pagination) GetTotalOk() (*int32, bool)
GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetTotal(v int32)
SetTotal sets Total field to given value.
func (o *Pagination) GetNext() string
GetNext returns the Next field if non-nil, zero value otherwise.
func (o *Pagination) GetNextOk() (*string, bool)
GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetNext(v string)
SetNext sets Next field to given value.
func (o *Pagination) HasNext() bool
HasNext returns a boolean if a field has been set.
func (o *Pagination) GetPrevious() string
GetPrevious returns the Previous field if non-nil, zero value otherwise.
func (o *Pagination) GetPreviousOk() (*string, bool)
GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Pagination) SetPrevious(v string)
SetPrevious sets Previous field to given value.
func (o *Pagination) HasPrevious() bool
HasPrevious returns a boolean if a field has been set.