Files
stack/components/fctl/membershipclient/model_log_cursor_data.go

244 lines
5.6 KiB
Go

/*
Membership API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package membershipclient
import (
"encoding/json"
)
// checks if the LogCursorData type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LogCursorData{}
// LogCursorData struct for LogCursorData
type LogCursorData struct {
PageSize int64 `json:"pageSize"`
HasMore bool `json:"hasMore"`
Previous *string `json:"previous,omitempty"`
Next *string `json:"next,omitempty"`
Data []Log `json:"data"`
}
// NewLogCursorData instantiates a new LogCursorData 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 NewLogCursorData(pageSize int64, hasMore bool, data []Log) *LogCursorData {
this := LogCursorData{}
this.PageSize = pageSize
this.HasMore = hasMore
this.Data = data
return &this
}
// NewLogCursorDataWithDefaults instantiates a new LogCursorData 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 NewLogCursorDataWithDefaults() *LogCursorData {
this := LogCursorData{}
return &this
}
// GetPageSize returns the PageSize field value
func (o *LogCursorData) GetPageSize() int64 {
if o == nil {
var ret int64
return ret
}
return o.PageSize
}
// GetPageSizeOk returns a tuple with the PageSize field value
// and a boolean to check if the value has been set.
func (o *LogCursorData) GetPageSizeOk() (*int64, bool) {
if o == nil {
return nil, false
}
return &o.PageSize, true
}
// SetPageSize sets field value
func (o *LogCursorData) SetPageSize(v int64) {
o.PageSize = v
}
// GetHasMore returns the HasMore field value
func (o *LogCursorData) GetHasMore() bool {
if o == nil {
var ret bool
return ret
}
return o.HasMore
}
// GetHasMoreOk returns a tuple with the HasMore field value
// and a boolean to check if the value has been set.
func (o *LogCursorData) GetHasMoreOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasMore, true
}
// SetHasMore sets field value
func (o *LogCursorData) SetHasMore(v bool) {
o.HasMore = v
}
// GetPrevious returns the Previous field value if set, zero value otherwise.
func (o *LogCursorData) GetPrevious() string {
if o == nil || IsNil(o.Previous) {
var ret string
return ret
}
return *o.Previous
}
// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LogCursorData) GetPreviousOk() (*string, bool) {
if o == nil || IsNil(o.Previous) {
return nil, false
}
return o.Previous, true
}
// HasPrevious returns a boolean if a field has been set.
func (o *LogCursorData) HasPrevious() bool {
if o != nil && !IsNil(o.Previous) {
return true
}
return false
}
// SetPrevious gets a reference to the given string and assigns it to the Previous field.
func (o *LogCursorData) SetPrevious(v string) {
o.Previous = &v
}
// GetNext returns the Next field value if set, zero value otherwise.
func (o *LogCursorData) GetNext() string {
if o == nil || IsNil(o.Next) {
var ret string
return ret
}
return *o.Next
}
// GetNextOk returns a tuple with the Next field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LogCursorData) GetNextOk() (*string, bool) {
if o == nil || IsNil(o.Next) {
return nil, false
}
return o.Next, true
}
// HasNext returns a boolean if a field has been set.
func (o *LogCursorData) HasNext() bool {
if o != nil && !IsNil(o.Next) {
return true
}
return false
}
// SetNext gets a reference to the given string and assigns it to the Next field.
func (o *LogCursorData) SetNext(v string) {
o.Next = &v
}
// GetData returns the Data field value
func (o *LogCursorData) GetData() []Log {
if o == nil {
var ret []Log
return ret
}
return o.Data
}
// GetDataOk returns a tuple with the Data field value
// and a boolean to check if the value has been set.
func (o *LogCursorData) GetDataOk() ([]Log, bool) {
if o == nil {
return nil, false
}
return o.Data, true
}
// SetData sets field value
func (o *LogCursorData) SetData(v []Log) {
o.Data = v
}
func (o LogCursorData) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LogCursorData) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["pageSize"] = o.PageSize
toSerialize["hasMore"] = o.HasMore
if !IsNil(o.Previous) {
toSerialize["previous"] = o.Previous
}
if !IsNil(o.Next) {
toSerialize["next"] = o.Next
}
toSerialize["data"] = o.Data
return toSerialize, nil
}
type NullableLogCursorData struct {
value *LogCursorData
isSet bool
}
func (v NullableLogCursorData) Get() *LogCursorData {
return v.value
}
func (v *NullableLogCursorData) Set(val *LogCursorData) {
v.value = val
v.isSet = true
}
func (v NullableLogCursorData) IsSet() bool {
return v.isSet
}
func (v *NullableLogCursorData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLogCursorData(val *LogCursorData) *NullableLogCursorData {
return &NullableLogCursorData{value: val, isSet: true}
}
func (v NullableLogCursorData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLogCursorData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}