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

118 lines
2.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 LogCursor type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LogCursor{}
// LogCursor struct for LogCursor
type LogCursor struct {
Data LogCursorData `json:"data"`
}
// NewLogCursor instantiates a new LogCursor 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 NewLogCursor(data LogCursorData) *LogCursor {
this := LogCursor{}
this.Data = data
return &this
}
// NewLogCursorWithDefaults instantiates a new LogCursor 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 NewLogCursorWithDefaults() *LogCursor {
this := LogCursor{}
return &this
}
// GetData returns the Data field value
func (o *LogCursor) GetData() LogCursorData {
if o == nil {
var ret LogCursorData
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 *LogCursor) GetDataOk() (*LogCursorData, bool) {
if o == nil {
return nil, false
}
return &o.Data, true
}
// SetData sets field value
func (o *LogCursor) SetData(v LogCursorData) {
o.Data = v
}
func (o LogCursor) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o LogCursor) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["data"] = o.Data
return toSerialize, nil
}
type NullableLogCursor struct {
value *LogCursor
isSet bool
}
func (v NullableLogCursor) Get() *LogCursor {
return v.value
}
func (v *NullableLogCursor) Set(val *LogCursor) {
v.value = val
v.isSet = true
}
func (v NullableLogCursor) IsSet() bool {
return v.isSet
}
func (v *NullableLogCursor) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLogCursor(val *LogCursor) *NullableLogCursor {
return &NullableLogCursor{value: val, isSet: true}
}
func (v NullableLogCursor) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLogCursor) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}