Files
openapi-go-answer/model_schema_site_seo_req.go
2023-09-26 16:20:01 +08:00

143 lines
3.4 KiB
Go

/*
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package answer_sdk
import (
"encoding/json"
)
// checks if the SchemaSiteSeoReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaSiteSeoReq{}
// SchemaSiteSeoReq struct for SchemaSiteSeoReq
type SchemaSiteSeoReq struct {
Permalink int32 `json:"permalink"`
Robots string `json:"robots"`
}
// NewSchemaSiteSeoReq instantiates a new SchemaSiteSeoReq 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 NewSchemaSiteSeoReq(permalink int32, robots string) *SchemaSiteSeoReq {
this := SchemaSiteSeoReq{}
this.Permalink = permalink
this.Robots = robots
return &this
}
// NewSchemaSiteSeoReqWithDefaults instantiates a new SchemaSiteSeoReq 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 NewSchemaSiteSeoReqWithDefaults() *SchemaSiteSeoReq {
this := SchemaSiteSeoReq{}
return &this
}
// GetPermalink returns the Permalink field value
func (o *SchemaSiteSeoReq) GetPermalink() int32 {
if o == nil {
var ret int32
return ret
}
return o.Permalink
}
// GetPermalinkOk returns a tuple with the Permalink field value
// and a boolean to check if the value has been set.
func (o *SchemaSiteSeoReq) GetPermalinkOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Permalink, true
}
// SetPermalink sets field value
func (o *SchemaSiteSeoReq) SetPermalink(v int32) {
o.Permalink = v
}
// GetRobots returns the Robots field value
func (o *SchemaSiteSeoReq) GetRobots() string {
if o == nil {
var ret string
return ret
}
return o.Robots
}
// GetRobotsOk returns a tuple with the Robots field value
// and a boolean to check if the value has been set.
func (o *SchemaSiteSeoReq) GetRobotsOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Robots, true
}
// SetRobots sets field value
func (o *SchemaSiteSeoReq) SetRobots(v string) {
o.Robots = v
}
func (o SchemaSiteSeoReq) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaSiteSeoReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["permalink"] = o.Permalink
toSerialize["robots"] = o.Robots
return toSerialize, nil
}
type NullableSchemaSiteSeoReq struct {
value *SchemaSiteSeoReq
isSet bool
}
func (v NullableSchemaSiteSeoReq) Get() *SchemaSiteSeoReq {
return v.value
}
func (v *NullableSchemaSiteSeoReq) Set(val *SchemaSiteSeoReq) {
v.value = val
v.isSet = true
}
func (v NullableSchemaSiteSeoReq) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaSiteSeoReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaSiteSeoReq(val *SchemaSiteSeoReq) *NullableSchemaSiteSeoReq {
return &NullableSchemaSiteSeoReq{value: val, isSet: true}
}
func (v NullableSchemaSiteSeoReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaSiteSeoReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}