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

143 lines
3.7 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 SchemaUpdateUserStatusReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaUpdateUserStatusReq{}
// SchemaUpdateUserStatusReq struct for SchemaUpdateUserStatusReq
type SchemaUpdateUserStatusReq struct {
Status string `json:"status"`
UserId string `json:"user_id"`
}
// NewSchemaUpdateUserStatusReq instantiates a new SchemaUpdateUserStatusReq 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 NewSchemaUpdateUserStatusReq(status string, userId string) *SchemaUpdateUserStatusReq {
this := SchemaUpdateUserStatusReq{}
this.Status = status
this.UserId = userId
return &this
}
// NewSchemaUpdateUserStatusReqWithDefaults instantiates a new SchemaUpdateUserStatusReq 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 NewSchemaUpdateUserStatusReqWithDefaults() *SchemaUpdateUserStatusReq {
this := SchemaUpdateUserStatusReq{}
return &this
}
// GetStatus returns the Status field value
func (o *SchemaUpdateUserStatusReq) GetStatus() string {
if o == nil {
var ret string
return ret
}
return o.Status
}
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *SchemaUpdateUserStatusReq) GetStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Status, true
}
// SetStatus sets field value
func (o *SchemaUpdateUserStatusReq) SetStatus(v string) {
o.Status = v
}
// GetUserId returns the UserId field value
func (o *SchemaUpdateUserStatusReq) GetUserId() string {
if o == nil {
var ret string
return ret
}
return o.UserId
}
// GetUserIdOk returns a tuple with the UserId field value
// and a boolean to check if the value has been set.
func (o *SchemaUpdateUserStatusReq) GetUserIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UserId, true
}
// SetUserId sets field value
func (o *SchemaUpdateUserStatusReq) SetUserId(v string) {
o.UserId = v
}
func (o SchemaUpdateUserStatusReq) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaUpdateUserStatusReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["status"] = o.Status
toSerialize["user_id"] = o.UserId
return toSerialize, nil
}
type NullableSchemaUpdateUserStatusReq struct {
value *SchemaUpdateUserStatusReq
isSet bool
}
func (v NullableSchemaUpdateUserStatusReq) Get() *SchemaUpdateUserStatusReq {
return v.value
}
func (v *NullableSchemaUpdateUserStatusReq) Set(val *SchemaUpdateUserStatusReq) {
v.value = val
v.isSet = true
}
func (v NullableSchemaUpdateUserStatusReq) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaUpdateUserStatusReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaUpdateUserStatusReq(val *SchemaUpdateUserStatusReq) *NullableSchemaUpdateUserStatusReq {
return &NullableSchemaUpdateUserStatusReq{value: val, isSet: true}
}
func (v NullableSchemaUpdateUserStatusReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaUpdateUserStatusReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}