/* 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 openapi import ( "encoding/json" ) // checks if the SchemaSiteWriteResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSiteWriteResp{} // SchemaSiteWriteResp struct for SchemaSiteWriteResp type SchemaSiteWriteResp struct { RecommendTags []string `json:"recommend_tags,omitempty"` RequiredTag *bool `json:"required_tag,omitempty"` ReservedTags []string `json:"reserved_tags,omitempty"` } // NewSchemaSiteWriteResp instantiates a new SchemaSiteWriteResp 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 NewSchemaSiteWriteResp() *SchemaSiteWriteResp { this := SchemaSiteWriteResp{} return &this } // NewSchemaSiteWriteRespWithDefaults instantiates a new SchemaSiteWriteResp 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 NewSchemaSiteWriteRespWithDefaults() *SchemaSiteWriteResp { this := SchemaSiteWriteResp{} return &this } // GetRecommendTags returns the RecommendTags field value if set, zero value otherwise. func (o *SchemaSiteWriteResp) GetRecommendTags() []string { if o == nil || IsNil(o.RecommendTags) { var ret []string return ret } return o.RecommendTags } // GetRecommendTagsOk returns a tuple with the RecommendTags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteWriteResp) GetRecommendTagsOk() ([]string, bool) { if o == nil || IsNil(o.RecommendTags) { return nil, false } return o.RecommendTags, true } // HasRecommendTags returns a boolean if a field has been set. func (o *SchemaSiteWriteResp) HasRecommendTags() bool { if o != nil && !IsNil(o.RecommendTags) { return true } return false } // SetRecommendTags gets a reference to the given []string and assigns it to the RecommendTags field. func (o *SchemaSiteWriteResp) SetRecommendTags(v []string) { o.RecommendTags = v } // GetRequiredTag returns the RequiredTag field value if set, zero value otherwise. func (o *SchemaSiteWriteResp) GetRequiredTag() bool { if o == nil || IsNil(o.RequiredTag) { var ret bool return ret } return *o.RequiredTag } // GetRequiredTagOk returns a tuple with the RequiredTag field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteWriteResp) GetRequiredTagOk() (*bool, bool) { if o == nil || IsNil(o.RequiredTag) { return nil, false } return o.RequiredTag, true } // HasRequiredTag returns a boolean if a field has been set. func (o *SchemaSiteWriteResp) HasRequiredTag() bool { if o != nil && !IsNil(o.RequiredTag) { return true } return false } // SetRequiredTag gets a reference to the given bool and assigns it to the RequiredTag field. func (o *SchemaSiteWriteResp) SetRequiredTag(v bool) { o.RequiredTag = &v } // GetReservedTags returns the ReservedTags field value if set, zero value otherwise. func (o *SchemaSiteWriteResp) GetReservedTags() []string { if o == nil || IsNil(o.ReservedTags) { var ret []string return ret } return o.ReservedTags } // GetReservedTagsOk returns a tuple with the ReservedTags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaSiteWriteResp) GetReservedTagsOk() ([]string, bool) { if o == nil || IsNil(o.ReservedTags) { return nil, false } return o.ReservedTags, true } // HasReservedTags returns a boolean if a field has been set. func (o *SchemaSiteWriteResp) HasReservedTags() bool { if o != nil && !IsNil(o.ReservedTags) { return true } return false } // SetReservedTags gets a reference to the given []string and assigns it to the ReservedTags field. func (o *SchemaSiteWriteResp) SetReservedTags(v []string) { o.ReservedTags = v } func (o SchemaSiteWriteResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSiteWriteResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.RecommendTags) { toSerialize["recommend_tags"] = o.RecommendTags } if !IsNil(o.RequiredTag) { toSerialize["required_tag"] = o.RequiredTag } if !IsNil(o.ReservedTags) { toSerialize["reserved_tags"] = o.ReservedTags } return toSerialize, nil } type NullableSchemaSiteWriteResp struct { value *SchemaSiteWriteResp isSet bool } func (v NullableSchemaSiteWriteResp) Get() *SchemaSiteWriteResp { return v.value } func (v *NullableSchemaSiteWriteResp) Set(val *SchemaSiteWriteResp) { v.value = val v.isSet = true } func (v NullableSchemaSiteWriteResp) IsSet() bool { return v.isSet } func (v *NullableSchemaSiteWriteResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSiteWriteResp(val *SchemaSiteWriteResp) *NullableSchemaSiteWriteResp { return &NullableSchemaSiteWriteResp{value: val, isSet: true} } func (v NullableSchemaSiteWriteResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSiteWriteResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }